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

Nested child grid - formatting

Hi.

Is there some possibility to format cells in nested-child-grid (e.g. background) like in parent grid using QueryCellsInfo?

I know about using conditional formats, but I have a lot of records and conditional formats are in this case very slow.

Thanks.

Regards,
Juraj

1 Reply

SM Saravanan M Syncfusion Team February 11, 2014 11:21 AM UTC

Hi Juraj, 

Thanks for contacting Syncfusion support, 

We have analyzed your query. You can format the styles for nested grid using QueryCellInfo event. You can get child grid when record has been expanded. You can hook child grid QueryCellInfo event from RecordExpanded event. Please refer below code snippet. 

Code snippet[C#]:

void Child_RecordExpanded(object sender, GridDataValueEventArgs<GridDataRecord> e)

 {

  e.Value.ChildModels[0].QueryCellInfo += ChildGrid_QueryCellInfo;

 }

 

  

We have prepared a sample based on your requirement and you can download it from below attachment. 

Please let us know if this sample helps you, 

Regards,

Saravanan.M


Attachment: NestedWith_QueryCellinfo_a0a727ff.zip

Loader.
Live Chat Icon For mobile
Up arrow icon