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
Post a Comment