fiogf49gjkf0d Hi Josh
THis can be achieved with javascript.
you can add a line to your page code to resize all picklists:
ScriptManager.RegisterClientScriptBlock(this, GetType(), "Resize_Picklists1", "$(document).ready(function() { $('.picklist select').attr('size', 8) });",true);
You could add that line to base.master to affect all lists on all forms, or you can add it to the load events of each form individually to only affect those forms you choose.
Alternatively, view the html source of the page and find the client side name of the items element for your picklist, and then in the load event of your form, you can set a size specifically for that list with this line:
ScriptManager.RegisterClientScriptBlock(this, GetType(), "Resize_Picklists2", "$(document).ready(function() { $('#ctl00_MainContent_OpportunityDetails_Country_Items').attr('size', 20)});", true);
so it is possible to have a different size for each list on any given page/form if you wish. You can see I have named my functions here Resize_Picklists1 and Resize_Picklists2, if you have multiple lists you are controlling on the same form, you need to give each script block a unique name.
Hope thats useful for you
Regards
Gary Jeffery |