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

Disabling grouping while GroupPanel is visible

3 Answers 266 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ux
Top achievements
Rank 1
ux asked on 24 Apr 2018, 12:48 PM

I dont want users do grouping in my RadGridView, but I want the GroupPanel visible (ShowGroupPanel = true), because I will use that horizontal bar as a grid-integrated toolbar, and place some custom functionality buttons there. (like export excel, refresh grid etc.)

 

How can I achieve that? Thanks.

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 27 Apr 2018, 07:49 AM
Hi,

Since you need to keep the group panel visible, you can disable the grouping operation by setting the IsGroupable property of the needed columns to False. This topic is discussed in the Disable Grouping section of the Basic Grouping article. Can you please check it out?

I hope this helps.

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
ux
Top achievements
Rank 1
answered on 27 Apr 2018, 09:55 AM

Hi stefan, thanks for the reply. I have two questions now,

1. Is there a way to hide the info text on the grouping panel. (That says, you can drop columns here to group)

 

2. Is there a way to disable dragging column header, i dont want the user to have a feeling that column are indeed groupable, but disabled on purpose.

0
Stefan
Telerik team
answered on 30 Apr 2018, 12:13 PM
Hello,

I will go straight to your questions.

1. This can be achieved by Localizing the control. You can simply set an empty string for the GridViewGroupPanelText resource key.

2. You can set the CanUserReorderColumns property. Thus, when the user starts dragging, the column will appear as a drop operation cannot be achieved.

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
ux
Top achievements
Rank 1
Answers by
Stefan
Telerik team
ux
Top achievements
Rank 1
Share this question
or