ListBox Height Set based on Child Items

1 Answer 384 Views
ListBox
Kishorekumar
Top achievements
Rank 1
Veteran
Kishorekumar asked on 27 Sep 2021, 11:27 AM

Hi Telerik Team,

I have used RAD:ListBox Control. I want to set the height of Listbox based on the height of the ListBoxItems of First 15items(Items Template I have used for Items Display). Any idea to implement this behavior.

Thanks,

Kishore Kumar

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 30 Sep 2021, 08:12 AM

Hi Kishorekumar,

What you can try is to calculate the height of the items when the control is loading. To be more accurate, can you share the custom DataTemplate set to the ItemTemplate property of the RadListBox. This way I can test it on my side and propose a suitable solution.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ListBox
Asked by
Kishorekumar
Top achievements
Rank 1
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or