Hi,
We are evaluating your product. I am just trying one sample to run. I have manual load for webhierarchical grid through dataset on pageload which is working fine. I want to load child band on demand. I implemented
onrowislandspopulating="WebHierarchicalDataGrid1_RowIslandsPopulating"
method but it is not displaying expand arrows.
Following is my grid code.
<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server" Height="323px" Width="846px" AutoGenerateColumns="False" AutoGenerateBands="False" DataKeyFields="CustomerID" InitialDataBindDepth="0" onrowislandspopulating="WebHierarchicalDataGrid1_RowIslandsPopulating">
<Columns><ig:BoundDataField DataFieldName="Contact_ID" Hidden="True" Key="Contact_ID"><Header Text="Contact_ID"/></ig:BoundDataField>
<Behaviors><ig:Paging PageSize="100" QuickPages="2"></ig:Paging><ig:Filtering></ig:Filtering><ig:Sorting><ColumnSettings><ig:SortingColumnSetting ColumnKey="CustomerID"/><ig:SortingColumnSetting ColumnKey="FirstName"/><ig:SortingColumnSetting ColumnKey="LastName"/><ig:SortingColumnSetting ColumnKey="CompName" /></ColumnSettings>
</ig:Sorting>
Hi suhrid,
If you have no child band defined, the grid has no way of knowing that it will have a child. So, it doesn't check the data for possible children. What you will need to do is handle the RowInitialize server event and set IsEmptyParent to true for children that you expect to have a child that you will manually load later. You can get the row from the event args. You may have to cast it to ContainerGridRecord.
regards,David Young
Thanks for your reply. I figured that out. I am struggling to display multiple child bands in a row where i want expand arrow only if parent row has child records and also want to display multiple expand arrows in different columns. i.e. If contact has activities, notes or other child records than i want to display columns saying activities with expand arrow, notes with expand arrow.
Abhijeet,
There is an example of manual load on demand in the samples browser that you can refer to:
https://es.infragistics.com/samples/aspnet/hierarchical-data-grid/manual-load-on-demand
Hello Can any one send me the above query sample code, for child row expand button sign is missing!