DropDownItem count

Is there a way to only show a certain count of items in the dropdown list before having to scroll?  I want to be able to show for example only 5 items so the height of the list isn't so large. I know currently you can set the MaximumDropDownHeight but I would like to be able to set the count instead.

2 Replies 1 reply marked as answer

DH Derek Hagen August 31, 2020 04:06 PM UTC

Actually I think I know what to do.  I think I can calculate the height.

var maxHeight = (int)(DropDownItemHeight * 5);
MaximumDropDownHeight = maxHeight;


SS Suganya Sethuraman Syncfusion Team September 1, 2020 11:34 AM UTC

Hi Derek Hagen, 
  
Greetings from Syncfusion. 
  
We have analyzed your query. We don't currently have direct support based on the item count to display DropdownHeight. You can achieve this by using the workaround provided in your update itself.
 
 
Code Snippet: 
  
var maxHeight = (int)(DropDownItemHeight * 5); 
  
MaximumDropDownHeight = maxHeight; 
  
  
  
Please let us know, if you have any other concerns. 

Regards,
 
Suganya Sethuraman. 
 


Marked as answer
Loader.
Up arrow icon