Problem:
A kendo UI "window" widget that contains a "grid" widget.
The "window" is a popup window, it is hidden on initial page load.
The "window" and the "grid" are initialized using Markup ( data-role="window", data-role="grid" and bind, no JavaScript configuration, only for events)
A button "Open Window" opens the popup window that has inside a grid.
Every time the popup window is opened a new Ajax call must be done for reloading the grid (through: $("#grid").data("kendoGrid").dataSource.read();)
Questions:
1. How can be avoided to load data the first time?
Note - I do not bind the grid but as the grid nested into the window (container), when that (the window) is bound, the grid is then bound as well
(is there a way to avoid this behaviour?
It could be done defining the grid outside the window and "attach" it at runtime but I would keep the HTML consistent).
Note - I do not bind the grid but as the grid nested into the window (container), when that (the window) is bound, the grid is then bound as well
(is there a way to avoid this behaviour?
It could be done defining the grid outside the window and "attach" it at runtime but I would keep the HTML consistent).
2. Is there a way to not raise the dataBound.transport.read the first time (on page loading / binding)?
3. I tried to set an empty url (for avoiding the Ajax call on page loading) and then change it at every open popup ($("#grid").data("kendoGrid").dataSource.options.transport.read.url = url;) but it doesn't work, the url doesn't change.
Thank you for help