jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts

  • davijeb
    Blocked

    I have the following:

    if(typeof $rootScope.gridDataAdapter == 'undefined') {
    $rootScope.gridDataAdapter = new $.jqx.dataAdapter(BlotterSourceFactory.source());
    //$rootScope.gridDataAdapter = new $.jqx.dataAdapter(BlotterSourceFactory.source());
    grid = $("#jqxgrid").jqxGrid({
    width: 1000,
    height: 560,
    source: $rootScope.gridDataAdapter,
    theme: getDemoTheme(),
    sortable: true,
    filterable: true,
    autosavestate: false,
    altrows: true,
    groupable: true,
    columnsresize: true,
    pageable: true,
    columnsreorder: true,
    selectionmode: 'multiplerowsextended',
    pagesizeoptions: [ '20', '100', '1000' ],
    columns: columns
    });
    } else {
    alert('grid ' + $('#jqxgrid'));
    $('#jqxgrid').jqxGrid('updatebounddata');
    $('#jqxgrid').jqxGrid('render');
    $('#jqxgrid').jqxGrid('refreshdata');
    }

    I check to see if we already have a data adapter, if not then I create one (using angularjs) and then create the grid. That all works of. But if I already have a data adapter I just tell the grid to (i guessed this part) render and update itself but on the screen the element is just an empty div.

    Any ideas?

    in reply to: JSON grid addRow not working JSON grid addRow not working #22877

    davijeb
    Blocked

    Ok, got it. But…

    The row data in the grid is subtly different from the data. So, in the data I may have:

    {a:1, b:2, c[x:1, y:1]} which means the grid needs to be told: (DATA FORMAT 1)

    a, b, c>x, y>x

    But when I add to the grid I only add the denormalised view, i.e.

    {a:1, b:2, x:1, y:1} (DATA FORMAT 2)

    So, is there a transformation step i can use (the same as the grid uses) to transform DATA FORMAT 1 to DATA FORMAT 2?

    Thanks


    davijeb
    Blocked

    Also, get this error as well:

    TypeError: Cannot read property ‘text’ of undefined

    Once this error is thrown I’m then unable to load the grid state as this error is continually thrown.

    in reply to: Multiple row select problem Multiple row select problem #22263

    davijeb
    Blocked

    Ah ok, understood and makes complete sense. If I did want to prevent this how would I go about it as I believe our users may need this functionality – one line change or more involved?


    davijeb
    Blocked

    Thanks Peter. Do you have an example of how to use this?

    in reply to: Multiple custom filters Multiple custom filters #21643

    davijeb
    Blocked

    Thanks but what I mean is can we have multiple chained custom filters. So, apply a filter then have the ability to add a new:

    Show rows where:

    X AND Y

    Show rows where:

    A OR B

    etc.

    Or, failing that, could we apply multiple filters that build on each other. In other words changing the filter will not overwrite the underlying data filter if one is applied already.

    It’s harder to describe than it actually is…

Viewing 6 posts - 1 through 6 (of 6 total)