RadGrid inside a Panel bar

2 posts, 0 answers
  1. Arun
    Arun avatar
    15 posts
    Member since:
    Apr 2009

    Posted 14 May 2009 Link to this post

    Hi i am using the RadGrid inside a panelbar. the panelbar is in a content template..  I have created an hidden asp itemtemplate column in the rad grid. As per my code i need to assign a value to the hidden column using a javascript. When i give document.getElementById("hdn") i always get a response of null. I even tried giving the masterpage id using ct100_hdn nothing works.

    How will i access the hidden field using the javacscript?

    If ur in need of the code. let me knw i shall post it..
  2. Pavlina
    Pavlina avatar
    6069 posts

    Posted 15 May 2009 Link to this post

    Hello Arun,

    I suppose that the problem is due to the fact that the id of the hidden field is changed after it is put in another naming container (Panelbar in your case).

    You need to find out what is the real client ID of the control, depending on the naming container of the control. The naming containers for a given control is the parent control above it in the master page and TemplateField that implements the INamingContainer Interface.
    Please note that if you want to get the control by ID, you need to get the ID of all naming containers not only the control's ID.

    I hope this helps.

    Sincerely yours,

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft R3 2016 release webinar banner
Back to Top