This is a migrated thread and some comments may be shown as answers.

Update Textbox in DetailView

1 Answer 62 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Clarke
Top achievements
Rank 1
Clarke asked on 14 May 2008, 06:24 PM
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.

Protected

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?

Thanks

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 17 May 2008, 02:25 PM
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,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ColorPicker
Asked by
Clarke
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or