Complex-Property Binding Questions

Questions:
1) How can I expand the children sections (under Get, Push) by default after data is bound?
Is there an event that fires after data is bound?

2) How do I set the default row heights for the children sub-grids?
I tried to use this but it doesn't apply to the children sub-grids:
this.dataGrid.Model.RowHeights.DefaultLineSize = 20d;
this.dataGrid.Model.RowHeights[0] = 25d;

3) How can I hide/remove the first empty row that's displayed at all times for sub-grids?

4) How can I customize the GridDataSummaryRow to show the total number of actual SynchronizationItem rows?
In this example, it always shows 2 because I bound 2 SynchronizationCategories, I would like to display 5 and I would like to differentiate between IsSelected SynchronizationItems.
Basically, if you can provide me an example on how to completely customize the SummaryRow, that would be great!




SyncfusionHierchicalGridTest_c5dd6806.zip

1 Reply

GK Ganesan K Syncfusion Team June 18, 2010 03:53 AM UTC

Hi Andre,

Thanks for using Syncfusion products.

Regarding #1,

You can use the IsGroupsExpanded property to achieve this,

x:Name="dataGrid"
IsGroupsExpanded="True"

Regarding #2,

You can use the RecordExpanded event to acheive this,

this.dataGrid.Model.Table.RecordExpanded += new EventHandler>(Table_RecordExpanded);

void Table_RecordExpanded(object sender, GridDataValueEventArgs e)
{
e.Value.ChildModels[0].RowHeights[0] = 20;
}

Regarding #3,

You can use the ShowAddNewRow property in child GridDataTableProperties,

}
}

Also, you have access to the Group / SummaryRow etc., through the "tableStyleIdentity" instance. Please check it out.

Please let us know if you need any more details.

Thanks
Ganesan

Loader.
Up arrow icon