Hi All,
I have a webdropdown ( fixed width) in my page where the items text is too big. What I want to achieve is whenever the item is selected and its length is more than the webdropdown width then display text should be trimmed.
For example
Items in dropdown
Item1
Item2
Item-Item-Item-Item123455
so when I select the 3rd item. I need to show as Item-Item......, because I don't want to show the description in between to the user.
Is it possible?
Please find the attached snapshot
Thanks
-Sajin
Could anyone from Infragistics team can reply?
Thanks in advance
Hi there,
You can hook to the ItemSelected client event and set_currentValue('value') to change the current value displayed. Wrap you logic around this and change the current value with a substring of it starting at the index of the character that exceeds the width of the container.
Let me know if this solution works for you!