JQuery find all panels on page

4 posts, 0 answers
  1. Gabriel
    Gabriel avatar
    12 posts
    Member since:
    Aug 2012

    Posted 18 Jun 2013 Link to this post


    Hi, I am trying to loop through all my panelsbars in JS but it does not work, when I try to getelementbyid then i can find the panel bat but not like this:
    any ideas?

    $('div[id*="P010101"]').each(function () {
        alert('a');
    });

    Thank you.
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 19 Jun 2013 Link to this post

    Hello Gabriel,

    Please refer to the bottom of the Client-Side Basics help article where you can find an example of how this can be implemented with the RadPanelBar control. 

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gabriel
    Gabriel avatar
    12 posts
    Member since:
    Aug 2012

    Posted 19 Jun 2013 Link to this post


    The example you have are for regular $find method, I would like to loop through all the panelbars on my page performing some updates, i tried to use this code but with no success:

    $('div[id*="P01"]').each(function () {
        alert('a');
    });


    Any one tried this before?

    Thanks.
  5. Gabriel
    Gabriel avatar
    12 posts
    Member since:
    Aug 2012

    Posted 19 Jun 2013 Link to this post



    I have found the answer,

    it seems the page renders fully only after a period of time.

    It works when I put my code in a function I called InitCountNumbers().
    after declaring the final load sequence with:

    Sys.Application.add_load(InitCountNumbers);


    Thank you.
Back to Top