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

changing Radgrid to edit mode once record is inserted

1 Answer 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manisha Shivjiani
Top achievements
Rank 1
Manisha Shivjiani asked on 13 Aug 2013, 09:48 PM

Hi,
I would like to know how to put the grid in the edit mode once the record is inserted.

I am using telerik radgrid  with editmode="Editforms" and EditFormType="Template"

Insert action is handled in the code behind.

Once record is inserted, I would like the grid to go into edit mode.

I would appreciate  help with this.

Thanks,
Manisha

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 16 Aug 2013, 02:43 PM
Hi Manisha,

An answer regarding the same question is already provided in the official support ticket you have opened.

For yours and the community convenience, here is the mentioned answer:
"Such functionality is not available out of the box and the implementation strongly depends on your scenario.

One possible approach that could be used in order to achieve such functionality is to store an unique value from the inserted data item and on ItemDataBound server-side event to check if the current element is the inserted one. When the inserted element is found, changing the item "Edit" property to "true" will open the item for editing.

Please have a look at the attached sample, runnable project with the described approach. Note that in the sample project an auto increment column is used to get the inserted item."


Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Manisha Shivjiani
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or