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

[Solved] Multiple insert rows and row click

1 Answer 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shanthala Somashekar
Top achievements
Rank 1
Shanthala Somashekar asked on 26 Jul 2009, 10:42 PM
Our client has a particular request for the grid. The grid has existing rows in readonly mode that go into edit mode only when they click on the rows and in addition they want to have about 5 empty rows in edit mode already at the bottom of the grid. I have multiple row edit turned on and only set the edit mode for the 5 rows to true. This is working fine and I also have the readonly rows mode going into edit mode on click working.  

The problem is with the blank rows in the bottom. When the user fills in the data for one of these empty rows and moves to the next blank row which is already in edit mode, I need to commit the changes to the first edit row and set that row to read-only and add another blank edit row to keep the count of blank rows to 5 at all times. When the user moves from one edit row to another (which can be by clicking on a edit control in a cell), how do I track that on the client and fire an event to the server so that I can commit the changes for that row, turn off the edit flag and rebind. Please help.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 Jul 2009, 10:48 AM
Hi Shanthala,

You can keep track of whether there are any changes made in the edit form input controls. If this is the case, you can commit the changes to the database. The following example:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx

shows the code needed to keep track of any changes in the inputs. Other than this, once you go to the server to commit the changes made by the user, you can also add a new blank row, and put it in edit mode.
I hope this information helps.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Shanthala Somashekar
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or