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
100
All rows in grid are getting highlighted in the grand child grid on mouse hover and check boxes in this grid is getting clicked only on the second click
posted

            Hi,

We are using Iggrid to display 3 level of hierarchical records say List of Companies -> List of Child Companies -> List of Contacts and the datasource is of type XML.

Here when we try to expand the grand child ie : List of Contacts and mouse hover on the grid, all rows are highlighted inspite if we mouse hover on the first record.

And also we are using Row Selectors for this grid as Checkbox , the issue we are facing here is that , the checkbox is getting clicked only on the second click.

below is the definition of the grid and its features . Please let know how to fix this issue?

$("#hierarchicalGrid1").igHierarchicalGrid({

autoGenerateColumns: false,

primaryKey: "KeyID",

initialDataBindDepth: 0,

features: [{

name: 'Responsive'

}],

columns: [

{ headerText: "CompanyName", key: "CompanyName" },

{ headerText: "Locations", key: "Locations" },

{ headerText: "KeyID", key: "KeyID", hidden: true },

],

columnLayouts: [

{

key: "Child",

responseDataKey: '',

autoGenerateColumns: false,

primaryKey: "KeyID",

dataSourceType: "xml",

features: [{

name: 'Responsive'

}],

columns: [

{ headerText: "Address1", key: "Address1", hidden: true },

{ headerText: "CompanyName", key: "CompanyName", width: "150px" },

{ headerText: "Contacts", key: "NumberOfContacts", dataType: "string", width: "80px" },

{ headerText: "KeyID", key: "KeyID", hidden: true },

{ unbound: true, key: "Action", headerText: "Action", dataType: "string", template: "<input type='button' value='Create Lead'/>", width: "130px" }

],

columnLayouts: [

{

key: "Child",

autoGenerateColumns: false,

primaryKey: "KeyID",

dataSourceType: "xml",

features: [

{

name: 'Responsive'

},

{

name: "RowSelectors",

enableCheckBoxes: true,

enableRowNumbering: false,

checkBoxMode: "biState"

},

{

name: "Selection",

mode: "row",

multipleSelection: true

},

],

columns: [

{ headerText: "First Name", key: "FirstName" },

{ headerText: "Last Name", key: "LastName", dataType: "string" },

]

}

]

}

]

});

 

 

Parents
  • 17590
    Offline posted

    Hello Ghirijha,

    Thank you for posting in our community.

    What I can suggest in your scenario is ensuring that all primary keys in your grid have unique values. By design when row is hovered and there is another rows with matching id these rows will have the hovered style applied as well.

    If this is not the case on your side and all your keys are distinctive please send me a small isolated sample of your own, where the issue is reproducible. Please include a mock up of your underlying data source since data could be essential for this matter. The way that you initialize the igHierarachicalGrid in the code snippet provided seems correct and having a working sample to debug on my side this is going to be very helpful in determining the root cause for this matter.

    Please let me know if you have any additional questions.

Reply Children