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

Problem in Show/Hide Ungroup Button

3 Answers 189 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajneesh
Top achievements
Rank 2
Rajneesh asked on 19 Aug 2011, 07:46 AM
HI,
I have fixed first column as default Group Item in GroupByExpressions and user can sort data but can not delete this group but problem is i want to disable close image from this header only. Rest columns if user will group then he can delete those columns from group header.
FYK " I have tried 
If (expression.GroupByFields(0).FieldName = "EngNameWithID") Then
     radGrdEngagments.GroupingSettings.ShowUnGroupButton = False
Else
     radGrdEngagments.GroupingSettings.ShowUnGroupButton = True
End If

But it's shows/removes close button for all items of group panel.
For more information see the image in Attachment.

Thanks.........

3 Answers, 1 is accepted

Sort by
0
Rajneesh
Top achievements
Rank 2
answered on 23 Aug 2011, 07:20 AM
Hi........
Waiting for response.......
0
Accepted
Tsvetina
Telerik team
answered on 23 Aug 2011, 09:37 AM
Hi Rajneesh,

You can find a possible solution for this requirement in this forum post:
Prevent ungrouping

Your code would not work because the ShowUngroupButton is a global setting for the whole RadGrid and no matter on what condition you apply it, it does apply for the whole control.

Regards,
Tsvetina
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Rajneesh
Top achievements
Rank 2
answered on 23 Aug 2011, 10:51 AM

Hi Tsvetina,

Tested it and its working great!

Thank you! 


Tags
Grid
Asked by
Rajneesh
Top achievements
Rank 2
Answers by
Rajneesh
Top achievements
Rank 2
Tsvetina
Telerik team
Share this question
or