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

[Solved] how to disable functions for header

2 Answers 87 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.
Yiqing
Top achievements
Rank 1
Yiqing asked on 25 Jul 2013, 08:33 PM
Hi 
 
I want to use RadDataGrid as a table to display some dynamic data by data binding, but I don't want the use to access filtering, sorting, grouping etc. for the header. I wonder how can I disable all of them?


Thanks,
Yiqing

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 26 Jul 2013, 11:13 AM
Hi Yiqing,

Thank you for your question.

If you wish to disable the functionalities you listed for a single column, you could use the column properties:

  • CanUserEdit
  • CanUserFilter
  • CanUserGroup
  • CanUserReorder
  • CanUserSort

If you wish to disable them for the whole grid, then you can use the RadDataGrid properties:

  • UserEditMode
  • UserFilterMode
  • UserGroupMode
  • UserSortMode
  • UserColumnReorderMode

I hope this was useful and let me know if I can assist you in some other way.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Yiqing
Top achievements
Rank 1
answered on 26 Jul 2013, 09:21 PM
Hi Rositsa ,

That's truly useful! Thanks so much! I strongly suggest Telerik write these guide in the online document!

Thanks,
Yiqing
Tags
Grid for XAML
Asked by
Yiqing
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Yiqing
Top achievements
Rank 1
Share this question
or