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

[Solved] Problem with footer tooltip

1 Answer 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 06 May 2009, 08:31 AM
Hello,

I have got a grid. To create its footer I use a PagerTemplate. This is the code of my grid:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"
 
        <script type="text/javascript"
            var tableView = null
            function pageLoad(sender, args) { 
                tableView = $find("<%= grdMaestro.ClientID %>").get_masterTableView(); 
            } 
 
            function RadComboBox1_SelectedIndexChanged(sender, args) { 
                tableView.set_pageSize(sender.get_value()); 
            } 
 
            function changePage(argument) { 
                tableView.page(argument); 
            } 
 
            function RadNumericTextBox1_ValueChanged(sender, args) { 
                tableView.page(sender.get_value()); 
            } 
            function PaginaDetalles(sender, eventArgs) { 
                window.location = "fweDetalle.aspx"
            } 
        </script> 
         
    </telerik:RadScriptBlock> 
<asp:XmlDataSource ID="dsDatosMaestro" runat="server" DataFile="~/_Xml/DatosMaestro.xml"></asp:XmlDataSource> 
        <telerik:RadGrid ID="grdMaestro" runat="server" DataSourceID="dsDatosMaestro" AutoGenerateColumns="false"  
            AllowPaging="True" EnableEmbeddedSkins="False"  Skin="OT" GridLines="Vertical" AllowMultiRowSelection="true" 
            ><%-- OnItemDataBound="grdMaestro_ItemDataBound" --%>     
            <PagerStyle Mode="NextPrev" PageButtonCount="5" PagerTextFormat="{4} &nbsp; Nº Registros: <strong>{5}</strong>"  
            FirstPageToolTip="Primera página" PrevPageToolTip="Página anterior" NextPageToolTip="Siguiente página" LastPageToolTip="Última página" /> 
            <MasterTableView CellSpacing="-1"
                <Columns> 
                    <telerik:GridClientSelectColumn UniqueName="SelectColumn"
                        <HeaderStyle width="25px" /> 
                        <ItemStyle HorizontalAlign="Center"  /> 
                    </telerik:GridClientSelectColumn> 
                    <telerik:GridBoundColumn DataField="Código" HeaderText="Código" SortExpression="Código" UniqueName="Código"
                        <ItemStyle HorizontalAlign="Right" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Nombre" HeaderText="Nombre" SortExpression="Nombre" UniqueName="Nombre"
                        <ItemStyle HorizontalAlign="Left" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha" UniqueName="Fecha"
                        <ItemStyle HorizontalAlign="Center" /> 
                    </telerik:GridBoundColumn> 
                </Columns> 
                <PagerTemplate> 
                    <span style="margin-top: 8px; margin-right: 5px; float: right;"
                        <asp:Label ID="lblRegistro" runat="server" Text="Nº Registros: "></asp:Label>  
                        <%# DataBinder.Eval(Container, "Paging.DataSourceCount")%> 
                    </span> 
                    <style="margin: 0px;margin-top:3px; padding: 0px;float:left;margin-right:10px"
                        <asp:Button ID="btn1" runat="server" OnClientClick="changePage('first'); return false;" 
                            CommandName="Page" CommandArgument="Primero" CssClass="PagerButton FirstPage" /> 
                        <asp:Button ID="btn2" runat="server" OnClientClick="changePage('prev'); return false;" 
                            CommandName="Page" CommandArgument="Previo" CssClass="PagerButton PrevPage" /> 
                        <span style="vertical-align: middle;"
                            <asp:Label ID="lblPagina" runat="server" Text="Página:" /> 
                        </span> 
                        <telerik:RadNumericTextBox ID="RadNumericTextBox1" Skin="Office2007" Width="25px" 
                            Value='<%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>' 
                            runat="server"
                            <ClientEvents OnValueChanged="RadNumericTextBox1_ValueChanged" /> 
                            <NumberFormat DecimalDigits="0" /> 
                        </telerik:RadNumericTextBox> 
                        <span style="vertical-align: middle;"
                        <asp:Label ID="Label1" runat="server" Text="de"></asp:Label> 
                        <%# DataBinder.Eval(Container, "Paging.PageCount")%> 
                        </span> 
                        <asp:Button ID="btn3" runat="server" OnClientClick="changePage('next'); return false;" 
                            CommandName="Page" CommandArgument="Siguiente" CssClass="PagerButton NextPage" /> 
                        <asp:Button ID="btn4" runat="server" OnClientClick="changePage('last'); return false;" 
                            CommandName="Page" CommandArgument="Ultimo" CssClass="PagerButton LastPage" /> 
                        <asp:Panel runat="server" ID="NumericPagerPlaceHolder" > </asp:Panel> 
                     </p>  
                </PagerTemplate> 
            </MasterTableView> 
            <ClientSettings EnableRowHoverStyle="true"
                <Selecting AllowRowSelect="True" /> 
                <ClientMessages /> 
                <ClientEvents OnRowDblClick="PaginaDetalles" /> 
            </ClientSettings>    
        </telerik:RadGrid>  

I don´t know if you have noticed but pagertemplate is taken from your online demos jeje.

My problem is that tooltips are not shown.

do you know why?

thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 May 2009, 09:56 AM
Hi Patxi,

You have set the tooltip for the Pager items in the PagerStyle which will apply only for the inbuilt pager modes. You may try setting the tooltip individually for controls in the template or else you can access the controls from the PagerItem in code behind and then assign tooltip.
Pager Template

Princy
Tags
Grid
Asked by
Patxi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or