Using my own Add/Edit/Delete button instead of Syncfusion provided Toolbar

Hi,

I am using Asp.Net MVC Grid of yours. I have requirement of using my own Add/Delete/Edit button instead of using Toolbar's add/edit buttons for manual excel like editing.

Please let me know whether it is possible or not. If yes then how can I achieve the same.

Thanks.

-Mohit.


1 Reply

YO Yogeshwaran Syncfusion Team June 25, 2012 11:57 AM UTC

Hi Mohit,

Thanks for using Syncfusion products.

You requirement to do add, edit using external button can be achieved using client side method . please refer the following code snippet.

$(document).ready(function () {

       $("#Edit").click(function () {

      var gridObj = $find("SampleGrid");

      gridObj._ToolBarEditRecordClick();

       });

$("#AddNew").click(function () {

var gridObj = $find("SampleGrid");

gridObj.sendAddNewRequest();

});

});

For your convenience , We have created the sample and the can be downloaded from below link:

Sample.zip

Please let us know if you have any concerns.

Regards,

Yogesh R


Loader.
Up arrow icon