Hi,
How can I get the current sortcolumn and sortorder in the event NeedDataSource?
[code]protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
skip = RadGrid1.CurrentPageIndex * RadGrid1.PageSize;
take = RadGrid1.PageSize;
string sortColumn = "";
bool sortOrder = true; //false
RadGrid1.DataSource = GetData(sortColumn, sortOrder, skip, take);
}[/code]
Thanks,
Mattias
How can I get the current sortcolumn and sortorder in the event NeedDataSource?
[code]protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
skip = RadGrid1.CurrentPageIndex * RadGrid1.PageSize;
take = RadGrid1.PageSize;
string sortColumn = "";
bool sortOrder = true; //false
RadGrid1.DataSource = GetData(sortColumn, sortOrder, skip, take);
}[/code]
Thanks,
Mattias