All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
Menu
/
Get Value of DataFieldID
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
2 posts, 0 answers
Tommy
27 posts
Member since:
Feb 2008
Posted 09 May 2008
Link to this post
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
Princy
17421 posts
Member since:
Mar 2007
Posted 09 May 2008
Link to this post
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.
Back to Top
Close