I have a RadGrid which displays a list of lesson plans.
When I click "edit" the text appears in the RADeditor (see Atached Image)
When I click the "save" button the data is saved in the database but the grid isn't updated.
If I click "Refresh" to rebind the grid, all the items are displayed in the list except the one I was editing.
Do you have any idea what I need to do to ensure updates are shown in the list when I click "Save"?
The code for the grid and editor are displayed below
When I click "edit" the text appears in the RADeditor (see Atached Image)
When I click the "save" button the data is saved in the database but the grid isn't updated.
If I click "Refresh" to rebind the grid, all the items are displayed in the list except the one I was editing.
Do you have any idea what I need to do to ensure updates are shown in the list when I click "Save"?
The code for the grid and editor are displayed below
< <asp:Panel ID="ListViewPanel1" runat="server"> <asp:LinkButton ID="btnRebind" runat="server" CommandName="RebindGrid">Refresh Plan</asp:LinkButton> <telerik:RadGrid ID="AssessmentGrid" runat="server" ShowHeader="True" ShowFooter="true" BorderWidth="1" CellPadding="3" AutoGenerateColumns="false" Width="620px" Skin="WebBlue" AllowPaging="true" PageSize="10" AllowCustomPaging="true" VirtualItemCount="50" OnNeedDataSource="AssessmentGrid_NeedDataSource" OnItemCommand="OnSelectRecords" AllowAutomaticUpdates="true"> <PagerStyle Mode="NumericPages" /> <MasterTableView ShowFooter="true" DataKeyNames="assessment_plan_reference" EditMode="InPlace"> <RowIndicatorColumn Visible="true" UniqueName="RowIndicator"> <HeaderStyle Width="20px" BackColor="LightSkyBlue" /> </RowIndicatorColumn> <Columns> <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" ItemStyle-Width="50px" HeaderStyle-Width="50px" HeaderText="Edit" Text="Edit" /> <telerik:GridBoundColumn UniqueName="assessment_plan_reference" DataField="assessment_plan_reference" Visible="false" runat="server" ItemStyle-Width="50px" /> <telerik:GridBoundColumn UniqueName="week_number" DataField="week_number" HeaderText="Week" HeaderStyle-HorizontalAlign="left" HeaderStyle-Width="50px" ItemStyle-Width="40px" runat="server" ReadOnly="true" /> <telerik:GridBoundColumn UniqueName="content" DataField="content" ItemStyle-Wrap="true" HeaderText="Content" HeaderStyle-Width="270px" ItemStyle-Width="270px" ItemStyle-HorizontalAlign="left" runat="server" ReadOnly="true" /> <telerik:GridBoundColumn UniqueName="activity" DataField="activity" ItemStyle-Wrap="true" HeaderText="Activity" ItemStyle-Width="270px" ItemStyle-HorizontalAlign="left" runat="server" ReadOnly="true" /> </Columns> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="true" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="false"> </Scrolling> </ClientSettings> </telerik:RadGrid> </asp:Panel> </div> <div style="padding: 10px; float: left; border-width: 1px; border-style: solid; border-color: #33ff99;"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxGridLoadingPanel"> <telerik:RadTabStrip ID="RadTabStripEditor" runat="server" Skin="WebBlue" MultiPageID="RadMultiPage1" SelectedIndex="0" Align="Justify" ReorderTabsOnSelect="true" Width="400px" Orientation="HorizontalBottom" OnTabClick="RadTabStripEditor_TabClick"> <Tabs> <telerik:RadTab Text="Content"> </telerik:RadTab> <telerik:RadTab Text="Activity"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView" Width="700px" Height="1000px"> <telerik:RadPageView ID="RadPageView1" runat="server"> <table cellspacing="0" cellpadding="0"> <tr> <td style="vertical-align: top;"> <telerik:RadSpell ID="RadSpell1" runat="server" DictionaryPath="~/App_Data/RadSpell/" ControlToCheck="RadEditor1" Enabled="true" SupportedLanguages="en-US,English,fr-FR,French" ControlsToCheck="RadEditor1" DictionaryLanguage="en-US" /> <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" Height="515px" SpellCheckSettings-DictionaryPath="~/App_Data/RadSpell/"> <Modules> <telerik:EditorModule Name="RadEditorHtmlInspector" Visible="false" Enabled="true" /> </Modules> <Languages> <telerik:SpellCheckerLanguage Code="en-US" Title="English" /> </Languages> <Tools> <telerik:EditorToolGroup Tag="MainToolbar"> .... </telerik:EditorToolGroup> </Tools> <Content> </Content> <SpellCheckSettings DictionaryPath="~/App_Data/RadSpell/" /> </telerik:RadEditor> <asp:Button ID="btnSubmit" runat="server" Text="Save Plan" OnClick="btnSave_Click" /> <input type="hidden" name="EditedRef" runat="server" id="EditedRef" /> <input type="hidden" name="Editedcontent" runat="server" id="Editedcontent" /> <input type="hidden" name="currentdisplay" runat="server" id="currentdisplay" /> <br /> </td>