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

RadGrid Batcheditmode CommandItemTemplate

1 Answer 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karlheinz
Top achievements
Rank 1
Karlheinz asked on 07 Apr 2015, 02:25 PM

i have createtd grids commanditemtemplate programmaticly according to the code you provide in your documentation.

         addButton = new LinkButton();
         addButton.ID = "addButton";
         addButton.Text = "Add record";
         addButton.CommandName = "InitInsert";

Clicking addButton doesnt show a new empty record but postbacks an opens an edittemplate (witch was never defined).

I'd like to have the same behavoir as by using the built in save-button (add a new, empty record).

Is this possible with Rad-Grid ??

 

Thanks for any help.

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Apr 2015, 06:34 AM
Hi Karlheinz,

Please note that Batch editing mode is quite different from other modes since it is based on client-side logic. In order to achieve your requirement, you can make avail of the addNewRecord method:
http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html

You can see in the following post how you should configure your button click handler:
http://www.telerik.com/forums/how-to-fire-the-updateedited-method-from-an-outside-button#5Af7aU0fFEa0UKS5HOhyjA

Hope this helps. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Karlheinz
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or