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

RadToolTipManager problem in IE 8

3 Answers 62 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Mikhail
Top achievements
Rank 1
Mikhail asked on 01 Feb 2012, 10:44 AM
Problem in IE 8 and lower.
In page we haw RadGrid and RadToolTipManager. When paging applied,  grid tooltip appears correctly but when filter applied content is empty. This problem only exists in old  IE(7,8) .
Page:
    <telerik:RadGrid ID="objectGrid" runat="server" AutoGenerateColumns="false" GridLines="None" AllowPaging="true" PageSize="25" EnableLinqExpressions="false"
    AllowSorting="true" AllowFilteringByColumn="true" AllowMultiRowSelection="true"
    OnNeedDataSource="LoadData"
    OnItemDataBound="objectGrid_ItemDataBound"
    OnItemCommand="objectGrid_OnItemCommand"
    OnItemCreated="objectGrid_ItemCreated" 
    OnPageIndexChanged="objectGrid_OnPageIndexChanged">
    <ExportSettings  IgnorePaging="true" OpenInNewWindow="true"  HideStructureColumns="true" >
      <Excel Format="Html" />
    </ExportSettings>
    <MasterTableView CommandItemDisplay="Top">
    <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false"/>
     
        <Columns>
            <telerik:GridTemplateColumn  meta:resourcekey="colChecks" UniqueName="colChecks" AllowFiltering="false">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td width="20px">
                                <asp:ImageButton ID="imgActions" runat="server" meta:resourcekey="imgActions" ImageUrl="~/Images/wizzard_16.png" Visible='<%# this.HasAvailableChecks(Eval("Id")) %>' CommandArgument='<%# Eval("Id") %>' />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
 
    <telerik:RadToolTipManager ID="toolTipManager" runat="server" ShowEvent="OnClick" EnableViewState="true"
     AutoTooltipify="false" OnAjaxUpdate="OnAjaxUpdate" ManualClose="true" Position="BottomRight" 
    RelativeTo="Element" OnClientHide="OnClientClose" Width="300px">
</telerik:RadToolTipManager>

Code:
protected void objectGrid_OnItemCommand(object source, GridCommandEventArgs e)
 {
     if (e.CommandName == "ExportToExcel")
     {
         GridExport();
     }
 
     if (e.CommandName == "Page" || e.CommandName == "ChangePageSize" || e.CommandName == "Filter")
     {
         toolTipManager.TargetControls.Clear();
         BindData();
     }
 }
 
protected void objectGrid_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item)
     {
         // Actions
         ImageButton actions = e.Item.FindControl("imgActions") as ImageButton;
         toolTipManager.TargetControls.Add(actions.ClientID, actions.CommandArgument, true);
     }
 }
 
 protected void objectGrid_OnPageIndexChanged(object sender, GridPageChangedEventArgs e)
 {
     toolTipManager.TargetControls.Clear();
 }

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Feb 2012, 05:36 PM
Hi Mikhail,

This code seems ok and I am not sure what may be causing this behavior. Please check if there is a JavaScript error on the page - if there is please try to resolve it and see if this helps. Also, please examine the network traffic and see if the request is sent and received properly; e.g. is it possible that there is a another AJAX request that cancels the tooltip's? Please also debug your server code and make sure it returns the expected content and does not throw a server error.


Kind regards,
Marin
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
0
Mikhail
Top achievements
Rank 1
answered on 02 Feb 2012, 09:33 PM
I have not found  java script errors on the page. However, when i click the filter button again, Tool tip showing correctly.
In code-behind all OK, Tool tip content control loads correctly all time but not showing when filter applyed. 
0
Marin Bratanov
Telerik team
answered on 03 Feb 2012, 04:31 PM
Hello,

 Can you confirm the RadToolTipManager is updated in the Ajax response? You can do this by examining it in firebug or the IE dev toolbar. If not please include it (either as an updated control in the AJAX settings, or in the same UpdatePanel as your grid). You should also compare it with the second request you get (i.e. when the tooltips are shown) - try to locate the difference - is it still AJAX or does it perform a full postback the second time for example. Please also try reducing the ViewState of the page just for testing, for example by removing some viewstate heavy controls.


Greetings,
Marin
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
ToolTip
Asked by
Mikhail
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Mikhail
Top achievements
Rank 1
Share this question
or