Major Issue in UserControls/NamingContainers

7 posts, 0 answers
  1. Rainer Friedl
    Rainer Friedl avatar
    20 posts
    Member since:
    Feb 2006

    Posted 27 Jan 2008 Link to this post

    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

  2. Rainer Friedl
    Rainer Friedl avatar
    20 posts
    Member since:
    Feb 2006

    Posted 27 Jan 2008 Link to this post

    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?

  3. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 28 Jan 2008 Link to this post

    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
  4. Rainer Friedl
    Rainer Friedl avatar
    20 posts
    Member since:
    Feb 2006

    Posted 28 Jan 2008 Link to this post

    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
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 29 Jan 2008 Link to this post

    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
  6. Rainer Friedl
    Rainer Friedl avatar
    20 posts
    Member since:
    Feb 2006

    Posted 30 Jan 2008 Link to this post

    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
  7. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 30 Jan 2008 Link to this post

    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
Back to Top