Good morning! I am having trouble attempting to programmatically (via C#) access specific GridGroupByField header texts. I am assigning custom text within the group headers in the following manner in my markup:
What I would like to be able to do is access the GridGroupByField HeaderText via C#. Specifically I want to access the EndDate so that I can expand or collapse certain groups based on the end date.
Any help is appreciated! Thank you in advance.
Josh
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="BeginDate" HeaderText="Begin Date" FormatString="{0:d}" />
<telerik:GridGroupByField FieldName="EndDate" HeaderText="End Date" FormatString="{0:d}" />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="BeginDate" SortOrder="Descending" />
<telerik:GridGroupByField FieldName="EndDate" SortOrder="Descending" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName="BeginDate" HeaderText="Begin Date" FormatString="{0:d}" />
<telerik:GridGroupByField FieldName="EndDate" HeaderText="End Date" FormatString="{0:d}" />
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="BeginDate" SortOrder="Descending" />
<telerik:GridGroupByField FieldName="EndDate" SortOrder="Descending" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
What I would like to be able to do is access the GridGroupByField HeaderText via C#. Specifically I want to access the EndDate so that I can expand or collapse certain groups based on the end date.
Any help is appreciated! Thank you in advance.
Josh