RadToolTip Multiple Ajax Requests RadAjaxManager

4 posts, 1 answers
  1. Alex
    Alex avatar
    31 posts
    Member since:
    Jun 2009

    Posted 05 Jan 2010 Link to this post

    I have a page with a multi page view, tab strip, radgrid, radtreeview, radmenu, and the radwindow manager. I need to have a RadAjaxManager on this page to contain all of the other controls on the page. My problem is I need a product preview (which has a focus of a hyperlink) for the ToolTip. My ToolTip functionality works, it actually goes to the next page and all of the variables load fine. When the ToolTip finishes the loading process it disappears. I believe the issue is within the RadAjaxManager, somehow it is making a second call to refresh the grid so the control I'm loading for the ToolTip goes away, please help!

    ASPX:
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStarted">  
       <AjaxSettings>        
          <telerik:AjaxSetting AjaxControlID="TaskListMultiPage">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="lblFilter"/>  
               <telerik:AjaxUpdatedControl ControlID="lblPanelID" /> 
               <telerik:AjaxUpdatedControl ControlID="lbClearFilters" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListTabStrip" /> 
                <telerik:AjaxUpdatedControl ControlID="TaskListMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting>    
          <telerik:AjaxSetting AjaxControlID="TaskListFilter">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="TaskListMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListGridView" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListTabStrip" /> 
               <telerik:AjaxUpdatedControl ControlID="ViewProductsList" /> 
               <telerik:AjaxUpdatedControl ControlID="FilterUpdatePanel" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting> 
          <telerik:AjaxSetting AjaxControlID="ApplyFilters">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="TaskListMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListTabStrip" />             
               <telerik:AjaxUpdatedControl ControlID="TaskListGridView" /> 
               <telerik:AjaxUpdatedControl ControlID="ViewProductsList" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting> 
          <telerik:AjaxSetting AjaxControlID="lbClearFilters">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="TaskListMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListTabStrip" />             
               <telerik:AjaxUpdatedControl ControlID="TaskListGridView" /> 
               <telerik:AjaxUpdatedControl ControlID="ViewProductsList" /> 
               <telerik:AjaxUpdatedControl ControlID="ViewTaskOptions" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting>        
          <telerik:AjaxSetting AjaxControlID="ViewTaskOptions">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="TaskListMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting> 
          <telerik:AjaxSetting AjaxControlID="SetTaskDateRange">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="TaskListMultiPage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting> 
          <telerik:AjaxSetting AjaxControlID="TaskListGridView">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="TaskListGridView" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListTabStrip" /> 
               <telerik:AjaxUpdatedControl ControlID="ViewProductsList" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListClickMenu" /> 
               <telerik:AjaxUpdatedControl ControlID="radToolTip" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting> 
          <telerik:AjaxSetting AjaxControlID="ViewProductsList">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="ViewProductsList" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting> 
          <telerik:AjaxSetting AjaxControlID="TaskListClickMenu">  
             <UpdatedControls> 
               <telerik:AjaxUpdatedControl ControlID="TaskListClickMenu" /> 
               <telerik:AjaxUpdatedControl ControlID="TaskListGridView" /> 
             </UpdatedControls> 
          </telerik:AjaxSetting> 
       </AjaxSettings> 
    </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="10">            
            <br /><br /><br /><asp:Image ID="RadAjaxLoadingImage" runat="server" ImageUrl="~/Images/loading.gif" />          
        </telerik:RadAjaxLoadingPanel> 
            <table> 
                <tr> 
                    <td><br /><asp:Label ID="lblFilter" runat="server" Font-Italic="true" /></td>  
                    <td><br /><asp:Label ID="lblPanelID" runat="server" Font-Italic="true" Visible="false" /></td>  
                    <td><br /><asp:LinkButton ID="lbClearFilters" runat="server" OnClick="lbClearFilters_Clicked" Text="Clear Filters" Visible="false" /></td>  
                </tr> 
            </table>         
    <telerik:RadTabStrip ID="TaskListTabStrip" Skin="WebBlue" runat="server" MultiPageID="TaskListMultiPage" SelectedIndex="0">  
    <Tabs> 
      <telerik:RadTab Text="Task List" Value="TaskListTab"><TabTemplate><asp:Label ID="TotalRecordCount" runat="server" Font-Bold="true" /></TabTemplate></telerik:RadTab> 
      <telerik:RadTab Text="Filter Options" /> 
      <telerik:RadTab Text="TaskList Selections, Brands, & Disclaimers" />    
    </Tabs> 
    </telerik:RadTabStrip> 
     
    <telerik:RadMultiPage ID="TaskListMultiPage" runat="server" SelectedIndex="0">  
      <telerik:RadPageView ID="TaskListPage" runat="server">  
     
        <asp:Panel ID="TaskListPanel" runat="server" Height="500px">  
            <asp:ObjectDataSource ID="TaskListObjectDataSource" runat="server" OldValuesParameterFormatString="original_{0}" 
                SelectMethod="GetData" TypeName="TaskListDataTableAdapters.TaskListAdapter" EnablePaging="True"   
                SelectCountMethod="wts_TaskListInDateRange_count" MaximumRowsParameterName="pagesize" StartRowIndexParameterName="start_row"   
                SortParameterName="sort_id_string" OnObjectCreated="TaskListObjectDataSource_ObjectCreated"   
                OnSelecting="TaskListObjectDataSource_Selecting">     
                <SelectParameters> 
                    <asp:Parameter Name="TaskId" Type="Int32" /> 
                    <asp:Parameter Name="WebCategory" Type="String" /> 
                    <asp:Parameter Name="ProdID" Type="String" /> 
                    <asp:Parameter Name="TaskType" Type="Int32" /> 
                    <asp:Parameter Name="RoleCode" Type="Int32" /> 
                    <asp:Parameter Name="user" Type="String" /> 
                    <asp:Parameter Name="StartDayRange" Type="Int32" /> 
                    <asp:Parameter Name="EndDayRange" Type="Int32" /> 
                    <asp:Parameter Name="attribute_id" Type="Int32" /> 
                    <asp:Parameter Name="productSource_id" Type="Int32" /> 
                    <asp:Parameter Name="EcoVendor_ID" Type="Int32" /> 
                    <asp:Parameter Name="direction" Type="Int32" /> 
                    <asp:Parameter Name="WebLocation" Type="Boolean" /> 
                    <asp:Parameter Name="ShootProduct" Type="Boolean" /> 
                    <asp:Parameter Name="WriteCopy" Type="Boolean" /> 
                    <asp:Parameter Name="ApproveCopy" Type="Boolean" /> 
                    <asp:Parameter Name="VariantDescription" Type="Boolean" /> 
                    <asp:Parameter Name="Continuity" Type="Boolean" /> 
                    <asp:Parameter Name="LegalReview" Type="Boolean" /> 
                    <asp:Parameter Name="QAReview" Type="Boolean" /> 
                    <asp:Parameter Name="ApplyEdits" Type="Boolean" /> 
                    <asp:Parameter Name="AssignAttributes" Type="Boolean" /> 
                    <asp:Parameter Name="ApproveECOPricing" Type="Boolean" /> 
                    <asp:Parameter Name="ApproveECOItem" Type="Boolean" /> 
                    <asp:Parameter Name="QAItemApproval" Type="Boolean" /> 
                    <asp:Parameter Name="QAItemApprovalExists" Type="Boolean" /> 
                    <asp:Parameter Name="CategoryA" Type="Boolean" /> 
                    <asp:Parameter Name="CategoryB" Type="Boolean" /> 
                    <asp:Parameter Name="CategoryX" Type="Boolean" /> 
                    <asp:Parameter Name="NonRegulated" Type="Boolean" /> 
                    <asp:Parameter Name="AmericasStore" Type="Boolean" /> 
                    <asp:Parameter Name="Beauty" Type="Boolean" /> 
                    <asp:Parameter Name="Clearance" Type="Boolean" /> 
                    <asp:Parameter Name="Collectibles" Type="Boolean" /> 
                    <asp:Parameter Name="Cooking" Type="Boolean" /> 
                    <asp:Parameter Name="CraftsSewing" Type="Boolean" /> 
                    <asp:Parameter Name="ECO" Type="Boolean" /> 
                    <asp:Parameter Name="Electronics" Type="Boolean" /> 
                    <asp:Parameter Name="Entertainment" Type="Boolean" /> 
                    <asp:Parameter Name="Fashion" Type="Boolean" /> 
                    <asp:Parameter Name="Hardlines" Type="Boolean" /> 
                    <asp:Parameter Name="Hardware" Type="Boolean" /> 
                    <asp:Parameter Name="HealthFitness" Type="Boolean" /> 
                    <asp:Parameter Name="HouseHome" Type="Boolean" /> 
                    <asp:Parameter Name="HSNImprovements" Type="Boolean" /> 
                    <asp:Parameter Name="HSNRewardsOld" Type="Boolean" /> 
                    <asp:Parameter Name="Jewelry" Type="Boolean" /> 
                    <asp:Parameter Name="Softlines" Type="Boolean" /> 
                    <asp:Parameter Name="Sports" Type="Boolean" /> 
                    <asp:Parameter Name="Toys" Type="Boolean" /> 
                    <asp:Parameter Name="inactive_fl" Type="Byte" /> 
                </SelectParameters> 
            </asp:ObjectDataSource>      
            
            <!-- DataSource: wts_TaskListInDateRange --> 
            <telerik:RadGrid ID="TaskListGridView" runat="server" 
               AutoGenerateColumns="False" DataSourceID="TaskListObjectDataSource" 
               AllowPaging="True" AllowSorting="True" OnPageIndexChanged="TaskListGridView_PageIndexChanging" 
               GridLines="Vertical" MasterTableView-AllowNaturalSort="true" OnSortCommand="TaskList_OnSortCommand" 
               Skin="WebBlue" SelectedItemStyle-BackColor="LightSteelBlue" AllowMultiRowSelection="true" 
               ItemStyle-BorderStyle="Groove" MasterTableView-AllowMultiColumnSorting="false"             
               ItemStyle-BorderWidth="1px" OnItemEvent="TaskListGridView_ItemEvent" Width="150%" 
               OnItemCommand="TaskListGridView_ItemCommand" OnItemDataBound="TaskListGridView_ItemDataBound">  
     
                <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">  
                   <Selecting AllowRowSelect="true" />                      
                   <ClientEvents OnRowContextMenu="ManageMenuItems" /> 
                </ClientSettings> 
                  
                <HeaderContextMenu Skin="WebBlue">  
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </HeaderContextMenu> 
                  
                <ItemStyle BorderStyle="Groove" BorderWidth="1px" /> 
                  
                <MasterTableView DataKeyNames="WebP_ID" PageSize="100" AllowCustomSorting="true"   
                 ClientDataKeyNames="WebP_ID" TableLayout="Fixed" HierarchyLoadMode="Client">      
                  
                <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" NextPageImageUrl="Images/PagingNext.gif" 
                NextPagesToolTip="Next" PrevPageImageUrl="Images/PagingPrev.gif" PrevPagesToolTip="Previous" ForeColor="#007FB4" 
                FirstPageImageUrl="Images/PagingFirst.gif" LastPageImageUrl="Images/PagingLast.gif" FirstPageToolTip="First Page" LastPageToolTip="Last Page" /> 
                  
                <Columns> 
                    <telerik:GridTemplateColumn HeaderText="WebP_Id" SortExpression="1" HeaderStyle-Width="60px" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate>                      
                           <asp:HyperLink ID="lnkWebPId" Font-Size="8" runat="server" Text='<%# Eval("WebP_ID") %>' NavigateUrl='<%# String.Format("~/ProductsScreen.aspx?webpid={0}", Eval("WebP_ID")) %>'></asp:HyperLink> 
                        </ItemTemplate> 
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
     
                    <telerik:GridTemplateColumn HeaderText="Style" SortExpression="11" HeaderStyle-Width="55px" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblStyle" Font-Size="8" runat="server" Text='<%# Eval("club_Id") %>'></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                                      
                    <telerik:GridTemplateColumn HeaderText="E" SortExpression="9" HeaderStyle-Width="25px" DataField="EcoVendor_ID" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">                  
                        <ItemTemplate> 
                            <onclick="javascript:lnkapproveEcoCopy('t<%# Eval("WebP_ID") %>');" style="cursor: pointer;"><asp:Image ID="lblApproveECOItem" runat="server" AlternateText='<%# DisplayEcoItemAltText(Eval("Approve ECO Item"), Eval("QAItemApprovalExists")) %>' ImageUrl='<%# DisplayEcoItemIcon(Eval("Approve ECO Item"), Eval("QAItemApprovalExists")) %>' Visible='<%# DisplayEcoItemImage() %>' /></a>  
                        </ItemTemplate> 
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="C" HeaderStyle-Width="25px" SortExpression="2" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Image ID="lblCopyStatus" runat="server" AlternateText='<%# DisplayCopyAltText(Eval("Copy & Web_Desc")) %>' ImageUrl='<%# DisplayCopyStatusIcon(Eval("Copy & Web_Desc")) %>' /> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="P" HeaderStyle-Width="25px" SortExpression="3" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Image ID="lblPublishStatus" runat="server" AlternateText='<%# DisplayPublishStatusAltText(Eval("Prod_Custom1 & Rotation"), Eval("Prod_Custom1"), Eval("retek_frozen_ind")) %>' ImageUrl='<%# DisplayPublishStatusIcon(Eval("Prod_Custom1 & Rotation"), Eval("retek_frozen_ind")) %>' /> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="F" HeaderStyle-Width="25px" SortExpression="4" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblLegal" Font-Size="8" runat="server" Text='<%# Eval("Legal") %>'></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
               
                    <telerik:GridTemplateColumn HeaderText="R" HeaderStyle-Width="25px" SortExpression="5" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Image ID="lblApplyEditStatus" runat="server" AlternateText='<%# DisplayApplyEditsAltText(Eval("Apply Edits")) %>' ImageUrl='<%# DisplayApplyEditsIcon(Eval("Apply Edits")) %>' Visible='<%# TaskExistenceVisibility(Eval("Apply Edits")) %>' /> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
     
                    <telerik:GridTemplateColumn HeaderText="I" HeaderStyle-Width="25px" SortExpression="6" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                             <%# DisplayScene7Link(Eval("Shoot Product"), Eval("WebP_ID")) %><asp:Image ID="ImageStatus" runat="server" AlternateText='<%# DisplayImageAltText(Eval("Shoot Product")) %>' ImageUrl='<%# DisplayImageIcon(Eval("Shoot Product")) %>' Visible="true" /> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                   
                    <telerik:GridTemplateColumn HeaderText="A" HeaderStyle-Width="25px" SortExpression="7" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Image ID="lblAttributeStatus" runat="server" AlternateText='<%# DisplayAttributesAssignedAltText(Eval("Assign Attributes")) %>' ImageUrl='<%# DisplayAttributesAssignedIcon(Eval("Assign Attributes")) %>' Visible='<%# TaskExistenceVisibility(Eval("Assign Attributes")) %>' /> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="$" HeaderStyle-Width="25px" SortExpression="8" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:HyperLink Target="_blank" ID="PendingEcoPricingLink" runat="server" NavigateUrl='<%# FormatEcoPricingLink(Eval("WebP_ID"), Eval("Approve ECO Pricing")) %>' Visible='<%# DisplayEcoPricingImageButton(Eval("Approve ECO Pricing")) %>'><asp:Image ID="ECOPricingAltTextImage" runat="server" AlternateText='<%# DisplayPendingEcoPricingAltText(Eval("Approve ECO Pricing")) %>' ImageUrl='<%# DisplayPendingEcoPricingIcon(Eval("Approve ECO Pricing")) %>' Visible='<%# DisplayEcoPricingImageButton(Eval("Approve ECO Pricing")) %>' /></asp:HyperLink> 
                            <asp:Image ID="PendingEcoPricingImage" runat="server" AlternateText='<%# DisplayPendingEcoPricingAltText(Eval("Approve ECO Pricing")) %>' ImageUrl='<%# DisplayPendingEcoPricingIcon(Eval("Approve ECO Pricing")) %>' Visible='<%# DisplayEcoPricingImage(Eval("Approve ECO Pricing")) %>' /> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Q" HeaderStyle-Width="25px" SortExpression="10" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Image ID="lblQAItemApprove" runat="server" AlternateText='<%# DisplayQAItemApprovalAltText(Eval("QAItemApprovalExists")) %>' ImageUrl='<%# DisplayQAItemApprovalIcon(Eval("QAItemApprovalExists")) %>' Visible='<%# TaskExistenceVisibility(Eval("QAItemApprovalExists")) %>' /> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
     
                    <telerik:GridTemplateColumn HeaderText="Qty" HeaderStyle-Width="40px" SortExpression="12" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblQuantity" Font-Size="8" runat="server" Text='<%# Eval("Qnty_Available") %>'></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Name" HeaderStyle-Width="250px" SortExpression="13" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblProductName" Font-Size="8" runat="server" Text='<%# Eval("Name") %>' Width="230px"></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Vendor P/N" HeaderStyle-Width="75px" SortExpression="21" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                             <asp:Label ID="VendorProduct_ID" Font-Size="8" runat="server" Text='<%# Eval("VendorProduct_ID") %>'></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
     
                    <telerik:GridTemplateColumn HeaderText="AFS" HeaderStyle-Width="65px" SortExpression="14" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblAFSDate" Font-Size="8" runat="server" ForeColor='<%# AFS72HrForecolor(Eval("RequiredByDate")) %>' Text='<%# Eval("RequiredByDate") != System.DBNull.Value ? Convert.ToDateTime(Eval("RequiredByDate")).ToShortDateString() : Eval("RequiredByDate") %>' /> 
                        </ItemTemplate> 
                          
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="RC" SortExpression="15" Visible="false" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblRotation" Font-Size="8" runat="server" Text='<%# Eval("Rotation") %>'></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Cat ID" HeaderStyle-Width="80px" SortExpression="16" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblCatId" Font-Size="8" runat="server" Text='<%# Eval("Club_Cat") %>'></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Store" HeaderStyle-Width="130px" SortExpression="17" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblStore" Font-Size="8" runat="server" Text='<%# Eval("Store") %>'></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Dept" HeaderStyle-Width="80px" SortExpression="18" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblDepartment" Font-Size="8" runat="server" Text='<%# Eval("Department") %>' Width="150px"></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Category" HeaderStyle-Width="80px" SortExpression="19" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblCategory" Font-Size="8" runat="server" Text='<%# Eval("Category") %>' Width="150px"></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="SubCat" SortExpression="75" HeaderStyle-Width="50px" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                        <ItemTemplate> 
                            <asp:Label ID="lblSubCategory" Font-Size="8" runat="server" Text='<%# Eval("SubCategory") %>' Width="150px"></asp:Label> 
                        </ItemTemplate>                      
                        <HeaderStyle CssClass="TaskListText" Wrap="False" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                      
                    <telerik:GridTemplateColumn HeaderText="Manufacturer" HeaderStyle-Width="100px" SortExpression="22" SortAscImageUrl="Images/SortAsc.gif" SortDescImageUrl="Images/SortDesc.gif">  
                       <ItemTemplate> 
                            <asp:Label ID="lblManufacturer" Font-Size="8" runat="server" Text='<%# Eval("ECO_Man") %>' /> 
                       </ItemTemplate> 
                       <HeaderStyle CssClass="TaskListText" Wrap="false" ForeColor="White" BorderColor="#8b8b8b" /> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
                </MasterTableView> 
                <FilterMenu Skin="WebBlue">  
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </FilterMenu> 
            </telerik:RadGrid> 
              
            <telerik:RadToolTipManager runat="server" ID="radToolTip" Width="332" Height="320" 
                Animation="None" Text="Loading..." 
                OnAjaxUpdate="radToolTip_AjaxUpdate" HideEvent="LeaveTargetAndToolTip"                
                OnClientBeforeShow="clientBeforeShow" Skin="Web20" Position="Center" /> 
              
            <telerik:RadWindowManager ID="radWindowManager" runat="server" Skin="Vista">  
                <Windows> 
                   <telerik:RadWindow ID="approveECOItemWindow" runat="server" Animation="Fade" Height="200" 
                       Behaviors="None" Modal="true" Width="250" Overlay="true" Skin="Vista"   
                       style="display:none;" Top="" VisibleStatusbar="false" ReloadOnShow="true" 
                       ShowContentDuringLoad="false" Title="Approve ECO Item" NavigateUrl="ApproveECOItemForm.aspx" />   
                   <telerik:RadWindow ID="modifyRDDDateWindow" runat="server" Animation="Fade" Height="275" 
                       Behaviors="None" Modal="true" Width="300" Overlay="true" Skin="Vista"   
                       style="display:none;" Top="" VisibleStatusbar="false" ReloadOnShow="true" 
                       ShowContentDuringLoad="false" Title="Modify RDD Date" NavigateUrl="ModifyRDDDate.aspx" 
                       OnClientClose="onEditClose" />                      
                </Windows>              
            </telerik:RadWindowManager> 
              
            <telerik:RadContextMenu ID="TaskListClickMenu" runat="server" OnClientItemClicked="rcmMenuSelect">  
                <Targets> 
                   <telerik:ContextMenuControlTarget ControlID="TaskListGridView" /> 
                </Targets>              
                <Items> 
                   <telerik:RadMenuItem Text="Modify RDD Date (s)" Value="ModRDDDate" /> 
                </Items> 
            </telerik:RadContextMenu>   
            <asp:Button style="display:none;" ID="btnHidden" runat="server" OnClick="btnHidden_Click" Enabled="true" /> 
         </asp:Panel> 
     

    C#:

        protected void radToolTip_AjaxUpdate(object sender, ToolTipUpdateEventArgs args)  
        {         
            UpdateToolTip(args.Value, args.UpdatePanel);          
        }  
     
        private void UpdateToolTip(string elementID, UpdatePanel panel)  
        {  
            Control ctrl = Page.LoadControl("~/Controls/ProductPromoToolTip.ascx");  
            ProductPromoManager.ProductPromoToolTip details = (ProductPromoManager.ProductPromoToolTip)ctrl;  
            panel.ContentTemplateContainer.Controls.Add(ctrl);  
            details.ProductID = elementID;  
        }  
     
        protected void TaskListGridView_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)  
            {  
                Control target = e.Item.FindControl("lnkWebPId");  
                if (!Object.Equals(target, null))  
                {  
                    if (!Object.Equals(radToolTip, null))  
                    {  
                        //Add the link button (target) id to the tooltip manager  
                        radToolTip.TargetControls.Add(target.ClientID, (e.Item as GridDataItem).GetDataKeyValue("WebP_ID").ToString(), true);  
                    }  
                }  
            }  
        }  
     
        protected void TaskListGridView_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            if (e.CommandName == "Sort" || e.CommandName == "Page")  
            {  
                radToolTip.TargetControls.Clear();  
            }  
        } 


    Please let me know if any other code is needed or if I need to post any other information. As you can see I have too much going on to convert to an update panel or a radajaxpanel to test. Thank you!
  2. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 07 Jan 2010 Link to this post

    Hello Alex,

    Note, that the RadToolTipManager uses internally AJAX if used with LOAD functionality and the RadAjaxManager also generates an update panel and thus you probably get nested update panels as a result - this is the only thing I can assume based on your code and explanations.

    To test my assumption, please set EnableAJAX="false" for the RadAjaxManager just for test purposes and check whether the issue persists. If it disappears, the assumption is most probably correct and what you should do is to remove the grid and the RadToolTipManager from the ajax settings and to wrap them in a standard update panel with UpdateMode="Conditional" instead - this will prevent the outermost update panel from update when the tooltip is being shown.

    Let me know whether this fixed the problem.

    Greetings,

    Svetlina
    the Telerik team

     


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Alex
    Alex avatar
    31 posts
    Member since:
    Jun 2009

    Posted 07 Jan 2010 Link to this post

    Thank you for your response! Unfortunately your solution did work, when I turn off Ajax it does keep the tool tip active. Unfortunately the other controls that act on the grid (context menu, window manager) refresh the whole page. I will try changing the grid to be enveloped in an Update panel to see if that solves that issue, thank you!
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 07 Jan 2010 Link to this post

    Hi Alex,

    I am glad that my assumptions and comments were helpful. I suggest to test whether wrapping the grid and the tooltip manager in the same update panel and update it through the other controls will do the trick.

    In case you need further assistance, do not hesitate to contact us again.

    Kind regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top