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
125
Display Pager explicitly
posted

Hi,

I have a grid with Pager.MinimumPagesForDisplay=2

Initially, the grid has no record. So, the pager would not appear.

After that, I call invokeXmlHttpRequest from javascript to refresh the grid with records more than the Pager.PageSize value. The problem is that the Pager row (that shows the page number) doesn't appear after that.

Please advise and thanks in advance.

Parents
No Data
Reply
  • 49378
    Verified Answer
    posted

    Hi JerryPhoon,

    I have tested this scenario and as you describe the pager is not shown after the http request. This seems to be due to the design of the control.

    I would suggest that you set the MinimumPagesForDisplay property to 1. If needed you can style the paging element in order to not show the page number (which in case of no records will be one) using:

    igtbl_getElementById("UltraWebGrid1_pager").style.color = "LightGrey"

    Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:

    http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html

    Additional samples demonstrating the features of these grids can be found at:
    http://samples.infragistics.com/aspnet/

    Please let me know if this helps.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

Children