jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Dynamic columns in grid Dynamic columns in grid #4084

    shivaw
    Member

    Hi Peter,

    Thanks for correcting me, but the given approach is still not working. The page renders only those columns which are by default bounded to the grid.

    This piece of code does not change the columns info dynamically.

    // change columns collection.
    $(“#jqxGrid”).jqxGrid({ columns: gridColumns });

    Please help us.

    Thanks,
    Shiva.

    in reply to: Dynamic columns in grid Dynamic columns in grid #4055

    shivaw
    Member

    Hey Peter,

    We tried it out with v 2.1 (commercial – evaluation version – jQWidgets v2.1.0 (2012-May-04)) as well but still no help. It is still not working. We are getting errors like “gridColumns is not defined” and “viewModel is undefined “.

    Below is the code snippet:


    var gridColumns= [
    { text: 'Fund', dataField: 'Fund', cellsalign:'left', width: 120 },
    { text: 'USD', dataField: 'USD', cellsalign:'right', width: 130 },
    { text: 'EUR', dataField: 'EUR', cellsalign:'right', width: 130 },
    { text: 'GBP', dataField: 'GBP', cellsalign:'right', width: 130 },
    { text: 'CAD', dataField: 'CAD', cellsalign:'right', width: 130 },
    { text: 'MYR', dataField: 'MYR', cellsalign:'right', width: 130 },
    { text: 'ISK', dataField: 'ISK', cellsalign:'right', width: 130 }
    ];
    $("#jqxGrid").jqxGrid(
    {
    source: source,
    autoheight: true,
    pageable: true,
    editable: false,
    columnsresize: true,
    theme: 'classic',
    width: 900,
    columns: [
    { text: 'Fund', dataField: 'Fund', cellsalign:'left', width: 120 }
    ]
    });
    });
    // change columns collection.
    $("#jqxGrid").jqxGrid({ columns: gridColumns });

    Please help.

    Regards,
    Shiva

    in reply to: Dynamic columns in grid Dynamic columns in grid #4053

    shivaw
    Member

    Ohhhh okkk.

    We are using v1.8.0

    We will get the latest one and try it out.

    I’ll keep you posted with the progress on this. Thanks for your prompt reply.

    Regards,
    Shiva

    in reply to: Dynamic columns in grid Dynamic columns in grid #4051

    shivaw
    Member

    Hey Peter,

    I tries your solution but it doesn’t work in our case. 🙁

    When we call the web service to get the data, nothing happens. The page just freezed.

    Cheers,
    Shiva


    shivaw
    Member

    I’ll try that way out.

    Is there any possibility that we can create a grid without specifying its columns? I mean, in case of a dynamic grid where number of columns isnt known at the beginning. How to achieve that?

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