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

Major Issue in UserControls/NamingContainers

6 Answers 89 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rainer Friedl
Top achievements
Rank 1
Rainer Friedl asked on 27 Jan 2008, 06:06 PM
Hello,

I am using the latest release. It seems, that ContextMenu and ToolTip in NamingContainers are not working as they should, when a control is used several times on a page.

I have the following setup:
UserControls with ContextMenu and ToolTip in it. Both are assinged to other TargetControls (Panels) using the controls ID.

This UserControl is used 1 to many times on a page (portal page using RadDock).

Both, the ContextMenu and Tooltip are only shown in ONE UserControl. Not in the others placed on the page. The ONE is that, which is first added to the page.

This setup worked with the common RadMenu used as ContextMenu and I with older versions of Prometheus.

Can you help with this issue?

Thanks,
Rainer

6 Answers, 1 is accepted

Sort by
0
Rainer Friedl
Top achievements
Rank 1
answered on 27 Jan 2008, 06:24 PM
Me again:

I tried using the ClientId. This worked for both, ContextMenu and ToolTip.

But I had to assign them in code behind. In Markup using TargetControl...="<%=Control.ClientId%>" did not work!

I think there is an issue resolving the correct ClientId from the Control in these controls?

0
Erjan Gavalji
Telerik team
answered on 28 Jan 2008, 04:23 PM
Hi Rainer,

Indeed, this is a bug on our side. Thank you for reporting it. We are now working on fixing it and we will do our best to send you an internal build tomorrow.

Please, bear with us some more and find your telerik account updated.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rainer Friedl
Top achievements
Rank 1
answered on 28 Jan 2008, 05:50 PM
Hello Erjan,

yep, I will baer with you - and thanks for the points.
I am looking forward to the fix.

But I think I got another one:

I update/change the menu during postbacks/ajax update and it seems the following happend:

The post back is initiated and handled by the menu itself:
=> The changes appear to the menu.

The post back is initated by another control (within same Update Panel, conditional update):
=> The changes do not appear/the state is unchanged.

Kind regards,
Rainer
0
Erjan Gavalji
Telerik team
answered on 29 Jan 2008, 04:20 PM
Hi Rainer,

Please, find attached the latest build as promised. Shall you need the dev package, please open a formal support ticket so that I can send it to you.

As per the RadContextMenu making a postback after an Ajax call - this is indeed a known limitation of the control, which solution is still under research.

It is caused by the detachment of RadContextMenu, needed for the proper operation of the control in some scenarios, e.g. having it declared in a scrolled element.

There are two workarounds currently:
  • Add a call to re-attach the RadContextMenu right before the postback;
  • Disable the detaching of the control.
While the first approach is harder to implement, it is the only possible solution when having the control in a scrolled element. The second approach is an easier one and can be used when the RadContextMenu instance is located on the page. Please, find attached a small page, demonstrating the two approaches.

I hope this helps.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Rainer Friedl
Top achievements
Rank 1
answered on 30 Jan 2008, 07:14 AM
Hello,

thanks for the reply. Is it possibel to get a dev compilation, not the trial? I will open a support ticket referencing this thread.

Thanks,
Rainer
0
Erjan Gavalji
Telerik team
answered on 30 Jan 2008, 08:47 AM
Hi Rainer,

I just sent you the dev package. I hope everything is running fine now.

Cheers,
Erjan
the Telerik team

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