Created
June 10, 2016 11:06
-
-
Save cAstraea/f52e39f4bc7bae0aa340c5bc4997d186 to your computer and use it in GitHub Desktop.
adding button after export button of dxgrid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onContentReady: function() { | |
var $addButton = $('#add'); | |
console.log(SearchFiltersSKZ); | |
if(! $addButton.length ) // | |
{ | |
$( '<div id="add" aria-label="edit-button-addrow" role="button" onclick="void(0)" tabindex="0" title="Add a row" class="dx-edit-button dx-datagrid-addrow-button dx-widget dx-button-has-icon dx-button dx-button-normal"><div class="dx-button-content"><i class="dx-icon dx-icon-edit-button-addrow"></i></div></div>' ).insertAfter('.dx-datagrid-export-button'); | |
// it doesn't exist | |
$('#add').on('dxclick', function () { $("#gridContainer").dxDataGrid("instance").addRow(); }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment