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
40
WebHierarchical Grid is not displaying expand arrow for child band
posted

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">

 

 

 

<ExpandCollapseAnimation SlideOpenDirection="Auto" SlideOpenDuration="300" SlideCloseDirection="Auto" SlideCloseDuration="300" />

 

 

 

 

 

 

 

 

<Columns>
<ig:BoundDataField DataFieldName="Contact_ID" Hidden="True" Key="Contact_ID">
<Header Text="Contact_ID"/>
</ig:BoundDataField>

 

 

 

<ig:BoundDataField DataFieldName="CustomerID" Key="CustomerID">
<Header Text="CustomerID" />
</ig:BoundDataField>

 

 

 

<ig:BoundDataField DataFieldName="FirstName" Key="FirstName">
<Header Text="FirstName"/>
</ig:BoundDataField>

 

 

 

<ig:BoundDataField DataFieldName="LastName" Key="LastName">
<Header Text="LastName" />
</ig:BoundDataField>

 

 

 

<ig:BoundDataField DataFieldName="CompName" Key="CompName">
<Header Text="CompName" />
</ig:BoundDataField>

 

 

 

</Columns>

<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>

 

 

 

 

 

</Behaviors>

 

 

 

</ig:WebHierarchicalDataGrid>

 

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    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 

Children