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

RadGrid inside a Panel bar

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 14 May 2009, 07:05 AM
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..

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 15 May 2009, 06:00 AM

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,

Pavlina
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.
Tags
General Discussions
Asked by
Arun
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or