Kendo Grid -> How to trigger custom method on Add click button

redrom

I'm trying to catch click on the "Add new record" button in Kendo Data Grid. I tried to find this in documentation but without luck (I found how to catch click on detail button).

How can i do it please?

I don't want to trigger adding new row but i want to redirect user on new page.

Thanks for any advice.

enter image description here

CuriousSuperhero

You can catch the click on the "Add new record" button using the following code.

$('.k-header').on('click', '.k-grid-add', function() {
     alert("Forward to Stackoverflow");
     window.location.replace("http://stackoverflow.com");
});

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

how to make a column editable in kendo grid from a button click

preventDefault() does not work in Kendo grid's custom click handler

Kendo Grid custom action button icon

Cannot refresh Kendo Grid by a custom button?

How to trigger click on a button

How to generate a custom button that submits cell data from its uid in Kendo UI Grid MVC?

How to add custom keyboard navigation between editable cells in Kendo Grid

how to add delay on Kendo grid filters

Kendo Ui Grid not rebinding after search button click

How to add ActivityIndicator on Custom TableviewCell's button click?

How to custom tooltip such as contains some button in grid's cell tooltip in Kendo UI MVC?

How to add custom code on the click of Today button with xtype: 'datefield'

How to add DatePicker in ClientTemplate for Kendo MVC Grid

how to get the Selected item in dropdownlist while click the Edit button in inline kendo grid in asp

How to add class to a kendo grid table header?

Kendo Grid custom command button shown dynamically

Custom Stripe Button does not trigger the POST method

How do I add a custom view on click of a button Xamarin

how to disable button in kendo grid column

How to add a new textbox in the div when I click kendo button?

Cannot refresh kendo grid on button click in angularjs

mouseover or mouseenter or onhover event for Kendo Grid custom button?

Kendo grid custom editor how to send the element?

Addition of Custom button in Kendo Grid using Kendotoolbar and kendo toolbar button

Kendo-grid change event not firing on row button click

Using Kendo Grid - onclick requires an extra click to call a jquery method

How to trigger an add button with both a click and enter keyboard button?

Display checkbox or switch instead custom button kendo grid

Programmatically trigger button click event on AG grid