Hi, i'm using 2013.2.717.40
The Expand Collapse Buttons are firing a PostBack even though I believe i've configured the RadGrid to use ClientSide expand/collapse.
What am I doing wrong? I would like the expand and collapse to be handled by the Client.
ASPX:
<code>
<telerik:RadGrid ID="rgInspectionItems" runat="server" Skin="MetroTouch"
CellSpacing="0" GridLines="None"
onneeddatasource="rgInspectionItems_NeedDataSource">
<ClientSettings AllowGroupExpandCollapse="true" AllowExpandCollapse="true">
</ClientSettings>
<MasterTableView HierarchyLoadMode="Client">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="WorkGroupName" HeaderText="Group" />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="WorkGroupName" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="41px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Created="True">
<HeaderStyle Width="41px" />
</ExpandCollapseColumn>
</MasterTableView>
</telerik:RadGrid>
</code>
ASPX.CS
<code>
protected void rgInspectionItems_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{ DataTable dt = AppSql.getInspectionItems();
rgInspectionItems.DataSource = dt;
}
</code>
Also, what is the Markup needed to Format a Code Snippet?
Thanks,
The Expand Collapse Buttons are firing a PostBack even though I believe i've configured the RadGrid to use ClientSide expand/collapse.
What am I doing wrong? I would like the expand and collapse to be handled by the Client.
ASPX:
<code>
<telerik:RadGrid ID="rgInspectionItems" runat="server" Skin="MetroTouch"
CellSpacing="0" GridLines="None"
onneeddatasource="rgInspectionItems_NeedDataSource">
<ClientSettings AllowGroupExpandCollapse="true" AllowExpandCollapse="true">
</ClientSettings>
<MasterTableView HierarchyLoadMode="Client">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="WorkGroupName" HeaderText="Group" />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="WorkGroupName" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="41px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Created="True">
<HeaderStyle Width="41px" />
</ExpandCollapseColumn>
</MasterTableView>
</telerik:RadGrid>
</code>
ASPX.CS
<code>
protected void rgInspectionItems_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{ DataTable dt = AppSql.getInspectionItems();
rgInspectionItems.DataSource = dt;
}
</code>
Also, what is the Markup needed to Format a Code Snippet?
Thanks,