We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Close detailsView when exiting cell editing

Thread ID:

Created:

Updated:

Platform:

Replies:

121853 Feb 1,2016 07:59 AM Feb 4,2016 01:10 AM WinRT 3
loading
Tags: SfDataGrid
Aurélien
Asked On February 1, 2016 07:59 AM

Hello,

How to close all DetailsView, in SfDataGrid, automatically when exiting cell editing, in the master grid, with Enter key?

I have tried to use myDataGrid.CollapseAllDetailsView(); in CurrentCellEndEdit event, but it doesn’t work. 

The cell selection takes the first cell of my DetailsView grid instead of the following cell.

Other try: CurrentCellActivating event isn’t thrown when I use Enter key but works correctly when I change selection by mouse click when detailsview is expanded.


Regards,

Aurélien


Attachment: Document_6408b767.zip

Sowndaiyan Paulpandi [Syncfusion]
Replied On February 2, 2016 08:03 AM

Hi Aurelien,

Thanks for contacting Syncfusion Support.

You can achieve your requirement within the SfDataGrid.SelectionChanged Event based upon the RowIndex. We have prepare a sample as per your requirement and you can download the same from the below location,

Sample : http://www.syncfusion.com/downloads/support/forum/121853/ze/8.1-1066880894



Regards,

Sowndaiyan


Aurélien
Replied On February 3, 2016 04:33 AM

Hello,

Thanks for you sample. That works well.
But I would like the following cell be in editing mode automatically.
This works when the details view is collapsed but doesnt work when it is open and collapsed automatically by the event.
You can see my test on the following sample in attachment.

Regards,
Aurélien

Attachment: 8.1_2be08da3.zip

Sowndaiyan Paulpandi [Syncfusion]
Replied On February 4, 2016 01:10 AM

Hi Aurelien,

You can achieve your requirement by invoking the SfDataGrid.SelectionController.CurrentCellManager.BeginEdit() method before Collapse the DetailsViewGrid. We have modified the sample as per your requirement and you can download the sample from the below location,

Sample :
http://www.syncfusion.com/downloads/support/forum/121853/ze/WinRT_Sample-1262509974

Regards,

Sowndaiyan


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;