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

ToolTip Controls

1 Answer 58 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 06 Dec 2012, 12:11 AM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 10 Dec 2012, 01:19 PM
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.
Tags
Ajax
Asked by
Matthew
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or