Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:35:03+00:00 2026-06-15T12:35:03+00:00

I want to bind a list of values to a kendoCombobox from dataBase through

  • 0

I want to bind a list of values to a kendoCombobox from dataBase through webservices.

Here is the code :

<select id = "CbxArea" style="width:200px">
</select>

$(document).ready(function () {
    var cmbArea = $("#CbxArea"),
        area;        
    cmbArea.kendoComboBox();  

    $.ajax({
        type: "POST",
        contentType: "application/json; charset=utf-8",
        url: "FlashReportWebService.asmx/GetAreaNames",
        dataType: "json",
        success: function (data) {
            for (i = 0; i < data.d.length; i++) {
                area = data.d[i].AreaName;
                cmbArea.append($("<option> </option>").val(area).html(area));
            }
        }
    });
});

List of values are coming successfully, but the problem is that only the 1st value is showing in combobox, remaining values are not displaying (I have 16 values in list).

If i write cmbArea; instead of cmbArea.kendoComboBox(); total 16 values are displaying in comboBox. Is there any problem in kendoComboBox for binding values from .asmx page?

I must display values in kendoComboBox only.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:35:03+00:00Added an answer on June 15, 2026 at 12:35 pm

    As I replied in the Kendo forums the Kendo Combobox will not show <option> elements appended to the original <select>. You need to initialise the combobox after the options are created:

    $(document).ready(function () {
        var cmbArea = $("#CbxArea"),
            area;        
    
    
        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: "FlashReportWebService.asmx/GetAreaNames",
            dataType: "json",
            success: function (data) {
                for (i = 0; i < data.d.length; i++) {
                    area = data.d[i].AreaName;
                    cmbArea.append($("<option> </option>").val(area).html(area));
    
    
                }
    
                cmbArea.kendoComboBox(); 
            }
        });
    });
    

    Using the Kendo DataSource is also an option and would reduce your code quite a bit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written the code to get the values from the database and bind
I populate web form with dynamic list of exams from database. I want user
I want to bind columns in a DataGridView to pull values from two different
I have the following sample code which gets a list of values from a
Ok, the issue is like, I want to bind list view on client side.
I want to bind my ListView control to a generic list of objects? I
In WPF I have a collection of bool? values and I want to bind
I have a template in my section. I want to bind the Width of
I am retrieving a string value (domain list) from an HTTP service, I want
I want to bind a function to an event but I want to change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.