I have a couple scenarios.
One is I am grouping by year but I want the latest year to be expanded while the others stay collapsed. Is there a way to expand just one group from codebehind.
The second may not be possible. I need to do the same as above but only expand to a subset of the data. For instance have only the first 3 months show up. Even though I am grouping by year but have it expand further when clicked to include the whole year.
Any help would be appreciated.
Thanks,
Lonnie
One is I am grouping by year but I want the latest year to be expanded while the others stay collapsed. Is there a way to expand just one group from codebehind.
The second may not be possible. I need to do the same as above but only expand to a subset of the data. For instance have only the first 3 months show up. Even though I am grouping by year but have it expand further when clicked to include the whole year.
Any help would be appreciated.
Thanks,
Lonnie
<
telerik:RadGrid
runat
=
"server"
ID
=
"gvMacroeconomic_Overviews"
DataSourceID
=
"dsMacroeconomic_Overviews"
AutoGenerateColumns
=
"false"
>
<
MasterTableView
GroupsDefaultExpanded
=
"false"
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldName
=
"dataYear"
HeaderText
=
"Overview Year"
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"dataYear"
SortOrder
=
"Descending"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
Columns
>
<
telerik:GridTemplateColumn
DataField
=
"docTitle"
HeaderText
=
"Macroeconomic Overviews"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"hypDoc"
runat
=
"server"
NavigateUrl='<%# Eval("fileName", " a file location{0}") %>' Target="_blank"><%#Eval("docTitle")%></
asp:HyperLink
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>