Cancellation Of The Change Expanded

3 posts, 1 answers
  1. Alexandr
    Alexandr avatar
    2 posts
    Member since:
    May 2014

    Posted 16 Jul 2014 Link to this post

    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. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Jul 2014 Link to this post

    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.
     
  3. Alexandr
    Alexandr avatar
    2 posts
    Member since:
    May 2014

    Posted 17 Jul 2014 Link to this post

    Thanks, Didie.
    It work.
Back to Top