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

SortCommand doesn't fire

2 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Libertad
Top achievements
Rank 1
Libertad asked on 15 Dec 2009, 09:06 AM
I have added some columns dynamically to a statically declared Grid with enable sorting set true.
When I click a column title for sorting the grid columns are dissapeared on postback, and also the SortCommand doesn't being fired.
What's the problem?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Dec 2009, 09:44 AM
Hi,

How do you bind the Grid? advanced features such as sorting, RadGrid must be bound using declarative data sources or through the NeedDataSource event rather than using Simple data-Binding (calling DataBind()). You can also refer to the following online demo to get more details about AdvanceDataBinding techniques.
Advanced data-binding

Hope this helps..
Princy.
0
Libertad
Top achievements
Rank 1
answered on 15 Dec 2009, 12:40 PM
I do databinding through a DataTable
Tags
Grid
Asked by
Libertad
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Libertad
Top achievements
Rank 1
Share this question
or