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

RadComboBox selectedindexchanged

1 Answer 22 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
doug
Top achievements
Rank 2
doug asked on 12 Feb 2014, 05:00 PM
I have a RadScheduler with a DOCK type edit form.  I added a resource combobox that lists all our PO's.  I added a selectedindexchanged to this ddl so I can fill some textboxes based on the selectedValue.  My codebehind fires but I can't seem to reference the textbox fields....like Subject, description etc.

Code Behind example:
Protected Sub ddlPO_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs) Handles ddlPO.SelectedIndexChanged
'getting the ddlPO value works fine I just don't know the code needed to fill in the current textboxes like subject

' i'll lookup the extra info from another datasource
Dim objDetail As New ItemController
Dim objDetailInfo As AE_Fiber_InventoryDetailsInfo

objDetailInfo = objDetail.GetAE_Fiber_InventoryDetails(ddlPO.SelectedValue())
If Not objDetailInfo Is Nothing Then
'''this is where I want to update my current appointment fields and/or another dropdown
 ''' this needs to happen in Insert/Edit

'''.subject = objDetailInfo.Location

End If

Thanks
Doug



End Sub

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 17 Feb 2014, 09:25 AM
Hello,

Here is the code that helped me find the description TextBox in the SelectedIndexChanged event of RadComboBox:
Protected Sub UserDropDown_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
    DirectCast(DirectCast(sender, RadComboBox).Parent.FindControl("DescriptionText"), TextBox).Text = "newtext"
End Sub

Hope this will be helpful.


Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
doug
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Share this question
or