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

RadGrid Template Column and Binding to RadMenu

1 Answer 100 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 22 May 2008, 04:01 PM
I have a simple RadMenu inside a Template Column of a RadGrid.  I can't figure out how to eval the column to the navigationurl of any of the radmenu items.   The template column has uniquename of gui.   Anyone have any pointers for me?

<Items><telerik:RadMenuItem Text="Download" Value="1"   > 
<Items> 
<telerik:RadMenuItem Text="Download File" Value="1" NavigateUrl='<%# BuildDownloadUrl(Bind("Gui"))  %>'></telerik:RadMenuItem> 
<telerik:RadMenuItem Text="Have a question about file?" Value="2"></telerik:RadMenuItem> 
</Items> 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 May 2008, 03:10 PM
Hello Sam,

Even though RadMenu is in a grid template, it is a naming container itself (for its items collection) and the approach which you used to bind a property of a menu item would only work if RadMenu had a data source.

The good news is that there is a relatively simple workaround which you can use for this case. Please, refer to
this forum thread for a solution.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
Sam
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or