Home Forums WPF controls Xceed DataGrid for WPF Expanded/Collapsed event

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26320 |

    Is it possible to somehow detect Expand/Collapse event for master/detail grid? I found just methods for collapsing/expanding, like CollapseDetails(), but not event.

    PS. For me it seems that there is a bug, because after calling CollapseDetails() all expanded rows with “-” sign on left, remains with it, and after next expanding it change to “+”.

    Imported from legacy forums. Posted by Alexander (had 2916 views)

    Xceed Support
    Member
    Post count: 5658

    I was unable to reproduce the behavior you are reporting. Would it be possible for you to send an email to support with a small repro application?

    Imported from legacy forums. Posted by Jenny [Xceed] (had 233 views)

    User (Old forums)
    Member
    Post count: 23064

    Jenny,

    I just copied this from one of yours code samples and set for button click handler:

    DataGridContext rootContext = DataGridControl.GetDataGridContext(grid);

    List<DataGridContext> childContexts = new List<DataGridContext>(grid.GetChildContexts());

    foreach (DataGridContext context in childContexts)
    {
    context.ParentDataGridContext.CollapseDetails(context.ParentItem);
    }

    and after clicking the button, all expanded rows collapsed, but remained with “-” button on left.

    Imported from legacy forums. Posted by Alexander (had 322 views)

    User (Old forums)
    Member
    Post count: 23064

    And, talking about my first question, as far as I understand there is no solution…
    I looked thru all classes and hadn’t found anything appropriate. It’s really disappointing for me…

    Imported from legacy forums. Posted by Alexander (had 3986 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.