Manually Initialize ComboBox list via javascript

2 posts, 1 answers
  1. nick
    nick avatar
    3 posts
    Member since:
    Sep 2011

    Posted 02 Dec 2015 Link to this post

    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
    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.



  2. Answer
    Konstantin Dikov
    Konstantin Dikov avatar
    2086 posts

    Posted 03 Dec 2015 Link to this post

    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.

    Konstantin Dikov
    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
Back to Top