RadGridView AddNewBoundRowBeforeEdit on Child Template

1 Answer 20 Views
GridView
Jeff
Top achievements
Rank 1
Jeff asked on 10 Sep 2025, 01:42 PM
I have some customized functionality I am using in a grid which depends on AddNewBoundRowBeforeEdit which works perfectly when the grid id bound to a flat list of my business objects. I have a requirement now to nest these records in the grid in hierarchy mode, where my same functionality will be used in the child template. It seems that this property is only available on a MasterGridViewTemplate and can not be set on GridViewTemplate instances that are added through a manual relation. Is there a technical reason why child templates can't have this flag and functionality? Is there any way to effectively get that behavior in child template where the bound data object gets created and attached to the row's DataBoundItem property before editing a new row?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 12 Sep 2025, 09:32 AM

Hi Jeff,

Indeed the AddNewBoundRowBeforeEdit is defined only inside the MasterGridViewTemplate and is exposed by the RadGridView.MasterTemplate property. This is a global setting for the grid and it's not possible for one template to have it set to True and another set to False, that's why we have a single property. Still, however, the property is taken into consideration for the child templates. The GridViewNewRowInfo objects for the child templates through the master template perform a check for the AddNewBoundRowBeforeEdit value. In this respect your setting should be respected for the child templates as well, nevertheless that you cannot set the property explicitly.

I see that you have also opened a support ticket for the same question. If you prefer we can continue our communication there. In case you will need further assistance please try and setup a sample project as close as possible to your actual scenario and send it in the support ticket. This will help us investigate your setup.

I hope this will help. 

Regards,
Hristo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Jeff
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or