I have a RadGrid in which i am using the RadEditor, my problem is that the other fields will update in my database but the radEditor content does not populate my update parameter. Am i using the wrong syntax?
<
telerik:RadGrid
ID
=
"gvRadGrid_Careers"
runat
=
"server"
DataSourceID
=
"ojDsCareers"
GridLines
=
"None"
AllowPaging
=
"True"
AllowSorting
=
"True"
AllowAutomaticUpdates
=
"True"
AllowAutomaticDeletes
=
"True"
AutoGenerateColumns
=
"False"
AllowAutomaticInserts
=
"True"
>
<
mastertableview
datasourceid
=
"ojDsCareers"
datakeynames
=
"CareerID"
editmode
=
"PopUp"
commanditemdisplay
=
"Top"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
addnewrecordtext
=
"Add Job"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridEditCommandColumn
EditImageUrl
=
"/admin/images/icons/Edit.gif"
ButtonType
=
"ImageButton"
HeaderText
=
"Edit"
UniqueName
=
"EditCommandColumn"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
DataField
=
"JobTitle"
HeaderText
=
"Job Title"
UniqueName
=
"JobTitle"
>
</
telerik:GridBoundColumn
>
<
telerik:GridHTMLEditorColumn
DataField
=
"JobDescription"
HeaderText
=
"Job Description"
UniqueName
=
"JobDescription"
>
</
telerik:GridHTMLEditorColumn
>
<
telerik:GridBoundColumn
DataField
=
"AddedBy"
HeaderText
=
"Added By"
UniqueName
=
"AddedBy"
ReadOnly
=
"True"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"DateModified"
HeaderText
=
"Last Modified"
UniqueName
=
"DateModified"
ReadOnly
=
"True"
>
<
ItemStyle
HorizontalAlign
=
"Right"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete this job?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
Text
=
"Delete"
UniqueName
=
"DeleteColumn"
ImageUrl
=
"/admin/images/icons/Delete.gif"
HeaderText
=
"Delete"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridButtonColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
InsertCaption
=
"Add new job posting"
CaptionFormatString
=
"Update Job"
CaptionDataField
=
"CareerID"
PopUpSettings-Modal
=
"True"
PopUpSettings-Width
=
"500px"
EditColumn-InsertImageUrl
=
"Admin/images/icons/AddRecord.gif"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
>
</
EditColumn
>
<
FormTemplate
>
<
div
id
=
"adminPopUp"
align
=
"center"
>
<
table
cellpadding
=
"2"
cellspacing
=
"2"
>
<
tr
>
<
td
>
<
p
>
Job Title</
p
>
<
telerik:RadTextBox
ID
=
"RadTextBox1"
runat
=
"server"
Text='<%# Bind( "JobTitle") %>'
Width="450px">
</
telerik:RadTextBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
p
>
Job Description</
p
>
<
telerik:RadEditor
ID
=
"RadEditor1"
runat
=
"server"
ToolsFile
=
"/Admin/includes/editortools/Simple.xml"
Width
=
"450px"
Height
=
"300px"
Editable
=
"True"
Html='<%#DataBinder.Eval(Container.DataItem, "JobDescription")%>'>
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"~/Admin/css/EditorCss.css"
/>
</
CssFiles
>
</
telerik:RadEditor
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
asp:Button
ID
=
"Button1"
Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>
</
asp:Button
>
<
asp:Button
ID
=
"Button2"
Text
=
"Cancel"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
>
</
asp:Button
>
</
td
>
</
tr
>
</
table
>
</
div
>
<
br
/>
</
FormTemplate
>
<
PopUpSettings
Modal
=
"True"
Width
=
"500px"
></
PopUpSettings
>
</
EditFormSettings
>
</
mastertableview
>
</
telerik:RadGrid
>
<
asp:ObjectDataSource
ID
=
"ojDsCareers"
runat
=
"server"
SelectMethod
=
"GetJobsList"
TypeName
=
"DouglasEmmett.clsCareers"
DeleteMethod
=
"DeleteJob"
UpdateMethod
=
"UpdateJob"
>
<
DeleteParameters
>
<
asp:ControlParameter
ControlID
=
"gvRadGrid_Careers"
Name
=
"CareerID"
PropertyName
=
"SelectedValue"
Type
=
"Int32"
/>
</
DeleteParameters
>
<
UpdateParameters
>
<
asp:ControlParameter
ControlID
=
"gvRadGrid_Careers"
PropertyName
=
"SelectedValue"
Name
=
"CareerID"
Type
=
"Int32"
/>
<
asp:ControlParameter
ControlID
=
"gvRadGrid_Careers"
PropertyName
=
"SelectedValue"
Name
=
"JobTitle"
Type
=
"String"
/>
<
asp:ControlParameter
ControlID
=
"gvRadGrid_Careers"
PropertyName
=
"SelectedValue"
Name
=
"JobDescription"
Type
=
"String"
/>
<
asp:SessionParameter
DefaultValue
=
"Web Test"
Name
=
"Addedby"
SessionField
=
"AdminUser"
Type
=
"String"
/>
</
UpdateParameters
>
</
asp:ObjectDataSource
>