Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Question about pager.pattern property.
posted

How would I write the total number of rows into the text for pattern, cause i looked at the default tokens and 'total number of rows returned' doesnt seem to be supported. 

 I thought this would work but doesnt look like it:

Designer Page: 

pattern="test this: <%= strRow %>"

Code Behind:

public string strRow = "4";

 

J

 

Parents
No Data
Reply
  • 120
    posted

    \bump.

    No one have any idea on how to include the total number or rows returned from a DataSet into the Pattern Porperty in the UltraWebGrid control?

    Here is my designer code:

    <Pager MinimumPagesForDisplay="2" Alignment="Center" AllowPaging="True" NextText="Next" PageSize="6" PrevText="Prev" StyleMode=QuickPages QuickPages=2 Pattern="<table width='100%'><tr><td width='20%' align='left'>Number of Rows Returned: <%= strTotalRows %></td><td align='center'>[page:first:First]&nbsp;&nbsp;&nbsp;&nbsp;[prev]&nbsp;&nbsp;&nbsp;&nbsp;[next]&nbsp;&nbsp;&nbsp;&nbsp;[page:last:Last]</td><td align='right' width='20%'>Page [currentpageindex] of [pagecount]</td></tr></table>" >

    <Style BorderWidth="1px" BorderStyle="Solid" BackColor="#DCDADA" Font-Size="8pt">

    </Style>

    </Pager>

    Here is my code behind:

    public string strTotalRows = "4";

    protected void uwg_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)

    {

    strTotalRows = "55";

    }

    Neither 4 nor 55 show up in my pattern property when the page gets rendered.  Anyone have any ideas?

    J

Children