Hi,
I have the code bellow.
It seems that when I press save the controls: RadEditor and RadTextEditor with multiline cannot be updated after async postback.
They will loose the values (there is empty).
Also the RadEditor loose its features.
I want to have a RadAjaxMnaager into MasterPage (which is) and on other controls and pages to have proxy. But I have the problem with these controls
Thank you.
I have the code bellow.
It seems that when I press save the controls: RadEditor and RadTextEditor with multiline cannot be updated after async postback.
They will loose the values (there is empty).
Also the RadEditor loose its features.
I want to have a RadAjaxMnaager into MasterPage (which is) and on other controls and pages to have proxy. But I have the problem with these controls
Thank you.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomSectionEditForm.ascx.cs" Inherits="ModulesAdministration.Articles.__Components.CustomSectionEditForm" %> |
<%@ Register src="../../__Components/EditForm/CustomSectionBoxEditFormTemplate.ascx" tagname="CustomSectionBoxEditFormTemplate" tagprefix="SciDev" %> |
<%@ Register src="../../__Components/EditForm/CustomSectionEditFormCancel.ascx" tagname="CustomSectionEditFormCancel" tagprefix="SciDev" %> |
<%@ Register src="../../__Components/EditForm/CustomSectionEditFormSave.ascx" tagname="CustomSectionEditFormSave" tagprefix="SciDev" %> |
<%@ Register src="CustomSectionComboBoxTreeView.ascx" tagname="CustomSectionComboBoxTreeView" tagprefix="SciDev" %> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" > |
</telerik:RadAjaxLoadingPanel> |
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="PanelEditForm"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="PanelEditForm" LoadingPanelID="RadAjaxLoadingPanel" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManagerProxy> |
<asp:Panel ID="PanelEditForm" runat="server"> |
<SciDev:CustomSectionBoxEditFormTemplate ID="CustomSectionBoxEditFormTemplate" runat="server" |
HeaderText="Please edit the record bellow:" > |
<ContentTemplate> |
<asp:FormView ID="FormViewEdit" runat="server" DefaultMode="Edit" DataKeyNames="Id" |
DataSourceID="CustomObjectDataSourceEditDataSourceID" |
Width="100%"> |
<EditItemTemplate> |
<!-- <edit fields section> --> |
<div style="margin-top: 0px; margin-bottom: 0px;"> |
<asp:Label ID="LabelId" runat="server" Text='<%# Bind("Id") %>' visible="false" /> |
<asp:Label ID="LabelCultureCode" runat="server" Text='<%# Bind("CultureCode") %>' visible="false" /> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td style="width: 100%"> |
<!-- <Note> --> |
<div style="margin-top: 2px; margin-bottom: 24px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td align="left" valign="middle"> |
<SciDev:CustomLabel ID="CustomLabelNote" runat="server" |
Localizable="true" |
CssClass="WebsiteSkeleton_Font_TextNote" |
Text="Note: The fields marked with (*) are mandatory and the those marked with (@) are multilanguage !"/> |
</td> |
</tr> |
</table> |
</div> |
<!-- </Note> --> |
</td> |
</tr> |
<tr> |
<td style="width: 100%"> |
<!-- <Parent category> --> |
<div style="margin-top: 2px; margin-bottom: 8px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td align="left" valign="middle"> |
<%= Translator.Translate("Parent category")%> |
</td> |
<td align="left" valign="middle" style="width: 85%;"> |
<SciDev:CustomSectionComboBoxTreeView ID="CustomSectionComboBoxTreeView" runat="server" |
SelectedValue='<%# Bind("IdParent") %>' /> |
</td> |
</tr> |
</table> |
</div> |
<!-- </Parent category> --> |
</td> |
</tr> |
<tr> |
<td style="width: 100%"> |
<!-- <Author> --> |
<div style="margin-top: 2px; margin-bottom: 2px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td align="left" valign="middle"> |
<SciDev:CustomLabelDecorated ID="CustomLabelDecoratedAuthor" runat="server" |
Localizable="true" |
Mandatory="true" |
Multilanguage="true" |
Text="Author"/> |
</td> |
<td align="left" valign="middle" style="width: 85%;"> |
<SciDev:CustomRadTextBox ID="CustomRadTextBoxAuthor" runat="server" |
Width="256px" |
Mandatory="true" |
Text='<%# Bind("Author") %>' /> |
</td> |
</tr> |
</table> |
</div> |
<!-- </Author> --> |
</td> |
</tr> |
<tr> |
<td style="width: 100%"> |
<!-- <Subject> --> |
<div style="margin-top: 2px; margin-bottom: 2px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td align="left" valign="middle"> |
<SciDev:CustomLabelDecorated ID="CustomLabelDecoratedSubject" runat="server" |
Localizable="true" |
Mandatory="true" |
Multilanguage="true" |
Text="Subject"/> |
</td> |
<td align="left" valign="middle" style="width: 85%;"> |
<SciDev:CustomRadTextBox ID="CustomRadTextBoxSubject" runat="server" |
Width="512px" |
Height="32px" |
TextMode="MultiLine" |
Mandatory="true" |
Text='<%# Bind("Subject") %>' /> |
</td> |
</tr> |
</table> |
</div> |
<!-- </Subject> --> |
</td> |
</tr> |
<tr> |
<td style="width: 100%"> |
<!-- <Summary, Content, Description, Comments> --> |
<div style="margin-top: 2px; margin-bottom: 2px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td> |
<telerik:RadTabStrip ID="RadTabStrip" runat="server" SelectedIndex="0" Skin="Default" |
Width="100%" |
MultiPageID="RadMultiPageEdit"> |
<Tabs> |
<telerik:RadTab runat="server"> |
<TabTemplate> |
<SciDev:CustomLabelDecorated ID="CustomLabelDecoratedSummary" runat="server" |
Localizable="true" |
Mandatory="true" |
Multilanguage="true" |
Text="Summary"/> |
</TabTemplate> |
</telerik:RadTab> |
<telerik:RadTab runat="server"> |
<TabTemplate> |
<SciDev:CustomLabelDecorated ID="CustomLabelDecoratedContent" runat="server" |
Localizable="true" |
Mandatory="true" |
Multilanguage="true" |
Text="Content"/> |
</TabTemplate> |
</telerik:RadTab> |
<telerik:RadTab runat="server"> |
<TabTemplate> |
<SciDev:CustomLabelDecorated ID="CustomLabelDecoratedDescription" runat="server" |
Localizable="true" |
Multilanguage="true" |
Text="Description"/> |
</TabTemplate> |
</telerik:RadTab> |
<telerik:RadTab runat="server"> |
<TabTemplate> |
<SciDev:CustomLabelDecorated ID="CustomLabelDecoratedComments" runat="server" |
Localizable="true" |
Multilanguage="true" |
Text="Comments"/> |
</TabTemplate> |
</telerik:RadTab> |
</Tabs> |
</telerik:RadTabStrip> |
<telerik:RadMultiPage ID="RadMultiPageEdit" runat="server" Width="100%" |
SelectedIndex="0"> |
<telerik:RadPageView ID="RadPageViewSummary" runat="server"> |
<SciDev:CustomRadEditor ID="CustomRadEditorSummary" runat="server" |
Content='<%# Bind("Summary") %>' /> |
</telerik:RadPageView> |
<telerik:RadPageView ID="RadPageViewContent" runat="server"> |
<SciDev:CustomRadEditor ID="CustomRadEditorContent" runat="server" |
Content='<%# Bind("Content") %>' /> |
</telerik:RadPageView> |
<telerik:RadPageView ID="RadPageViewDescription" runat="server"> |
<SciDev:CustomRadEditor ID="CustomRadEditorDescription" runat="server" |
Content='<%# Bind("Description") %>' /> |
</telerik:RadPageView> |
<telerik:RadPageView ID="RadPageViewComments" runat="server"> |
<SciDev:CustomRadEditor ID="CustomRadEditorComments" runat="server" |
Content='<%# Bind("Comments") %>' /> |
</telerik:RadPageView> |
</telerik:RadMultiPage> |
</td> |
</tr> |
</table> |
</div> |
<!-- </Summary, Content, Description, Comments> --> |
</td> |
</tr> |
<tr> |
<td style="width: 100%"> |
<!-- <ActivationDateTime> --> |
<div style="margin-top: 8px; margin-bottom: 2px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td align="left" valign="middle"> |
<%= Translator.Translate("ActivationDateTime")%> |
</td> |
<td align="left" valign="middle" style="width: 85%;"> |
<SciDev:CustomRadDateTimePicker ID="CustomRadDateTimePicker" runat="server" |
Localizable="true" |
DbSelectedDate='<%# Bind("ActivationDateTime") %>' /> |
</td> |
</tr> |
</table> |
</div> |
<!-- </ActivationDateTime> --> |
</td> |
</tr> |
<tr> |
<td style="width: 100%"> |
<!-- <IsLocked> --> |
<div style="margin-top: 2px; margin-bottom: 2px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td align="left" valign="middle"> |
<%= Translator.Translate("IsLocked")%> |
</td> |
<td align="left" valign="middle" style="width: 85%;"> |
<asp:CheckBox ID="CheckBoxIsLocked" runat="server" Checked='<%# Bind("IsLocked") %>' /> |
</td> |
</tr> |
</table> |
</div> |
<!-- </IsLocked> --> |
</td> |
</tr> |
<tr> |
<td style="width: 100%"> |
<!-- <IsDeleted> --> |
<div style="margin-top: 2px; margin-bottom: 2px;"> |
<table cellpadding="0" cellspacing="0" width="100%"> |
<tr> |
<td align="left" valign="middle"> |
<%= Translator.Translate("IsDeleted")%> |
</td> |
<td align="left" valign="middle" style="width: 85%;"> |
<asp:CheckBox ID="CheckBoxIsDeleted" runat="server" Checked='<%# Bind("IsDeleted") %>' /> |
</td> |
</tr> |
</table> |
</div> |
<!-- </IsDeleted> --> |
</td> |
</tr> |
</table> |
</div> |
<!-- </edit fields section> --> |
<!-- <save cancel section> --> |
<div style="margin-top: 8px; margin-bottom: 8px;"> |
<table cellpadding="0" cellspacing="5"> |
<tr> |
<td> |
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 16px; margin-right: 16px; "> |
<SciDev:CustomSectionEditFormSave ID="CustomSectionEditFormSave" runat="server" |
OnSaveClick="CustomButtonSave_Click" /> |
</div> |
</td> |
<td> |
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 16px; margin-right: 16px; "> |
<SciDev:CustomSectionEditFormCancel ID="CustomSectionEditFormCancel" runat="server"/> |
</div> |
</td> |
</tr> |
</table> |
</div> |
<!-- </save cancel section> --> |
</EditItemTemplate> |
</asp:FormView> |
<SciDev:CustomObjectDataSourceEdit ID="CustomObjectDataSourceEdit" runat="server" |
DataSourceID="CustomObjectDataSourceEditDataSourceID" |
DataObjectTypeName="Project.PresentersTier.Presenters.InteractiveWorld.ArticlePresenter" |
TypeName="Project.PresentersTier.PresenterControllers.InteractiveWorld.ArticlePresenterCtrl" |
SelectMethodOnCreateMode="CreateDefault" |
InsertMethodOnCreateMode="MakePersistent" |
SelectMethodOnUpdateMode="GetByIdAndCultureCode" |
UpdateMethodOnUpdateMode="MakePersistent" |
OnValidation="CustomObjectDataSourceEdit_Validation" |
OnInserted="CustomObjectDataSourceEdit_Inserted" |
OnUpdated="CustomObjectDataSourceEdit_Updated" > |
</SciDev:CustomObjectDataSourceEdit> |
</ContentTemplate> |
</SciDev:CustomSectionBoxEditFormTemplate> |
</asp:Panel> |