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

How to show a small menu by clicking radGrid item?

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saad
Top achievements
Rank 1
Saad asked on 23 Nov 2008, 02:17 PM
I have placed a GridButtonColumn on each row of my radGrid...I want to show a very simple menu (could be any control) with some options in it whenever user clicks on them. I have named CommandName of my GridButtonColumn as "Options" and have made an event of RadGrid_ItemCommand. Please guide me plzzzzzzzz!!!!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Nov 2008, 04:11 AM
Hi Saadi,

From what I understood you are trying to show a Menu ok clicking a GridButtonColumn. If so try the following code snippet and see if it helps.

ASPX:
  <telerik:GridButtonColumn CommandName="Options" Text="Click"  UniqueName="Options"  ></telerik:GridButtonColumn> 
                     

CS:
 protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if (e.CommandName == "Options") 
        { 
            RadMenu1.Visible = true
        } 
    } 
 


Thanks
Shinu.
Tags
Grid
Asked by
Saad
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or