I bind data programatically then the grid is first shown and do not need to do it again. Viewstate is enabled for this grid control.
Any ideas?
------------------------------------------
protected
void rgdGrid_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
protected
override void OnPreRender(EventArgs e)
------------------------------------------
<
telerik:RadGrid ID="rgdGrid" runat="server" AutoGenerateColumns="False" Culture="en-GB"
ShowStatusBar="True" ShowFooter="False" OnUpdateCommand="rgdGrid_UpdateCommand"
OnEditCommand="rgdGrid_EditCommand"
OnItemDataBound="rgdGrid_ItemDataBound" OnCancelCommand="rgdGrid_CancelCommand"
AllowSorting="True" GroupingEnabled="False" OnSortCommand="rgdGrid_SortCommand"
Width="100%" ShowGroupPanel="True" Skin="Web20" MasterTableView-CellPadding="0"
MasterTableView-CellSpacing="0" CellPadding="0"
onitemcommand="rgdGrid_ItemCommand">
<MasterTableView EnableHeaderContextMenu="true" EditMode="InPlace" ItemStyle-Wrap="False"
CommandItemDisplay="TopAndBottom" >
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
</ExpandCollapseColumn>
<Columns>
-----------------------------------------------------
<
CommandItemTemplate>
<p style="text-align: right;">
<asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditAll" Visible="True"
Text="Edit" />
<asp:LinkButton ID="btnUpdate" runat="server" CommandName="UpdateAll" Visible="True"
Text="Update" />
</p>
</CommandItemTemplate>