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
165
Unable to select a row/node with igTreeGrid
posted

I understand that igTreeGrid inherits from igGrid and the method selectRow seems to be available, however I can't get it to work.

$("#myIGTreeGrid").igTreeGrid({
width: "100%",
dataSource: productsDataSource,
initialExpandDepth: 0,
autoGenerateColumns: false,
height: "100%",
primaryKey: "id",
showFooter: false,
columns: productColumns,
childDataKey: "products",
features: [ { name: "Selection" }, ],
});

When I call $("#myIGTreeGrid").igGridSelection("selectRow", 0) I get this error

cannot call methods on igGridSelection prior to initialization; attempted to call method 'selectRow'