jQWidgets Forums

jQuery UI Widgets Forums Grid change the datasource

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 13 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • change the datasource #3517

    jose Ivan
    Member

    hi it is posible change the source of the grid … something like this after this rendered… it’s liklike new datasource ….

    var source =
                {
                    localdata: results,
                    datatype: "json",
                    datafields: [
                        { name: 'id' },
                        { name: 'available' },
                        { name: 'Account' },
                        { name: 'Description' },
                        { name: 'Debe' },
                        { name: 'Haber' },
                        { name: 'nota' },
                    ],
                    addrow: function (rowid, rowdata) { },
                    updaterow: function (rowid, rowdata) { }
                };
                //$(grid).jqxGrid('setcellvalue', event.args.rowindex, event.args.datafield, results);
                dataAdapter = new $.jqx.dataAdapter(results);
                $(grid).jqxGrid({ source: dataAdapter });
                $(grid).jqxGrid('render');

     

    change the datasource #3521

    Peter Stoev
    Keymaster

    Hi jose Ivan,

    It is possible. For more information, please take a look at the ‘Refresh Data’ sample in the Help Docs here: jquery-grid-datasources.htm

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.