<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. To look further into this matter to see what is happening with your code I would like you to send me an isolated sample that reproduces the behavior. For the RowIslandsPopulating event it appears you do not have a Handles ugSearchTrial.RowIslandsPopulating. Have you tried reproducing this in an isolated sample?
Hello Mike,
Thanks for your guidance.
Well I tried to run isolated solution which is give by you and its working perfectly, all event are firing properly.
Also I have added your sample code in my solution its working fine. If we compare with your same code with us, there is only one difference that you did not use initialdatabinddepth="-1" and we used it.
In my webhierarchicaldatagrid, initialdatabinddepth="-1" is defined and if I remove this, i am getting below error:
------------------------------
Message from webpage ------------------------------ Runtime Exception: No child grid script descriptors are available! --------------------------- OK ---------------------------
Note- I have added datakeyfields="****" and DataMember="****" to all Bands. datakeyfields we definewd are our Primary keys.
But still no luck.
Can you look the earlier code sample I shared with you and suggest what could be the possible cause not able to raise events RowExpanded and RowIslandsPopulating from my code?
Please let us know if you need more information on this query.
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.
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?
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://ko.infragistics.com/community/forums/p/104514/494365.aspx#494365
http://ko.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.