RadGrid Template Column and Binding to RadMenu

2 posts, 0 answers
  1. Sam
    Sam avatar
    2 posts
    Member since:
    Jan 2008

    Posted 22 May 2008 Link to this post

    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"   > 
    <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> 

  2. Peter
    Peter avatar
    6637 posts

    Posted 26 May 2008 Link to this post

    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.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top