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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl EditRow and Refresh server events

Thread ID:

Created:

Updated:

Platform:

Replies:

53240 Dec 11,2006 11:26 AM Dec 12,2006 03:16 PM ASP.NET Web Forms (Classic) 7
loading
Tags: GridGroupingControl
Administrator [Syncfusion]
Asked On December 11, 2006 11:26 AM

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

Gokul B [Syncfusion]
Replied On December 11, 2006 01:21 PM

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





Administrator [Syncfusion]
Replied On December 11, 2006 03:49 PM

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

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;