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

GridEditCommandColumn not bringing up WebUserControl

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kieran
Top achievements
Rank 1
Kieran asked on 27 Sep 2019, 07:18 PM

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

 

 

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 01 Oct 2019, 09:46 AM

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.
Tags
Grid
Asked by
Kieran
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or