Record Preview Rows in SfDataGrid

Hi, 

how would it be possible to implement Record Preview Rows like in GridGroupingControl in SfDataGrid?
Is the Master-Details View recommended way to achieve it?

Thanks!

4 Replies

AA Arulraj A Syncfusion Team August 30, 2018 12:09 PM UTC

Hi Tipal, 

Thanks for contacting Syncfusion support. 

Currently we don’t have support for the record preview row in SfDataGrid. Master-Details View is not a recommended way to achieve this. We have logged your requirement “Provide support for Record Preview Rows” as a feature request in our database. This feature will be implemented in any of our upcoming volume releases. We will let you know once the feature is implemented. 

Regards, 
Arulraj A 



T T August 31, 2018 08:10 AM UTC

Hi,

it turns out we need the ability to add child records. Therefore we use Master-Details View and record preview is not needed.

But there are some issues with programmic expandng of Details. We would like to expand 3 topmost Details for user reference.
I have modified the DetailsView demo to illustrate the issues: 
1) we need to call Application.DoEvents(); 
2) Every expansion incurs a noticeable delay, because grid is invalidated. Gif.
Perhaps there could be a new method ExpandDetailsViewInRange(from, to)?


        public Form1()
        {
            InitializeComponent();
            SampleCustomization();
            this.WindowState = FormWindowState.Maximized;
            this.Shown += Form1_Shown;
        }

        private void Form1_Shown(object sender, EventArgs e)
        {
            Application.DoEvents();
            this.sfDataGrid1.ExpandDetailsViewAt(0);
            Application.DoEvents();
            this.sfDataGrid1.ExpandDetailsViewAt(1);
            Application.DoEvents();
            this.sfDataGrid1.ExpandDetailsViewAt(2);
            Application.DoEvents();
            this.sfDataGrid1.ExpandDetailsViewAt(3);
            Application.DoEvents();
        }


AA Arulraj A Syncfusion Team August 31, 2018 12:03 PM UTC

Hi Tipal, 

Thanks for your update. 

By default, a delay will occur due to the invalidation of the DataGrid when expanding the DetailsViews separately. We are sorry to let you know that SfDataGrid doesn’t have any methods like ExpandDetailsViewInRange(from, to) and currently we don’t have any plan to implement any methods like this. Please let us know if you have any other queries. 

Arulraj A 



JP Jagadeesan Pichaimuthu Syncfusion Team March 14, 2019 10:40 AM UTC

Hi Tipal,  

We are glad to announce that our 2019 Volume 1 Beta Release v17.1.0.32 is rolled out and is available for download under the following link. 

The feature “Preview row support in SfDataGrid control” has been included in this release. The main release 2019 Volume 1 is planned to roll out at the end of March 2019. Please find the sample from below, 

 

Thanks for your patience and kindly let us know if you have any concerns.  

Regards, 
Jagadeesan

Loader.
Up arrow icon