Hi,
Let me tell you my situation i have empID,empName in the parent grid.if i selected the first row in the parent based on the empID of the selected row i need to populate the values to the child.kind of select empName from emoploye table where empID = selectedvalue from the firstrow.Is is possible to do like dat.Please suggest me some links regarding this.
Regards,
Hsakarp.
Hello Hsakarp,
Thank you for posting in the community.
I suggest that you take a look at our documentation's Manual Load On Demand article:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=WebHierarchicalDataGrid_Load_On_Demand.html
If needed, you may be interested in forcing the expanders for your parent rows via theisEmptyParentproperty:
http://ko.infragistics.com/community/forums/t/69915.aspx
Please feel free to contact me if you have any questions.
Hi petar,
thanks for the link.The grid is working fine with the boundfield parent.if i load the parent from the datasource the grid am geting is static grid(i.e)webdatagrid.The expanding button is not visible.is that any property to enable that?
hsakarp.
Hello hsakarp,
TheInitializeRowevent may be handled in order to configure rows as empty parents:
protected void WebHierarchicalDataGrid1_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e) { ((Infragistics.Web.UI.GridControls.ContainerGridRecord)(e.Row)).IsEmptyParent = true; }
protected void WebHierarchicalDataGrid1_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e) { ((Infragistics.Web.UI.GridControls.ContainerGridRecord)(e.Row)).IsEmptyParent = true;
}
Please note that a child band should be generated (even an empty one) in order for this to work properly.
Hope this helps.
Please contact me if you have any queries regarding this scenario.