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

bad mouse behavior on columns with template filters

2 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sean
Top achievements
Rank 1
sean asked on 03 Dec 2010, 02:48 AM


     Columns with filter templates don't allow for sorting.  In the example below, when hovering over "Contact Name" and "Contact Title", the mouse-pointer turns into a "finger", and the column can be sorted by clicking.

     That doesn't happen for the City and Country columns.  Is there an easy remedy for this?  I have a similar grid, with several columns that have comboBox filters.  The columns with comboBox filters don't allow for sorting by clicking on the column headers, just like in the Demo example below.
see this example:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 Dec 2010, 10:03 AM
Hi Sean,

To enable sorting for GridTemplateColumn, you need to set appropriate SortExpression values for those columns. This value should match the data field you want to sort on (typically the field a control in the template is bound to). Please refer to the following help article for additional information:
http://www.telerik.com/help/aspnet-ajax/grdsortingforhyperlinktemplatecolumns.html

All the best,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
sean
Top achievements
Rank 1
answered on 03 Dec 2010, 04:00 PM

Thanks, that worked great!

I found similar info here, also:

http://www.telerik.com/community/forums/aspnet/grid/sorting-filtering-the-item-template-coloumn.aspx
Tags
Grid
Asked by
sean
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
sean
Top achievements
Rank 1
Share this question
or