4 Answers, 1 is accepted
0
Accepted
Hi,
You can get the currently displayed items in the RadDataBoundListBox through the RadDataBoundListBox.ViewportItems property.
Let me know should you have any other questions.
Regards,
Ivaylo Gergov
Telerik
You can get the currently displayed items in the RadDataBoundListBox through the RadDataBoundListBox.ViewportItems property.
Let me know should you have any other questions.
Regards,
Ivaylo Gergov
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.
0
Lion Pham
Top achievements
Rank 1
answered on 31 Jul 2014, 06:25 PM
Hello,
Thank you for replying my question.
Your answer solves my problem. However, I have one more question:
ViewportItems returns list of FrameworkElement which are displayed in RadDataBoundListBox. However, I want to get DataItem instead of FrameworkElement. How can I do that?
Looking forward to hearing from you.
Best
Thank you for replying my question.
Your answer solves my problem. However, I have one more question:
ViewportItems returns list of FrameworkElement which are displayed in RadDataBoundListBox. However, I want to get DataItem instead of FrameworkElement. How can I do that?
Looking forward to hearing from you.
Best
0
Lion Pham
Top achievements
Rank 1
answered on 31 Jul 2014, 06:38 PM
I think I solved my problem. I will cast DataContext of FrameworkElement to DataItem. Is that a good solution?
0
Accepted
Hi Dung,
Yes, this is the correct approach.
Let me know should you need further assistance.
Regards,
Ivaylo Gergov
Telerik
Yes, this is the correct approach.
Let me know should you need further assistance.
Regards,
Ivaylo Gergov
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.