Loop through dataitems on clientside

4 posts, 0 answers
  1. Tina
    Tina avatar
    31 posts
    Member since:
    Sep 2007

    Posted 01 Apr 2015 Link to this post

    How can I loop through all the items of the listview on the clientside to find a control in the item template?
  2. Eyup
    Admin
    Eyup avatar
    3009 posts

    Posted 06 Apr 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rohini
    Rohini avatar
    3 posts
    Member since:
    May 2016

    Posted 08 Jun in reply to Eyup Link to this post

    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?

  5. Eyup
    Admin
    Eyup avatar
    3009 posts

    Posted 13 Jun Link to this post

    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.
Back to Top