How to find a control in the header or footer

5 posts, 1 answers
  1. Joe
    Joe avatar
    48 posts
    Member since:
    Dec 2007

    Posted 27 Sep 2010 Link to this post

    I'm trying to change using javascript the value of a control I have added to the footer of my list. For instance, I have added a asp.net label with id 'lblCount'. What would be the easiest way to find the control in my javascript?

    Thanks,
    Joe
  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 29 Sep 2010 Link to this post

    Hi Joe,

    At this moment finding a control in header/footer is not easy via javascript as you can not access the template element. You can do it easily server-side. Please take a look at the bottom of this help topic how.

    All the best,
    Veronica Milcheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joe
    Joe avatar
    48 posts
    Member since:
    Dec 2007

    Posted 30 Sep 2010 Link to this post

    Hi Veronica,

    I needed my change to work client-side only. But I was able to achieve the same effect using labels positioned outside the RadListBox. Thanks for the help.

    Joe
  5. Andrew
    Andrew avatar
    2 posts
    Member since:
    Feb 2011

    Posted 19 Apr 2011 Link to this post

    Is it still the case that the header template controls cannot be access on the client-side?
  6. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 22 Apr 2011 Link to this post

    Hi Andrew,

    It depends on the control that you want to access in the header template. If you want to access some ASP.NET label for example - you can set some Css class to the label and later access the label by using $telerik.getElementByClassName() jQuery function.

    All the best,
    Veronica Milcheva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017