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
210
Paging in a webcombo
posted

I'm trying to turn on custom paging in the grid for the webcombo box.  I'd like it to be similar to the Alphabet paging in the grid sample.

 In the InitializeLayout event I set the following properties like I would in a grid.

webcombo.DropDownLayout.Pager.AllowPaging = true;

webcombo.DropDownLayout.Pager.StyleMode = PagerStyleMode.CustomLabels;

webcombo.DropDownLayout.Pager.CustomLabels = ALPHABET;

webcombo.DropDownLayout.Pager.PageCount = 27;

 

The grid is being bound to an objectdatasource which is tied to a DataTable from my business objects and while it is filtered by the letter "A" when it first comes in, there is no paging control visible.

Parents
No Data
Reply
  • 210
    posted

    I missed some documentation required XMLHTTP to be turned on so this code is working.

     

    webcombo.DropDownLayout.Pager.AllowCustomPaging = true;

    webcombo.DropDownLayout.Pager.AllowPaging = true;

    webcombo.DropDownLayout.Pager.PagerAppearance = PagerAppearance.Bottom;

    webcombo.DropDownLayout.Pager.StyleMode = PagerStyleMode.CustomLabels;

    webcombo.DropDownLayout.Pager.CustomLabels = ALPHABET;

    iddlOperator.DropDownLayout.Pager.PageCount = 26;

     

    My problem now is I am limited to 50 rows and setting webcombo.DropDownLayout.Pager.PageSize = 0 does not give unlimited rows as it does with the regular grid.

     

    EDIT: Turned out I wanted

    iddlOperator.DropDownLayout.RowsRange = 0;

Children
No Data