Silverlight의 Telerik Radgridview가있는 기본 정렬 열로 열을 설정하려면 어떻게합니까?
-
14-11-2019 - |
문제
Silverlight 프로젝트에서 RadGridView 컨트롤이 있고 그리드가 이름 열로 정렬되도록하고 싶습니다.이름에 대한 열 정의에 속성 SortingState="Ascending"을 배치했습니다.나는 이것을 달성 할 수있는 다른 속성을 보지 못한다.누구 든지이 일을하는 방법을 알고 있습니까?
해결책
You will want to add a SortDescriptor to the grid
<telerik:RadGridView.SortDescriptors>
<telerik:SortDescriptor Member="Name" SortDirection="Ascending" />
</telerik:RadGridView.SortDescriptors>
다른 팁
Also, what about the 'ColumnSortDescriptor'?
http://demos.telerik.com/silverlight/#GridView/Sorting
There are examples and code there.
제휴하지 않습니다 StackOverflow