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

how to get into edit mode to insert a new record with context menu

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 2
Mario asked on 09 Sep 2009, 11:41 AM
Hi,

i have built a grid, a deatils.ascx (my User Edit form) and i want to call the editmode of the grid with a context menu.

all works fine, i can rightclick a row and the context menu opens. I already implemented that i can edit the record and do the update in the database with the editmode like in the online demo:

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

Now i want to do the insertCommand. But i want to provoke the Insert Edit Mode with my context menu and not from the CommandItem of the grid. How can i do that?

thx, Mario


PS.:
I just added "CommandItemDisplay="Top"" to the MasterView properties. Is it default that there is displayd Add Record and Refresh functionality in the CommandItem if im not implementing a CommandItem myself?

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 09 Sep 2009, 11:53 AM
Hi Mario,

Directions on how to implement your scenario you can find at the following online example:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=grid

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Mario
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
Share this question
or