This is a migrated thread and some comments may be shown as answers.

How to access an item from collections in ListBox?

1 Answer 41 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
venu238
Top achievements
Rank 1
venu238 asked on 13 Dec 2014, 06:54 PM
I'm using "Expanding List 02" design template. In that I want to access the item "Title 1" from "Collection 1".
I've tried both Selected Item and Item tap but none worked for me.

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 17 Dec 2014, 03:51 PM
Hello Venu,

Thank you for contacting us.

The item you wish to access is in a RadDataBoundListBox, that is in a RadExpander control, that is in another RadDataBoundListBox. The inner list box has its IsHitTestVisible property set to false., which blocks all user interactions with the control. This is intentionally, because the scrolling does not work properly for the inner DataBoundListBox, but you can workaround this problem if you set MaxHeight of the inner list box control. Here is how your control could look like:
<telerikPrimitives:RadDataBoundListBox ItemTap="RadDataBoundListBox_ItemTap" ItemsSource="{Binding Items}" MaxHeight="300" IsHitTestVisible="True">
...

I hope this helps. Please, let us know if you have further questions.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataBoundListBox
Asked by
venu238
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or