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

Loop through dataitems on clientside

3 Answers 133 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 2
Tina asked on 01 Apr 2015, 09:10 PM
How can I loop through all the items of the listview on the clientside to find a control in the item template?

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 06 Apr 2015, 01:35 PM
Hello Tina,

RadListView does not render container element and does not generate client-side objects for its items as RadGrid does. You can wrap the contents of your ItemTemplate within a div element and use its id to traverse the items on the client.

You can also make avail of the $telerik.findControl and $telerik.findElement methods. If you have different requirements or further instructions, please elaborate on your specific requirement and send us sample screenshots or video demonstrating the desired behavior.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Rohini
Top achievements
Rank 1
answered on 08 Jun 2016, 10:14 AM

Hi,

I am trying to find controls inside of ItemTemplate at client side OnTemplateDataBound but its not working.  Can you please provide sample solution that how it works with RadListView?

0
Eyup
Telerik team
answered on 13 Jun 2016, 07:04 AM
Hello Rohini,

I noticed that you've opened multiple threads for the same scenario. Please note that corresponding in a single thread will result in a more efficient resolution. Therefore, I am closing thread 1041902 and answering in 1042535.

I highly suggest that we continue this discussion on your support ticket with ID: 1042535.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
ListView
Asked by
Tina
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Rohini
Top achievements
Rank 1
Share this question
or