@blag0

@blag0

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Ungrouping events #103785
    BLaG0
    Participant

    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:

    Scheduler with bound data

    And this is how it is refreshed after requesting data from the server and the list is empty:

    Empty data source

    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

    • This reply was modified 1 year, 7 months ago by BLaG0.
    • This reply was modified 1 year, 7 months ago by BLaG0.
    • This reply was modified 1 year, 7 months ago by BLaG0.
Viewing 1 post (of 1 total)