This is a migrated thread and some comments may be shown as answers.

Programmatically Call RadGrid Events Server Side

1 Answer 370 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Station
Top achievements
Rank 1
Station asked on 24 Oct 2019, 08:50 AM

I want to call Radgrid Events manually Server side. 

 

SaveButton.ascx

protected void SaveFormButton_Click(object sender, EventArgs e)
{

}

 

GridBatchEdit.ascx

protected void GridListBatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
{

}

 

SaveButton.ascx and GridBatchEdit.ascx are in one page and need to trigger GridListBatchEditCommand when SaveForm button is clicked in Server Side not Client Side.

 

Is there such a way to do this scenario ?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 29 Oct 2019, 08:39 AM

Hi there,

Batch Edit is a client-side functionality of RadGrid that only works with client-side APIs (e.g. JavaScript code). Check out how in the Batch Editing Client-side API documentation.

Batch Editing functionality only fires server events when re-binding the Grid, refreshing the grid, canceling or saving the changes.

To answer your question, yes it is possible to fire commands with the Grid.

 

However, you will need to keep in mind, that Batch Editing functionality can only be manipulated on the client.

Please let us know if you have any question.

Kind regards,
Attila Antal
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Station
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or