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

sort arrows are not appearing when GridSortExpression is used

2 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aykut
Top achievements
Rank 1
Aykut asked on 24 Jul 2010, 12:02 AM
Hi,
I have a radgrid on a usercontrol which is created at runtime.
I am adding a sort expression with the code below. I am not using the sort event.
Everything works fine like sorting and highlighting of the column except I don't see the related sort arrow in the column header.
How can I make the sort direction arrows appear?
I ve attached an image also.
Thanks for your help.

          CreateGridColumns();
          RadGrid1.VirtualItemCount = dv.Count;

            GridSortExpression expression = new GridSortExpression();
            expression.FieldName = SortColumn;
            if (SortOrder == "ASC")
                expression.SortOrder = GridSortOrder.Ascending;
            else
                expression.SortOrder = GridSortOrder.Descending;

            RadGrid1.MasterTableView.SortExpressions.Clear();
            RadGrid1.MasterTableView.SortExpressions.AddSortExpression(expression);

        RadGrid1.DataSource = dv;
        RadGrdi1.DataBind();

2 Answers, 1 is accepted

Sort by
0
Aykut
Top achievements
Rank 1
answered on 27 Jul 2010, 06:12 PM
no possible solution?
0
Aykut
Top achievements
Rank 1
answered on 28 Jul 2010, 04:54 PM
found the solution here
http://www.telerik.com/community/forums/aspnet-ajax/grid/gridboundcolumn-unexpected-layout.aspx
Tags
Grid
Asked by
Aykut
Top achievements
Rank 1
Answers by
Aykut
Top achievements
Rank 1
Share this question
or