JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Scheduler › Ungrouping events › Reply To: Ungrouping events
Hi Ivan,
My issue is more with the rendering of the groups, not how to change the actual data to the resources. See what I mean with some images.
This is how the scheduler is rendered when there is data bound to both dataSource and resource properties:
And this is how it is refreshed after requesting data from the server and the list is empty:
On the “rowselect” event of the grid I’m having this chunk of code:
$("#main_grid").on('rowselect', function (event) {
var data = event.args.owner.source.recordids[event.args.rowindex];
taskSource.dataSource = '/get_data/accepted?id=${data.id}';
projectSource.dataSource = '/get_data/accepted?id=${data.id}';
});
That part of the code is forcing both dataAdapters to refresh it’s data. The Scheduler is refreshing the data when the ajax call completes, but when the data source is empty the actual groups are removed from the rows, unfortunately the cell which meant to hold the group’s label remains in the timeline row and the whole grid is looking odd
Thanks in advance!
Blagoy