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
Can't Expand WebHierarchicalDataGrid
posted

Hi,

i'v created a new WebHierarchicalDataGrid with one child. the problem is that i cant expand my rows,

the strange thing is that the funcunality seems to work (mening the expand control is shown and can be clicked). i think that my binding is ok and when i set the InitialExpandDepth to "-1" i get the entire expanded grid (as i should) and i can colspand the rows but i can't Expand the rows back.

this is my code:

<div style="width: 100%">

    <asp:ScriptManager ID="ScriptManager1" runat="server">

    </asp:ScriptManager>

    <ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server" 

    Height="700px" Width="100%" AutoGenerateBands="False" 

        AutoGenerateColumns="False" DataMember="SqlDataSource1_DefaultView" 

        DataSourceID="WebHierarchicalDataSource1" Key="SqlDataSource1_DefaultView" 

        DataKeyFields="ProgressTypeID" InitialDataBindDepth="-1" 

        InitialExpandDepth="-1" EnableDataViewState="True" >

        <Columns>

            <ig:BoundDataField DataFieldName="ProgressTypeID" Key="ProgressTypeID">

                <Header Text="ProgressTypeID" />

            </ig:BoundDataField>

            <ig:BoundDataField DataFieldName="Description" Key="Description">

                <Header Text="Description" />

            </ig:BoundDataField>

            <ig:BoundDataField DataFieldName="Manual" Key="Manual">

                <Header Text="Manual" />

            </ig:BoundDataField>

        </Columns>

        <AjaxIndicator Enabled="True" />

        <Bands>

            <ig:Band AutoGenerateColumns="False" DataMember="SqlDataSource2_DefaultView" 

                Key="SqlDataSource2_DefaultView">

                <Columns>

                    <ig:BoundDataField DataFieldName="ProgressTypeID" Key="ProgressTypeID">

                        <Header Text="ProgressTypeID" />

                    </ig:BoundDataField>

                    <ig:BoundDataField DataFieldName="Description" Key="Description">

                        <Header Text="Description" />

                    </ig:BoundDataField>

                </Columns>

            </ig:Band>

        </Bands>

 

    </ig:WebHierarchicalDataGrid>

    <ig:WebHierarchicalDataSource ID="WebHierarchicalDataSource1" runat="server">

        <DataRelations>

            <ig:DataRelation ChildColumns="ProgressTypeID" 

                ChildDataViewID="SqlDataSource2_DefaultView" ParentColumns="ProgressTypeID" 

                ParentDataViewID="SqlDataSource1_DefaultView" />

        </DataRelations>

        <DataViews>

            <ig:DataView ID="SqlDataSource1_DefaultView" DataMember="DefaultView" 

                DataSourceID="SqlDataSource1" />

            <ig:DataView ID="SqlDataSource2_DefaultView" DataMember="DefaultView" 

                DataSourceID="SqlDataSource2" />

        </DataViews>

    </ig:WebHierarchicalDataSource>

    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 

        ConnectionString="<%$ ConnectionStrings:IMATrackConnectionString %>" 

        SelectCommand="SELECT [ProgressTypeID], [Description] FROM [Dictionary_TaskProgressTypes]">

    </asp:SqlDataSource>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 

        ConnectionString="<%$ ConnectionStrings:IMATrackConnectionString %>" 

        SelectCommand="SELECT * FROM [Dictionary_TaskProgressTypes]">

    </asp:SqlDataSource>

</div>

tnks