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

[Solved] RadMenuItem in CommandItemTemplate - trying to use the commandName scenerio to call itemCommand()

2 Answers 72 Views
Menu
This is a migrated thread and some comments may be shown as answers.
IQworks
Top achievements
Rank 1
IQworks asked on 31 May 2009, 02:08 AM
 Hi,
     I am trying to use a radmenu in a grid. 
     I would like to use the menuitem to select Insert (add a new record, rather than a linkbutton). I am wondering how to get the commandName scenerio to work here so I can use the ItemCommand() method ?
     I have been searching for a sample of how to even use the itemClicked event to call the itemCommand() method. 
thanks for your time.
     

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Jun 2009, 11:58 AM
Hi,

You may try the following code snippet in the ItemClick event of the RadMenu to set the Grid in Insert mode.

CS:
 
 RadGrid1.MasterTableView.IsItemInserted = true
        RadGrid1.MasterTableView.Rebind(); 


Shinu.
0
IQworks
Top achievements
Rank 1
answered on 02 Jun 2009, 12:10 AM
Thank you Shinu, that worked fine.       
Tags
Menu
Asked by
IQworks
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
IQworks
Top achievements
Rank 1
Share this question
or