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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

104095 Jun 21,2012 05:38 AM UTC Jun 25,2012 11:57 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: Grid
Mohit Jain
Asked On June 21, 2012 05:38 AM UTC

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.


Yogeshwaran [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon 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.Close Icon

;