How to Access RadGrid EditForm controls using javascript when RadGrid is in a RadPageView?

6 posts, 0 answers
  1. rajesh
    rajesh avatar
    3 posts
    Member since:
    Aug 2008

    Posted 05 Dec 2008 Link to this post

    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
  2. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 08 Dec 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. rajesh
    rajesh avatar
    3 posts
    Member since:
    Aug 2008

    Posted 09 Dec 2008 Link to this post

    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
  5. Imran Khalid
    Imran Khalid avatar
    8 posts
    Member since:
    Jan 2009

    Posted 19 Mar 2009 Link to this post

    Did you find the solution to this problem....
    Anybody listening...  from Telerik......   knock .. knock....

  6. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 19 Mar 2009 Link to this post

    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.
  7. Christian Hanke
    Christian Hanke avatar
    8 posts
    Member since:
    Jul 2009

    Posted 21 Jul 2009 Link to this post

    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




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