7/6/2025 1:29:58 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
v7.5 - Changing PickList List Length in Web Client?
Posted: 04 May 09 2:11 PM
|
Can some tell me how to change the number of items that are displayed when popping up a picklist in the web client? I have a customer who uses multiple custom lists, with each list containing close to 100 items. The "4 item" default length causes a lot of scrolling when they pop up the list to make a selection.
Thanks for any help!
Jim M. |
|
|
|
Re: v7.5 - Changing PickList List Length in Web Client?
Posted: 08 May 09 7:29 AM
|
You could add some javascript to the page in a PreRender to set the "size" property of the dropdown part of the picklist control:
//document.all.ctl00_MainContent_MYFORMNAME_MYPICKLISTNAME_Items.size = 10;
You may be able to this server side looking at the controls collection within the picklist control, but I havent checked.
Thanks, Nick |
|
|
|
Re: v7.5 - Changing PickList List Length in Web Client?
Posted: 15 May 09 1:56 PM
|
I wanted to share a neat piece of code for this purpose: $(document).ready(function() { $(".picklist select").attr("size", 8); });
This will change the size on all picklists of the page. It has to run on every postback though, so I added this on the OnFormBound event: ScriptManager.RegisterClientScriptBlock(this, GetType(), "Resize_Picklists", "$(document).ready(function() { $('.picklist select').attr('size', 8) })", true); |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|