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
1070
Sorting is not working in ultrawebgrid
posted

Sorting is not working after grouping. If i donot use groupby column sorting works fine.

i have set   AllowSortingDefault="Yes" in design page

 

In Code file

  'Grouping Code

       DgridQty.DisplayLayout.ExpandableDefault = Infragistics.WebUI.UltraWebGrid.Expandable.Yes
        DgridQty.DisplayLayout.ViewType = Infragistics.WebUI.UltraWebGrid.ViewType.OutlookGroupBy
        DgridQty.DisplayLayout.Bands(0).Columns(1).IsGroupByColumn = True


'Sorting Code


        DgridQty.Columns(5).SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Ascending
        DgridQty.Bands(0).SortedColumns.Add(DgridQty.Columns(5))

  • 8160
    posted

    Hello Dayana,

    could you try to use Add(UltraGridColumn,Boolean) Method. The true paramter should force the grid to be sorted in pre-render.

     DgridQty.Columns(5).SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Ascending
    DgridQty.Bands(0).SortedColumns.Add(DgridQty.Columns(5), True)

    Let  me know if this helps

    Thank you