ToolTip Controls

2 posts, 1 answers
  1. Matthew
    Matthew avatar
    51 posts
    Member since:
    Oct 2012

    Posted 05 Dec 2012 Link to this post

    We have a webpage with an ajax manager that rebinds whenever one of it's child windows closes and basically updates the page.

    <telerik:RadAjaxManager ID="ramTicket" runat="server" DefaultLoadingPanelID="ralpPrivate" OnAjaxRequest="ramTicket_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rsAppointments">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnlAppointments" UpdatePanelRenderMode="Inline" />
                        <telerik:AjaxUpdatedControl ControlID="rgUnassignedAppointments" />
                        <telerik:AjaxUpdatedControl ControlID="rgMyAppointments" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rgUnassignedAppointments">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnlAppointments" UpdatePanelRenderMode="Inline" />
                        <telerik:AjaxUpdatedControl ControlID="rsAppointments" />
                        <telerik:AjaxUpdatedControl ControlID="rgMyAppointments" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="ramTicket">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="panTicketList" />
                        <telerik:AjaxUpdatedControl ControlID="panTicket" />
                        <telerik:AjaxUpdatedControl ControlID="pnlAppointments" UpdatePanelRenderMode="Inline" />
                        <telerik:AjaxUpdatedControl ControlID="rttAppointments" />
                        <telerik:AjaxUpdatedControl ControlID="rgUnassignedAppointments" />
                        <telerik:AjaxUpdatedControl ControlID="rgMyAppointments" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
    // Check the subscribe function availability before we subscribe
    if (typeof SubscribeToWindowClose == "function") {
        SubscribeToWindowClose("EditTicket", OnClose);
        SubscribeToWindowClose("AddAppointment", OnClose);
        SubscribeToWindowClose("UpdateTicketProgress", OnClose);
        SubscribeToWindowClose("EditClient", OnClose);
        SubscribeToWindowClose("EditSystem", OnClose); //See if this works
    }
     
    // The subscribed close function for the EditTicket window
    function OnClose(sender, args) {
        if (args) grid_rowclick();
        var ramTicket = $find('<%= ramTicket.ClientID %>');
        ramTicket.ajaxRequest('Rebind: ' + args);
    }

    I've found that the rad tool tip, rttAppointments, gets displaced when it is not an updated control of the ajax manager. It contains (among other things) three controls: rsAppointments, rgUnassignedAppointments, rgMyAppointments. I'd like to refresh their data, but including them as an updated control makes them disappear entirely, and removing rttAppointments as an updated control isn't an option because the tool tip gets displaced.

    How can I remedy this situation? Thanks.

    Edit:

    Thought of one more thing that might be relevant: the target control for rttAppointments is pnlAppointments which you'll note is also updated when a child window closes.
  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Dec 2012 Link to this post

    Hello Matthew,

    Note that in order to update any controls when manual ajaxRequest is invoked all the content that need to be updated should be added as updated with initiator the main RadAjaxManager. So please try adding the RadAjaxManager itself to update the tooltip control and all other controls that need to be updated and verify  if this makes any difference.

    All the best,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top