Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
Paging and updating JavaScript
posted

Hi,

I create igGrid from javascript, but I want this igGrid have paging and updating.

I tried doing:

1.-

$("#grid1").igGrid({
autoGenerateColumns: true,
dataSource: mivar,
features: [{
name: ["Updating","Paging"],
enableAddRow: true,
editMode: "row",
enableDeleteRow: true
}]
});

2.-

$("#grid1").igGrid({
autoGenerateColumns: true,
dataSource: mivar,
features: [{
name: "Updating",
name: "Paging",
enableAddRow: true,
editMode: "row",
enableDeleteRow: true
}]
});

In the first shape fails, and the second way makes only the second characteristic.
How could I?
Thanks in advance.

Best Regards

Parents
No Data
Reply
  • 645
    Verified Answer
    posted

    hi,

    Already it is solved.
    I leave the solution in case anyone needs it.

    $("#grid1").igGrid({
    autoGenerateColumns: true,
    dataSource: mivar,
    updateUrl: "EditingSaveChanges",
    features: [{
    name: "Updating",
    enableAddRow: true,
    editMode: "row",
    enableDeleteRow: true,
    },{
    name: "Selection",
    mode: "row",
    multipleSelection: true,
    activation: true
    }, {
    name: "Paging"
    }],
    });

Children
No Data