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. Image for the cookie policy date
close icon

How to refresh child table created by relation descriptor

Hi,

I have a nested child table created by relation. I want to refresh the grid when some action occures in other dialog box. i.e datasource change. I am refreshing the grid using grid.refresh() method. Grid get the changes reflected properly but child table shows the old record. Child table does not get refreshed.
Please tell me how to refresh the child table explicitly. I tried
GridControl.TableDescriptor.Relations.ShouldPopulate = true; but it didnt work.
Please give me some pointer

Thanks
Harshad

5 Replies

HA haneefm Syncfusion Team April 4, 2007 07:16 PM UTC

Hi Harshad,

You can try this.

GridTable table = this.grid.GetTable("ChildTableName");
table.TableDirty = true;
table.SummaryDirty = true;
table.TableModel.Refresh();

Best regards,
Haneef


HA Harshad April 5, 2007 05:55 PM UTC

Hi,

I tried to set the tabledirty=true and table.TableModel.Refresh();
but after executing this child table not get refresh properly. relation gets break and child rows are get deleted and not displayed in the grid.
I want to repopulate the child table with the relation on certain event.
Please let me know where i am doing wrong


HA haneefm Syncfusion Team April 5, 2007 06:13 PM UTC

Hi Harshad,

Please try to provide us some more information on this issue. I tried to reproduce the issue, but couldn't. kindly provide us a small sample to reproduce the issue or modify any of our browser sample accordingly. This will help us to analyse the issue further.

Best regards,
Haneef


DG Daniel Gonzalez replied to haneefm September 22, 2016 04:16 PM UTC

Hi Harshad,

You can try this.

GridTable table = this.grid.GetTable("ChildTableName");
table.TableDirty = true;
table.SummaryDirty = true;
table.TableModel.Refresh();

Best regards,
Haneef

hi haneefm, 
This way works perfect, thanks you very much 

Danny



AR Amal Raj U Syncfusion Team September 23, 2016 03:57 AM UTC

Hi Danny, 

We are glad to know that the provided solution resolved your query. Please let us know, if you have any other concerns. 

Regards, 
Amal Raj U. 


Loader.
Live Chat Icon For mobile
Up arrow icon