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

[Solved] Sorting by custom column with textbox

1 Answer 101 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edek
Top achievements
Rank 1
Edek asked on 10 May 2013, 01:04 PM
Hi,

I have a question about ordering/sorting elements by column with textboc. Is it at least possible? 
I implemented DataGridTemplateColumn with TextBox in datatemplate. When I click on any column header elements are ordered but values in textbox for items aren't .

Have you any sample of ordering in cutom column?


1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 14 May 2013, 03:09 PM
Hi Edek,

Thank you for contacting us.

I have attached a sample project that shows how to apply sorting on a templated column. As you can see in the project, I have implemented the ColumnHeaderTap command, and when the column header tap event is raised, I add or remove sort descriptors. Please, have a look at the example and feel free to contact me if you have any questions.

For more reference you can check our new SDK Examples for RadDataGrid, where you can find examples for the most common scenarios.

Also, with our upcoming Q2 2013 official release, you will be able to apply sorting and grouping on a per template column basis by simply setting the SortDescriptor and/or GroupDescriptor properties.

I hope this helps. Let me know if I can assist you in some other way.

Greetings,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Edek
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or