Get value of Rad Editor inside User Control

2 posts, 0 answers
  1. Suzan
    Suzan avatar
    17 posts
    Member since:
    Feb 2011

    Posted 15 Aug 2017 Link to this post

    I am trying to get the value of a Radeditor field in a User Control when updating to store it in my database table

    In the update command of my grid I have tried using both of these commands

     

    Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)

    Dim MyUserControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)

     

    Dim editorcomment As RadEditor
    editorcomment = CType(MyUserControl.FindControl("Comment"), RadEditor)
    editorcomment = editedItem.FindControl("Comment")

    Neither of these commands brings back any data in editorcomment.Content

    Please can you give me some code which will retrieve the Content of the RadEditor field

     

     

  2. Suzan
    Suzan avatar
    17 posts
    Member since:
    Feb 2011

    Posted 16 Aug 2017 in reply to Suzan Link to this post

    Further information

    I can get the value of other controls on the page. It is just the RadEditor that I am having problems with

    For example

    I can get the value of this drop down list

    assess_grade = CType(MyUserControl.FindControl("ddlassessgrade"), RadDropDownList).SelectedItem.Value

    Is there something extra I have to do for a RadEditor control

     

Back to Top