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

get_batchEditingManager not working in the Radgrid inside a repeater control

2 Answers 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nisheet
Top achievements
Rank 1
Nisheet asked on 18 Jun 2019, 02:40 PM

Hi Team,

I have a requirement where I need to create a dynamic editable grid inside a repeater record. I have referred the following telerik links to do the implementation:

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultvb.aspx?show-source=true

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/commanditem/command-item-template#how-to-customize-the-add-new-recordrefresh-text-in-the-commanditem-area

However, the javascript call to get_batchEditingManager method is not working for the RadPushButton under CommandItemTemplate. Please note that the difference in my implemenation is that the RadGrid is dynamically bound and is nested inside a repeater. Please refer the attached code snippet for your reference.

Regards,

Nisheet

 

2 Answers, 1 is accepted

Sort by
0
Nisheet
Top achievements
Rank 1
answered on 19 Jun 2019, 02:31 AM
Can anyone please respond to this post as it's a bit urgent.
0
Vessy
Telerik team
answered on 19 Jun 2019, 06:59 AM
Hi Nisheet,

The faced behavior is caused due to the Static IDs used for the Telerik controls on the page. It is recommended by Microsoft to use ClientIDMode set to Static only for static controls.The controls from the UI for ASP.NET AJAX suite on the other hand are controls with complex hierarchies of child controls and templates so setting their ClientIDMode property to Static breaks their functionality. Can you, please, set the ClientIDMode = "AutoID" property of RadGrid and see if the problem persists?

You can read more details on this matter here:
https://docs.telerik.com/devtools/aspnet-ajax/general-information/troubleshooting/general-troubleshooting#setting-clientidmode-property-to-static-breaks-the-telerik-controls-functionality

Regards,
Vessy
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
Nisheet
Top achievements
Rank 1
Answers by
Nisheet
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or