GridEditCommandColumn not bringing up WebUserControl

2 posts, 0 answers
  1. Kieran
    Kieran avatar
    2 posts
    Member since:
    Jun 2019

    Posted 27 Sep 2019 Link to this post

    Hi, I've added to my grid a GridEditCommandColumn so that when I click the pencil icon a form opens up for me to edit the Item.

     

    Using the example below I've tried to create a WebUserControl, but upon clicking pencil, nothing happens.  

    https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx

     

    Are there any step by step instructions on how to utilize this functionality? I'm trying to reverse engineer the demo but not succeeding.

    Thank you

     

     

  2. Attila Antal
    Admin
    Attila Antal avatar
    523 posts

    Posted 01 Oct 2019 Link to this post

    Hi Kieran,

     

    Generally if a command button does not do anything, that is an indication of multiple issues. 

    To troubleshoot this problem, please try the following steps

    1. Ensure that the Grid is binding data using Advanced Data Binding or Declarative Data Source: How to bind RadGrid properly on server-side
    2. Disable AJAX temporarily: Get more descriptive errors by disabling AJAX
    3. Double check the EditForm settings and ensure that it is configured to use the WebUserControl for editing:
      <telerik:RadGrid ID="RadGrid1" runat="server">
          <MasterTableView>
              <EditFormSettings UserControlName="WebUserControl.ascx" EditFormType="WebUserControl">
              </EditFormSettings>
          </MasterTableView>
      </telerik:RadGrid>
    4. Open the Developer Tools of the Browser and monitor the console tab for JavaScript errors: Improve Your Debugging Skills with Chrome DevTools
    5. Eliminate all JavaScript errors if present

     

    In most cases, either one of the above steps or the combination of all would resolve the issue. In case the issue still persist, please share the current settings you have for the grid so that we can double check.

     

    Kind regards,
    Attila Antal
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top