Help! I can successfully open, close and rebind the Grid after the RadWindow is opened and closed but the group by expressions do not appear until I refresh the page.
How do I get the rebind to include the grid group by fields? The online demos don't mention it and I can't find any solutions...
Thanks.
JavaScript...
ASPX...
How do I get the rebind to include the grid group by fields? The online demos don't mention it and I can't find any solutions...
Thanks.
JavaScript...
<telerik:RadCodeBlock ID=
"RadCodeBlock1"
runat=
"server"
>
<script type=
"text/javascript"
>
function
ShowInsertForm() {
window.radopen(
"newrp.aspx"
,
"RW_RP"
);
return
false
;
}
function
refreshGrid(arg) {
if
(!arg) {
$find(
"<%= RadAjaxManager1.ClientID %>"
).ajaxRequest(
"Rebind"
);
}
else
{
$find(
"<%= RadAjaxManager1.ClientID %>"
).ajaxRequest(
"RebindAndNavigate"
);
}
}
function
RowDblClick(sender, eventArgs) {
window.radopen(
"newrp.aspx?nbid="
+ eventArgs.getDataKeyValue(
"nbid"
) +
"&cocc="
+ eventArgs.getDataKeyValue(
"cocc"
) +
"&tm="
+ eventArgs.getDataKeyValue(
"teammate"
) +
"&dot7="
+ eventArgs.getDataKeyValue(
"dot7"
),
"RW_RP"
);
}
</script>
</telerik:RadCodeBlock>
ASPX...
<
telerik:RadGrid
ID
=
"RG_RP"
runat
=
"server"
CellSpacing
=
"0"
GridLines
=
"None"
style
=
"margin:10px"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
HeaderStyle-HorizontalAlign
=
"Center"
ItemStyle-HorizontalAlign
=
"Center"
AlternatingItemStyle-HorizontalAlign
=
"Center"
CommandItemDisplay
=
"Top"
ClientDataKeyNames
=
"nbid, cocc, teammate, dot7"
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldName
=
"Teammate"
FieldAlias
=
"Teammate"
HeaderValueSeparator
=
": "
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"Teammate"
FieldAlias
=
"Teammate"
SortOrder
=
"Ascending"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
Columns
>
... SOME COLUMNS ...
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
></
EditColumn
>
</
EditFormSettings
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
AddNewRecordText
=
"Add new preferences"
></
CommandItemSettings
>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
PagerStyle
PageSizeControlType
=
"RadComboBox"
></
PagerStyle
>
<
CommandItemTemplate
>
<
div
style
=
"padding:5px 0px 5px 10px"
>Double click a row to add a preference for that Teammate</
div
>
</
CommandItemTemplate
>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowDblClick
=
"RowDblClick"
/>
</
ClientSettings
>
<
PagerStyle
PageSizeControlType
=
"RadComboBox"
></
PagerStyle
>
<
FilterMenu
EnableImageSprites
=
"False"
></
FilterMenu
>
</
telerik:RadGrid
>