Hi,
I tried to access the RadGrid EditForm controls by using
registeredElements.push('<%# Container.FindControl("txtDepartment").ClientID %>');
I have tried to follow steps in the below article but unsuccessful.
http://www.telerik.com/community/code-library/aspnet-ajax/grid/accessing-server-controls-in-a-grid-template-on-the-client.aspx
Can any one help please?
Thank you
Rajesh
I tried to access the RadGrid EditForm controls by using
registeredElements.push('<%# Container.FindControl("txtDepartment").ClientID %>');
I have tried to follow steps in the below article but unsuccessful.
http://www.telerik.com/community/code-library/aspnet-ajax/grid/accessing-server-controls-in-a-grid-template-on-the-client.aspx
Can any one help please?
Thank you
Rajesh
5 Answers, 1 is accepted
0
Prangadj
Top achievements
Rank 1
answered on 08 Dec 2008, 02:53 PM
This approach worked for me, rajesh - make sure the txtBox client id is added to registeredElements to get it later. You may also want to use findElement method instead.
Prangadj
Prangadj
0
rajesh
Top achievements
Rank 1
answered on 10 Dec 2008, 01:29 AM
Thanks Prangadj,
I am unable to get it. I will explain the problem more clearly.
I have a radgrid in a RadPageView. I have a textbox and a button in the radgridedit form, When we hit on the button a radwindow opens and we will select a value in the window and it will be passed back to the parent page where radgrid is present. Using RadWindowManager and ClientCallBack functions I am able to get the value, but I want fill the textbox with this value. If the radgrid is not in the RadPageView then I am able to fill the textbox by registering the textbox but, when the radgrid is in a RadPageView then I am not able to access the textbox using the same process "registeredElements.push('<%# Container.FindControl("txtDepartment").ClientID %>');"
Can any one help please?
Thank you
Rajesh
I am unable to get it. I will explain the problem more clearly.
I have a radgrid in a RadPageView. I have a textbox and a button in the radgridedit form, When we hit on the button a radwindow opens and we will select a value in the window and it will be passed back to the parent page where radgrid is present. Using RadWindowManager and ClientCallBack functions I am able to get the value, but I want fill the textbox with this value. If the radgrid is not in the RadPageView then I am able to fill the textbox by registering the textbox but, when the radgrid is in a RadPageView then I am not able to access the textbox using the same process "registeredElements.push('<%# Container.FindControl("txtDepartment").ClientID %>');"
Can any one help please?
Thank you
Rajesh
0
Imran Khalid
Top achievements
Rank 1
answered on 19 Mar 2009, 02:30 PM
Did you find the solution to this problem....
Anybody listening... from Telerik...... knock .. knock....
Anybody listening... from Telerik...... knock .. knock....
0
Hello Imran,
Have you reviewed the solutions provided in this forum thread so far? If they are not helpful, please provide a working subset of your project, which illustrates the issue you encountered, and send it enclosed to a regular support ticket. We will examine it locally and will advice you further.
Best regards,
Sebastian
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.
Have you reviewed the solutions provided in this forum thread so far? If they are not helpful, please provide a working subset of your project, which illustrates the issue you encountered, and send it enclosed to a regular support ticket. We will examine it locally and will advice you further.
Best regards,
Sebastian
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.
0
Christian Hanke
Top achievements
Rank 1
answered on 21 Jul 2009, 04:05 PM
Hey,
its looking like i have similar problem.
i have a main page called view.ascx.
this page contains a radmultipage control. this control also contains some radpageviews.
on one of these radpageview reference another page called effects.ascx which contains some radgrids.
the first radgrid radgrid1 contains a edit button. when i click this button a editformtemplate opens. these editformtype is a webusercontrol (filename = control1.ascx). these webusercontol contains a button.
if i click on this button a second radgrid appears on my effects.ascx. these radgrid has a select button.
now when i click on this button, i want to set the value of the selected row to my textbox in the control1.ascx.
i hope to get some solution to sort my problem out.
Thanks
Chris
its looking like i have similar problem.
i have a main page called view.ascx.
this page contains a radmultipage control. this control also contains some radpageviews.
on one of these radpageview reference another page called effects.ascx which contains some radgrids.
the first radgrid radgrid1 contains a edit button. when i click this button a editformtemplate opens. these editformtype is a webusercontrol (filename = control1.ascx). these webusercontol contains a button.
if i click on this button a second radgrid appears on my effects.ascx. these radgrid has a select button.
now when i click on this button, i want to set the value of the selected row to my textbox in the control1.ascx.
i hope to get some solution to sort my problem out.
Thanks
Chris