xaml - DataGridTemplateColumn Sorting capabilities Telerik RadDataGrid Windows 8 -


normally sorting capabilty ( little triangle in column header + functionality on header click ) comes out of box if using "typed" column, setting propertyname property model. example work datagridtextboxcolumn. but, if have use custom columns enter datagridtemplatecolumn not have propertyname property. question: how can achieve "easy" sorting on such column. should easy setting "sortingmemberpath" , that's it.

do need subclass "typed" column , create own datagridcombboxcolumn, example ?

you can achieve desired functionality implementing columnheadertapcommand , adding / removing necessary sortdescriptors manually. more information datagrid commands can found here. glyph in column header can shown through column.sortdirection property. also, suggested approach suitable , in future intend extend current logic allow sortdescriptors use mapping in templated columns.

best regards, ivaylo


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -