When trying to use sorting on an igGrid I am getting the following error:
try {
var data = JSON.parse(response.Data);
var dg = container.find(".DataView");
dg.igGrid({
dataSource: data,
features: [
{
name: "Sorting",
type: "local",
mode: "multi"
},
name: "Paging",
pageSize: 20
name: "GroupBy",
persist: true
name: "Filtering",
}
]
})
catch(err){
ShowErrorMessage("Could Not Load DataView", err);
Hello Adam,
Thank you for posting in our forum.
I’m glad to hear you have resolved your issue.
Indeed the target element should be a table with a valid id, for example:
<table id="grid"></table>
If the target element is not the correct type or has invalid or no id some of the grid features/operations may not work as expected.
Let me know if you happen to have any additional question or concerns regarding this.
Regards,
Maya Kirova
Found the issue. You MUST give the table element you are initialising as a grid an id. I was referencing it by class.