Login / Register  search  syndication  about

          Ryan Farley's Blog

Ryan Farley on .NET Development with a focus on CRM Development for SalesLogix

Easily Increasing the Height of the Picklist Dropdown in SalesLogix Web

Something that has always frustrated me when using the SalesLogix Web client was how the picklist control only shows four items in the dropdown and you have to scroll up or down to see the rest. This works fine for lists with only a few items, but for bigger lists it is a huge pain. It wasn't until a coworker was asked by a customer that I gave it any thought about how to go about changing this. Luckily, it's a pretty easy change to make.

This change can be made for all picklist controls in the client with a simple CSS change. If you open the sage-styles.css file in Application Architect. Look in the CSS folder in the Support Files for the portal. Then just add the following:

.picklist-container .picklist-inner-container .picklist-items
{
    height:200px;
}

This change increases the height of the dropdown to 200 pixels. That changes the picklist dropdown from this:

to this:

Much better. Of course, you can play with that 200px value to get the default height to look & feel just right.

What's This?
  
Bookmark and Share

About Ryan Farley

   Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix since 2001 and believes in sharing with the community. He loves C#, Javascript, Python, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

View the SalesLogix Mobile Seveloper Series
View the SalesLogix SData Developer Series
View the Git for the SalesLogix Developer series



Related Content
   Retrieving Items from a Picklist via Javascript
Saleslogix is very light on how to use client side processes to do things in the Saleslogix web client.&n
Posted on Aug 29, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Saleslogix Xbar update coming soon
Scheduled to be released 8/29/2014 Features in Update •Installation improvements •Enterp
Posted on Aug 21, 2014 by Scott Weber to SalesLogix Product Blog
 
   Configuring and Packaging secured actions in Saleslogix 8.0
Using Secured Actions, you can restrict access to user interface elements in the Saleslogix web client.
Posted on Aug 12, 2014 by Jason Buss to Jason Buss' Blog
 
   How do you add a parameter for File Attachment Size and Timeout in Saleslogix 8.1?
Question: Is it possible to set a parameter for file attachment size and timeout in Salelogix? If
Posted on Aug 07, 2014 by Dale Richter to SalesLogix Questions & Answers
 
   Fixing Duplicate Saleslogix FieldIndex Values in the SECTABLEDEFS
I had to fix a client's SECTABLEDEFS table that contained duplicate FieldIndex values.  FieldInd
Posted on Aug 07, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

 

Jason Buss' Blog said:

My colleague Ryan just posted about a simple method to increase the height of picklist dropdowns in the SalesLogix web client. I have a slightly different way to accomplish the same thing for individual picklists, so while not really more difficult to

March 22, 2012 2:49 PM
 

Chris Grant said:

You could also make this a little nicer by doing the following.

In "sage.control.picklist.js" : "PickList_ButtonClick" replace

       list.focus();

with

       else {

           if (list.childNodes.length > 20) {

               list.setAttribute("size", 20);

           }

           else {

               list.setAttribute("size", list.childNodes.length);

           }

       }

       list.focus();

March 24, 2012 7:01 AM
 

David Lumm said:

I did it a similar way to Chris. It's a much nicer way than a fixed pixel height, as it allows the picklist to shrink to smaller lists. That way you never have lots of white-space.

April 13, 2012 4:48 AM
 

Joe Dille said:

Seems easy enough.  AA says the file is changed but when I deploy VFS is not updated.  Any ideas?

July 23, 2012 4:37 PM
 

Kris Halsrud said:

Joe what file are you modifying?  If it is the Sage-Style.css, I think that file is actually recreated on redeploy by combining the content of SLXBase, quickform, sage-controls, and sage-platform.css files.  If you make the same mod to the sage-control.css file as what Ryan shows in the Sage-Styles.css that should make it out to the deployed website.

August 30, 2012 12:39 PM

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register