Silverlight의 Telerik Radgridview가있는 기본 정렬 열로 열을 설정하려면 어떻게합니까?

StackOverflow https://stackoverflow.com/questions/5022622

문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top