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

[Solved] Menu is doing full postback with opening windows

4 Answers 115 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 07 Jan 2008, 02:47 PM
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

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 07 Jan 2008, 04:45 PM
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
0
Marco
Top achievements
Rank 1
answered on 08 Jan 2008, 01:08 PM
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
0
T. Tsonev
Telerik team
answered on 08 Jan 2008, 01:58 PM
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
0
Marco
Top achievements
Rank 1
answered on 08 Jan 2008, 06:56 PM
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.
Tags
Menu
Asked by
Marco
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Marco
Top achievements
Rank 1
Share this question
or