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: '',
dataSourceType: "xml",
{ headerText: "Address1", key: "Address1", hidden: true },
{ headerText: "CompanyName", key: "CompanyName", width: "150px" },
{ headerText: "Contacts", key: "NumberOfContacts", dataType: "string", width: "80px" },
{ unbound: true, key: "Action", headerText: "Action", dataType: "string", template: "<input type='button' value='Create Lead'/>", width: "130px" }
features: [
},
name: "RowSelectors",
enableCheckBoxes: true,
enableRowNumbering: false,
checkBoxMode: "biState"
name: "Selection",
mode: "row",
multipleSelection: true
{ headerText: "First Name", key: "FirstName" },
{ headerText: "Last Name", key: "LastName", dataType: "string" },
]
}
});
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.
Hi Vasya,
The issue got resolved when we remove the primary key : KeyID from the grand child grid , as we don't have that field in the data source coming up.
Thank you so much for your time in replying.
Thanks
Ghirijha