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
430
igHierarchicalGrid child row was not displayed getting blank record
posted

Hi All,

I am new to Hierarchical grid.I tried to display parent and child record using Hierarchical grid.The parent row gets displayed but while clicking on the expand icon I'm getting javascript error "Uncaught Error: Syntax error, unrecognized expression: #hierarchicalGrid_002/000003_Child_child_scroll".

Please find the code and JSON format data.

$("#hierarchicalGrid").igHierarchicalGrid({
initialDataBindDepth: 1,
dataSource: @Session["BatchesData"],
dataSourceType: "json",
responseDataKey: "NewDataSet.Parent",

autoGenerateColumns: false,
primaryKey: "BatchReferenceNumber",
columns: [
{ headerText: "BatchReferenceNumber", key: "BatchReferenceNumber", width: "100px", dataType: "string" },
{ headerText: "ProcessingType", key: "ProcessingType", width: "100px", dataType: "string" },
{ headerText: "IncurredFromDate", key: "IncurredFromDate", width: "100px", dataType: "string" },
{ headerText: "IncurredThruDate", key: "IncurredThruDate", width: "100px", dataType: "string" },
{ headerText: "ReceivedDate", key: "ReceivedDate", width: "100px", dataType: "string" },
{ headerText: "ReceivedDate", key: "ReceivedDate", width: "100px", dataType: "string" },
{ headerText: "TotalCharge", key: "TotalCharge", width: "100px", dataType: "number" }

],
autoGenerateLayouts: false,
defaultChildrenDataProperty: "Child",
columnLayouts: [
{
name: "Child",
responseDataKey: "Child",
childrenDataProperty: "Child",
autoGenerateColumns: false,
primaryKey: "BatchReferenceNumber",
columns: [
{ key: "BatchReferenceNumber", headerText: "BatchReferenceNumber", width: "100px", dataType: "string" },
{ key: "PatientLastName", headerText: "PatientLastName", width: "100px", dataType: "string" },
{ key: "PatientFirstName", headerText: "PatientFirstName", width: "150px", dataType: "string" },
{ key: "SSN", headerText: "SSN", width: "155px", dataType: "string" },
{ key: "MemberID", headerText: "MemberID", width: "155px", dataType: "string" },
{ key: "ProviderName", headerText: "ProviderName", width: "155px", dataType: "string" }
]
}
]
});

JSON Data:

{"NewDataSet":{"Parent":{"BatchReferenceNumber":"002 /000003","ProcessingType":"i",
"IncurredFromDate":"02/01/2007","IncurredThruDate":"02/01/2007","ReceivedDate":"02/20/2007","TotalCharge":"211.21"},
"Child":{"BatchReferenceNumber":"002 /000003","PatientLastName":"DUCKBILL ","PatientFirstName":"DUCKY ","SSN":"12609991","MemberID":"100001112 ","ProviderName":"SCOTT BAKER MD "}}}

Please help to resolve the issue as soon as possible.

Thanks,

Pradeep SE