5 Answers, 1 is accepted
Indeed the grid makes an ajax request initially when empty and ajax is enabled. You can modify the source of the grid in order to avoid that. To do so find this method and delete the highlighted section:
$.fn.tGrid = function(options) {
options = $.extend({}, $.fn.tGrid.defaults, options);
return this.each(function() {
options = $.meta ? $.extend({}, options, $(this).data()) : options;
if (!$(this).data('tGrid')) {
var grid = new $t.grid(this, options);
$(this).data('tGrid', grid);
if (grid.$tbody.find('tr.t-no-data').length)
grid.ajaxRequest();
}
});
}
Regards,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
thank you very much!
alex
alex
We will not change this behavior because quite a lot of people rely on it. Use the workaround mentioned before.
Regards,Atanas Korchev
the Telerik team