This project has moved and is read-only. For the latest updates, please go here.

SPSetMultiSelectSizes height

Jul 18, 2011 at 11:27 PM

	multiSelectColumn: "City",
	minWidth: 0,
	maxWidth: 0

Is there a way to set the height of a multiselect box as well?

Jul 19, 2011 at 2:54 AM


SPSetMultiSelectSizes, as currently written, doesn't allow you to set the height of the multiselect boxes (as you can see in the documentation). How would you want that to work?


Jul 19, 2011 at 5:52 PM

Hi Marc,

SharePoint's multiselect boxes only fits 8 choices per scroll.  When a user has 100+ options to choose from, it becomes a little tedious.  I'd like to be able to extend the height to fit ~20 choices per scroll to improve the user experience.

My thought process was if you figured out an easy way to set the width, then there'd also be an easy way to set the height ;)  I'm going to hack at it all day today (either through jQuery or Sharepoint Designer) until I figure it out.

Jul 19, 2011 at 6:45 PM


I'm not going to have time to look at it today, but what you'll want to look at is the DIV and the SELECT which make up the box:

<DIV style="WIDTH: 86px; HEIGHT: 250px; OVERFLOW: scroll" lpcachedvisval="1" lpcachedvistime="1311097182">
<SELECT style="WIDTH: 86px" onkeydown=GipHandleHScroll(event) id=ctl00_m_g_e845e690_00da_428f_afbd_fbe804787763_ctl00_ctl04_ctl07_ctl00_ctl00_ctl04_ctl00_ctl00_SelectCandidate title="City possible values" ondblclick="GipAddSelectedItems(ctl00_m_g_e845e690_00da_428f_afbd_fbe804787763_ctl00_ctl04_ctl07_ctl00_ctl00_ctl04_ctl00_ctl00_MultiLookupPicker_m); return false" multiple onchange=GipSelectCandidateItems(ctl00_m_g_e845e690_00da_428f_afbd_fbe804787763_ctl00_ctl04_ctl07_ctl00_ctl00_ctl04_ctl00_ctl00_MultiLookupPicker_m); size=20 name=ctl00$m$g_e845e690_00da_428f_afbd_fbe804787763$ctl00$ctl04$ctl07$ctl00$ctl00$ctl04$ctl00$ctl00$SelectCandidate lpcachedvisval="1" lpcachedvistime="1311097182">

By changing the two bolded values above, you should be able to do what you need. Let me know how it goes!