When the user clicks edit on a line and it pops up my FormTemplate, I want to set the tooltip on a textbox, based on its value. In the ItemCreated event, I have the following...
If (TypeOf e.Item Is GridEditFormItem) AndAlso (e.Item.IsInEditMode) Then |
Dim item As GridEditFormItem = CType(e.Item, GridEditFormItem) |
Dim txtID As RadTextBox = CType(item.FindControl("txtID"), RadTextBox) |
txtID.ToolTip = LookUpDesc(txtID.Text) |
End If |
The LookUpDesc function queries our DB to find the value. It would work, but txtID.Text has no value in this event, even though it does once the FormTemplate is up. Is there a different event I should use where txtID.Text would evaluate to the value? Or how can I make this work?