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

Manually Initialize ComboBox list via javascript

1 Answer 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
nick
Top achievements
Rank 1
nick asked on 02 Dec 2015, 02:52 PM

For the life of me, I've been trying to search of a way to manually initialize a radcombobox. I'm able to initialize it via the ItemsRequested event like so

Public Sub IndustryAssigment_ItemsRequested(sender As Object, e As RadComboBoxItemsRequestedEventArgs)
 
Dim IlkIndustryTaxonomyTier3Source = New List(Of lkIndustryTaxonomyTier3)
IlkIndustryTaxonomyTier3Source = _IlkIndustryTaxonomyTier3Manager.List()
_view.GetrcbMacroOTHemscott3.DataTextField = "OTHemscott3"
_view.GetrcbMacroOTHemscott3.DataValueField = "OTHemscott3PK"
 
_view.GetrcbMacroOTHemscott3.DataSource = IlkIndustryTaxonomyTier3Source
_view.GetrcbMacroOTHemscott3.DataBind()
End Sub

But this is only called upon firing the said event. 

Is there a way to manually fire this event via javascript as this combobox is inside a radwindow that is being opened via another javascript call.

 Regards,

Nick

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 03 Dec 2015, 03:37 PM
Hi Nick,

If I understand correctly your requirement, you need to set the data to the RadComboBox, without opening the popup. If that is the case, this defeats the purpose of the LoadOnDemand functionality, so you could use another approach for binding the data:
Hope this helps.
 

Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ComboBox
Asked by
nick
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or