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

Parents
  • 2783
    posted

    Hi,

    I think that you maybe seeing one of our known issues.  The row is actually expanding but the size that its taking up is 1px, so you don't actually see anything.  Please inspect the HTML and if this is the case, while you are waiting on fix for the issue, you can do the following as a work around: in the ig_dataGrid.css file of the style that you are using in the following two css classes, just add a font-size attribute and set it to a size that is good for your application (lets say 10px)

    (The class names below are shown for the ElectricBlue style set, the "ElectricBlue" part of the name will be replaced by the name of the style set that you are using)

    1   tbody.igg_ElectricBlueItem>tr>td
    2  .igg_ElectricBlueHeaderCaption

    Thanks,

    Olga

Reply Children
No Data