<ig:webhierarchicaldatagrid id="ugSearch" runat="server" datakeyfields="*****" datamember="*****" headercaptioncssclass="PartyHeaderClass" autogeneratecolumns="False" autogeneratebands="False" width="98%" height="940px" altitemcssclass="PartyAltRowClass" itemcssclass="PartyRowClass" initialdatabinddepth="0" borderwidth="0px" OnRowIslandsPopulating="whdg_RowIslandsPopulating" >
Showing below message box when i Click on row (+) Sign
---------------------------Message from webpage---------------------------Runtime Exception: No child grid script descriptors are available!---------------------------OK ---------------------------
Hi Abhijeet Dhoke,
Thank you for contacting Infragistics.
From what I can see thus far, you're currently using the WebHierarchicalDataGrid's LoadOnDemand feature. That being said, here are some things to consider:1. The PrimaryKey should be set for each Table in your DataSource2. The DataKeyFields and DataMember properties should be set for each level in your WebHierarchicalDataGrid
To learn more about the LoadOnDemand feature, please review the following help topic:https://www.igniteui.com/help/infragistics.web.mvc~infragistics.web.mvc.igridmodel~loadondemand
Thanks for response.
I am trying to raise below RowExpanded event on parent row of webhierarchicaldatagrid:
Protected Sub ugSearchTrial_RowExpanded(sender As Object, e As Infragistics.Web.UI.GridControls.ContainerRowEventArgs) Handles ugSearchTrial.RowExpanded
'Dim val As string =ugSearchTrial.Rows(e.Row)End Sub
But this event is not firing when I click on any Parent row.
Also RowIslandsPopulating event not firing.
It will helpful for me if you attach/share any sample code to fire these events from webhierarchicaldatagrid.
Thanks,Abhijeet
Hello Abhijeet,
Thank you for the update. You code doesn’t show you are setting up the DataKeyFields and DataMember. Do you have or can create an isolated sample that reproduces this matter? If you like I can create a private case for this matter.
Hello Mike,
Thank You Being With Us. :-)
Yes, I have added DataKeyFields and DataMember. I have your sample code. But I am looking for below point in my code. Could you please create and share with us, an isolated sample that reproduces with cover below point in(IN VB.NET).
1) There is 4 level bands like parent (Employee) =>Department==>Account===>System
2) I have set up in aspx. page as i mention above discussion, please refer that structure, you can change column name, DataKeyFields and DataMember or rearrange structure according to you.
3) I have huge data in child bands, I want to load every child bands ON DEMAND, it’s on WebHierarchicalDataGrid1_RowIslandsPopulating,Whdg121_RowExpanded from database.
4) Custom logic - More rows to be added while On Demand runs in parent (Employee) table on particular condition.
5) We want to apply customize CSS from code behind(vb.net code).
6) I don't want to use initialdatabinddepth="-1" or initialdatabinddepth="0" in aspx page. Please set the depth binding from vb.net code(code behind)
We are using below Register Assembly
<%@ Register Assembly="Infragistics4.Web.v14.2, Version=14.2.20142.1028, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.GridControls" TagPrefix="ig" %>
Regards,
Abhijeet Dhoke
9766454368
Hello Abjijeet,
I have some follow up questions concerning this matter:
What kind of datasource are you connecting to your grid? How are you assigning that datasource on postback?Does the column you are using for your DataKeyField contain all unique values?Can you provide me with a sample that reproduces the issue you are seeing so I can do some debugging on my side?
Good morning,
Thanks for response, I am new for INFRAGISTICS control.
1) What kind of datasource are you connecting to your grid= Answer - Datatables
2) How are you assigning that datasource on postback= Answer -In postback true with view state/Session
3) Does the column you are using for your DataKeyField contain all unique values?= Yes
4) Can you provide me with a sample that reproduces the issue you are seeing so I can do some debugging on my side?= Please find the attachment
Can you please check attached code and edit it according to you. I have put query comment in there please go through it.
After binding data on page load Me.IsPostBack = True. I am able to fire the WebHierarchicalDataGrid1_RowIslandsPopulating event, but few problem over there. I have attached the sample code. Please check it.
Abhijeet
Please ignore previous attachment.
Reagards,
If you are still experiencing this issue and are using .NET 4.0 then it is likely because you are somehow not setting up the grid properly. I am attaching a sample that demonstrates how to properly setup the grid. To go further with this matter you are going to have to send an isolated sample that reproduces the issue you are seeing.
Thanks mike, Please have look into it, I think its challenging query for INFRAGISTIC development team.
Thank you for the update. I see that those forum threads are already being handled by other team members. I will discussed those threads with them.
If you are there please have lookin to it-
http://es.infragistics.com/community/forums/p/104514/494365.aspx#494365
http://es.infragistics.com/community/forums/t/104512.aspx
Thank you for the update. If you have new queries I recommend you create separate forum threads or cases to keep it clear what each one is about.