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

Sorting,Filtering for unbound columns

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 28 Oct 2010, 05:22 AM
Hello guys. I've got unbound column, which is populated at grid_ItemDataBound handler
<telerik:GridBoundColumn UniqueName="ActivityCategories" HeaderText="Activity"/>
 
 
protected void grid_ItemDataBound(object sender, GridItemEventArgs e)
{
            if (e.Item is GridDataItem)
            {
                var item = (GridDataItem)e.Item;
                var templ = (SalesTemplate)item.DataItem;
                string activities = templ.ActivityCategories.Aggregate(String.Empty, (current, activity) => current + String.Format("{0},", activity.Name));
                item["ActivityCategories"].Text = activities.TrimEnd(',');
            }
 }


I would like add filtering,sorting functionality to this column. Standard SortExpression and filter doesn't help. What should I do?


Thanks, Andrew

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Oct 2010, 11:41 AM
Hello Andrew,

Currently enabling filtering and sorting functionality for the unbound columns in the RadGrid is not possible. As those columns do not contain data items the mentioned functionalities will not be applicable. 

All the best,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 01 Nov 2010, 04:12 AM
Hello, Maria

Is there any workaround over this?
0
Maria Ilieva
Telerik team
answered on 03 Nov 2010, 12:19 PM
Hello Andrew,

The best you can do is to manually "sort" the values and your databound column values and by using the header click for the unbound columns.

Greetings,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or