This is a migrated thread and some comments may be shown as answers.
Cancellation Of The Change Expanded
2 Answers 3 Views
This is a migrated thread and some comments may be shown as answers.
Alexandr
Top achievements
Rank 1
Alexandr asked on 16 Jul 2014, 10:19 AM
Good day.
I need to catch changes Expanded and under certain conditions, to cancel this action.
I tried to implement this by using event GroupRowIsExpandedChanging, but property args.Row.IsExpanded has changed.
Help me, please :(

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 17 Jul 2014, 11:47 AM
Hello,

You can still use this event to cancel the expanded case. Just keep in mind the value of the e.Row.IsExpanded is the value after the user's action, not before it.

For example:
private void clubsGrid_GroupRowIsExpandedChanging(object sender, Telerik.Windows.Controls.GridView.GroupRowCancelEventArgs e)
{
    if (DoNotExpandFlag)
    {
        if (e.Row.IsExpanded)
        {
            e.Cancel = true;
        }
    }
}

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Alexandr
Top achievements
Rank 1
answered on 17 Jul 2014, 02:36 PM
Thanks, Didie.
It work.
Asked by
Alexandr
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Alexandr
Top achievements
Rank 1
Share this question
or