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

GridGroupingControl EditRow and Refresh server events

Are there any server events that are triggered with or Edit?

On Edit, I need to prep the custom objects in my .

On Refresh, I want to remove all filters in the FilterBar (reset all of them to "all").

Thanks in advance.
Jason

7 Replies

GB Gokul B Syncfusion Team December 11, 2006 06:21 PM UTC

Hi Jason,

For your notification, GridGroup doesn't have the event which will taken with grid Edit. Instead you can use SourceListRecordChanging event which will occurs when a record in the underlying datasource is being added or changed( Editing in this scenario). Regarding your second query, please have a look at the below code snippet.

//Resets the ExpressionFields collection back to its default state
this.GridGroupingControl1.TableDescriptor.ResetGridRecordFilters();

To acheive the behavior as you excepted please call the above code on page refresh.

Let us know if this helps.

Thanks for using Syncfusion products.

regards,
B.Gokulkumar






AD Administrator Syncfusion Team December 11, 2006 08:49 PM UTC

B.,
Thanks for the quick reply.

I added your code in the following way:




...

protected void GridGroupingControl1_BarButtonItemClicked(object source, Syncfusion.Web.UI.WebControls.Grid.Grouping.ButtonBarItemClickEventArgs e)
{
if (e.ButtonBarItem.Text == "Reset")
{
GridGroupingControl1.TableDescriptor.ResetGridRecordFilters();
}
}


It takes two clicks to take effect and it doesn't reset the values in the FilterBar's
Loader.
Live Chat Icon For mobile
Up arrow icon