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

How to get current items are displaying on view?

4 Answers 39 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.
Lion Pham
Top achievements
Rank 1
Lion Pham asked on 26 Jul 2014, 09:14 AM
Hello,

How can I get current items are display on view?

Best Regards

4 Answers, 1 is accepted

Sort by
0
Accepted
Ivaylo Gergov
Telerik team
answered on 30 Jul 2014, 09:14 AM
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
 

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




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
Ivaylo Gergov
Telerik team
answered on 05 Aug 2014, 03:21 PM
Hi Dung,

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.

 
Tags
DataBoundListBox
Asked by
Lion Pham
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Lion Pham
Top achievements
Rank 1
Share this question
or