I've run into an issue with the noRecords functionality. We have a Kendo tabstrip with two tabs - one grid on each tab. The user can add records in either of the grids which could result in a change to the data behind the other grid. So adding a record in Tab1 - Grid1 will cause Tab2 - Grid2 to be refreshed. If this happens and then the user changes tabs to Tab2, then Grid2 shows the new data but still shows the noRecords template as well. I've traced this down to the _renderNoRecordsContent() function. In that function, the logic only runs if the grid's wrapper is visible:
_renderNoRecordsContent: function() {
var that = this;
if (that.options.noRecords && that.wrapper.is(":visible")) {
In my situation, the non-active tab fails this wrapper visible check. So when rebind a grid programmatically on a non-active tab, the noRecords logic won't fire. Is there a good way around this? Or is the :visible check maybe a little too aggressive of a filter?
Thanks for your help!
Regards,
Brian