Menu is doing full postback with opening windows

5 posts, 0 answers
  1. Marco
    Marco avatar
    37 posts
    Member since:
    Jul 2007

    Posted 07 Jan 2008 Link to this post

    Hello,

    I have a menu that is opening different windows, or opening pages in a targeted RadPane.
    Both of this worked ok in the standard RadControl menu.

    But now when i set a window opener like this:

    wndMessages.OpenerElementID = RadMenu1.Items(0).Items(0).ClientID

    The window is not opened, but instead the menu gives a full postback.
     Is there something changed here?

    Thanks
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2809 posts

    Posted 07 Jan 2008 Link to this post

    Hi Marco,

    The most probable cause is that RadMenu "Prometheus" does not render IDs for the menu items in order to reduce the output size. Can you please send us a simple project, so we can try to find a workaround for the issue?

    Kind regards,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Marco
    Marco avatar
    37 posts
    Member since:
    Jul 2007

    Posted 08 Jan 2008 Link to this post

    That can be the cause, after looking in the generated html. (no id's)
    But the windowopener line, is giving a Clientid like 'Radmenu1_i0_i0'..

    If i can find some time, i will make a sample project, and send it to you.
    For the moment, i have roll back to the standard menu radcontrol.
    (this is a big application, where i can not do without this functionality)

    Thanks anyway
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2809 posts

    Posted 08 Jan 2008 Link to this post

    Hello Marco,

    We have found an easy workaround that you can try. You can use custom attributes to render the id. The code should look like this:

    private void Page_Load(object sender, EventArgs e) 
        foreach (RadMenuItem item in RadMenu1.GetAllItems()) 
        { 
            item.Attributes["id"] = item.ClientID; 
        } 
     


    Regards,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Marco
    Marco avatar
    37 posts
    Member since:
    Jul 2007

    Posted 08 Jan 2008 Link to this post

    The windows are working good now with the Prometheus menu.

    For vb.net i changed this in:
    Dim item As RadMenuItem  
    For Each item In RadMenu1.GetAllItems  
         item.Attributes("id") = item.ClientID  
    Next 

    Thank you for the solution.
Back to Top