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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -