Update Textbox in DetailView

2 posts, 0 answers
  1. Clarke
    Clarke avatar
    4 posts
    Member since:
    Mar 2008

    Posted 14 May 2008 Link to this post

    I am trying to update a textbox in a detailview edit template using VB code-behind. It will not chage or update the textbox.
    Here is my Code.


    Sub RadColorPicker1_ColorChanged(ByVal sender As Object, ByVal e As System.EventArgs)

    Dim Convertidor As New System.Drawing.ColorConverter

    Dim ColorPick As Telerik.Web.UI.RadColorPicker = DetailsView1.FindControl("RadColorPicker1")

    Dim txtSchedColor As TextBox = DetailsView1.FindControl("TextBox9")

    txtSchedColor.Text = Convertidor.ConvertToString(ColorPick.SelectedColor)

    End Sub

    I reference this sub in the source with OnColorChange
    What am I doing wrong?


  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 17 May 2008 Link to this post

    Hello Clarke,

    Can you please make sure that the RadColorPicker's AutoPostBack property is set to "true"? This could be the reason for this problem.

    In case this does not help. please open a new support ticket and send me a sample, fully runnable project.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top