Hi there,
Is there any specific event that gets fired when the number of displayed records is changing in GridGroupingControl?
I guess the number of displayed records can change if:
a. the binding data source changes (being added, deleted or reset)
or
b. the grid changes its row filter
I tried SourceListListChanged, but this only work for (a) and not (b).
SourceListListChanged and SourceListListChanged don't work at all.
Any ideas? thanks :)
JJ
Jisha Joy
Syncfusion Team
October 7, 2008 12:26 PM UTC
Hi,
Please try to handle TableSourceListChanged event of GridGroupingControl.
Please refer the code:
this.gridGroupingControl1.TableSourceListChanged += new Syncfusion.Grouping.TableEventHandler(gridGroupingControl1_TableSourceListChanged);
void gridGroupingControl1_TableSourceListChanged(object sender, Syncfusion.Grouping.TableEventArgs e)
{
Console.WriteLine("Fired");
}
Please try this and let me know if this helps.
Regards,
Jisha
AD
Administrator
Syncfusion Team
October 8, 2008 06:18 AM UTC
Hi Jisha,
Tried hooking up to the TableSourceListChanged, but it only gets fired once in the beginning.
It doesnt get called whenever the data source changes (like being reset).
JJ
Jisha Joy
Syncfusion Team
October 9, 2008 09:39 AM UTC
Hi,
Please try to handle SourceListListChanged event, that will fire when record is added or deleted in grid:
this.gridGroupingControl1.SourceListListChanged += new TableListChangedEventHandler(gridGroupingControl1_SourceListListChanged);
void gridGroupingControl1_SourceListListChanged(object sender, TableListChangedEventArgs e)
{
Console.WriteLine("Modified");
}
Regards,
Jisha
AD
Administrator
Syncfusion Team
October 10, 2008 09:04 AM UTC
Hi again Jisha :)
As I mentioned in first thread, I tried SourceListListChanged.
This works when the binding data source changes (being added, deleted or reset)
But NOT when the grid changes its row filter, as row filter changes might also change the displayed record count.
I don't mind using SourceListListChanged.
But do you know other event that gets fired when the grid changes its row filter?
Thanks :)
JJ
Jisha Joy
Syncfusion Team
October 16, 2008 09:06 AM UTC
Hi,
Sorry for the delay in getting back to this issue.
To catch a filter in the GridGroupingControl, you can try either of these events.
this.gridGroupingControl1.TableDescriptor.RecordFilters.Changing
this.gridGroupingControl1.TableDescriptor.RecordFilters.Changed
Regards,
Jis
AD
Administrator
Syncfusion Team
October 20, 2008 05:46 AM UTC
Thanks Jisha! Will give it a try :)
SK
Sameer Khan
February 6, 2009 02:17 PM UTC
The above events are fired when new filter criterias are being added. Not when the View Set changes.
Is there a way to determine if the number of elements in the set changed.
-S
>Thanks Jisha! Will give it a try :)