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
25
cannot find name '$'
posted

hi,

i am Using Ignite UI with TypeScript in visual stdio code.

i am trying Hierarchical Grid sample code in VSC but at time of compiler i am getting error as  "cannot find name '$'."

website like : https://www.igniteui.com/hierarchical-grid/typescript

code:

$(function () {
$("#hierarchial-grid").igHierarchicalGrid({
width: "100%",
dataSource: sampleData,
features: [
{
name: "Responsive",
enableVerticalRendering: false,
columnSettings: [
{
columnKey: "type",
classes: "ui-hidden-tablet"
},

]
},
{
name: "RowSelectors",
enableCheckBoxes: true,
inherit: true
},
{
name: "Selection",
multipleSelection: true
}
],
autoGenerateColumns: false,
primaryKey: "type",
columns: [
{ key: "type", headerText: "Type", dataType: "string" }
],
autoGenerateLayouts: false,
columnLayouts: [
{
width: "100%",
childrenDataProperty: "products",
autoGenerateColumns: false,
primaryKey: "name",
columns: [
{ key: "name", headerText: "Name", dataType: "string", width: "70%", },
{ key: "quantity", headerText: "Quantity", dataType: "number", width: "30%" }
],
features: [
{
name: "Responsive",
enableVerticalRendering: false,
columnSettings: [
{
columnKey: "name",
classes: "ui-hidden-tablet"
},
{
columnKey: "quantity",
classes: "ui-hidden-tablet"
}
]
}
]
}
],
});
})
  • 15320
    Offline posted

    Hello Pankit,

    I prepared a sample similar to the one in the samples browser and attached it in this thread for your reference. I couldn't reproduce such error on my side. Please test the attached sample and let me know if you're doing something different.

    Regards,

    Tsanna

    hg-typescript.zip