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 DataFieldName="Manual" Key="Manual">
<Header Text="Manual" />
</Columns>
<AjaxIndicator Enabled="True" />
<Bands>
<ig:Band AutoGenerateColumns="False" DataMember="SqlDataSource2_DefaultView"
Key="SqlDataSource2_DefaultView">
</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"
SelectCommand="SELECT * FROM [Dictionary_TaskProgressTypes]">
</div>
tnks
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>td2 .igg_ElectricBlueHeaderCaption
Thanks,
Olga
Hello, is this still an issue in Version 10.3?
It seems like i have the same Problem. I generate a ContainerGrid in my RowPopulatingEvent on Postback but the row does not expand . If i deactivate all CSS Styles, i can see that the childrows are there.
I checked the css files and added the font size attribute like you suggested, but that didn't worked.
Is there anything else i can do?