ComboBox null error

2 posts, 0 answers
  1. Gary
    Gary avatar
    4 posts
    Member since:
    Oct 2014

    Posted 30 Dec 2015 Link to this post


    I am working through some Telerik sample code and having some errors. I am trying to understand how it works in order to troubleshoot the problem.

    Specifically, I am using a ComboBox widget with an id value (let's call it comboID) which is set in the .Name property.


     Now this code from the sample:

    $(comboID).each(function () {



    I think adds a new combo box. What does the ("script") keyword signify?

    Now I need to find the ComboBox and update the selected item. 


    But get undefined for the kendoComboBox. I'm not sure what this line does. I assume we are looking into the DOM but what is the type that is returned?

    Thanks for your help. Just trying to understand.

  2. Nencho
    Nencho avatar
    1646 posts

    Posted 04 Jan 2016 Link to this post

    Hello Gary,

    The usage of the script tag that you are referring to, needs to be implemented in scenarios where you have the widgets (combobox in your case), nested in the Grid's client column template. The code-snippet that you have demonstrated is needed so that the widgets could be properly initialized in this scenario.

    This implementation:


    should be called in the Grid's dataBound event as demonstrated in the help article below:

    Once being able to initialize the widgets, then you will be able to set the preferable selected item.

    Hope this information helps.

    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