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

Get Value of DataFieldID

1 Answer 43 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 09 May 2008, 07:56 AM
Hello,

is it possible to get the value of the DataFieldID from a menu item onClick?

I have in the DataValueField a different value than in the DataFieldID, so I can't write it in the DataValueField.

Tommy

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 May 2008, 11:13 AM
Hi Tommy,

Try the following code snippet to get the DataFieldID in the ItemClick event of Menu.

CS:
  protected void RadMenu1_ItemClick(object sender, RadMenuEventArgs e)  
    {  
        string strData = RadMenu1.DataFieldID.ToString();  
    } 


Thanks
Princy.
Tags
Menu
Asked by
Tommy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or