resize


Event fires when the grid width is changed. The "responsive" configuration setting should be set to true in order this event to fire.

Examples

  
Edit this example
<table id="grid"></table> <script> var grid = $('#grid').grid({ dataSource: '../Grid/GetPlayers', responsive: true, columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ] }); grid.on('resize', function (e, newWidth, oldWidth) { alert('resize is fired.'); }); </script>