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 9075589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:53:37+00:00 2026-06-16T18:53:37+00:00

I have the following code for a Kendo Drop Downlist which binds to a

  • 0

I have the following code for a Kendo Drop Downlist which binds to a REST end point

ddChange.kendoDropDownList({
    dataSource: {
        transport: {
            read: {
                url: "http://localhost/Project/MyMethod",
                dataType: "json"
            },
            parameterMap: function () {
                return {
                    source: data.source,
                    c: data.c,
                    ch: data.ch,
                };
            },
            schema: {
                data: function (response) {
                    return $.parseJSON(response);
                }
            }
        }
    },
    dataTextField: "name",
    dataValueField: "id",
    change: ddChange
});

Everything is seemingly working, except the end part. The call to http://localhost/Project/MyMethod?source=1&c=2&ch=3 is occuring, I can see it happening and returning correct data, however, the return $.parseJSON(response); from schema > data is not so my drop down just contains many undefined entries because I am left with a string that still needs to be parsed to an array.

Doing this works for the Kendo Grid, should it work for the drop down list? Am I missing something?

  • 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-16T18:53:38+00:00Added an answer on June 16, 2026 at 6:53 pm

    Schema isn´t part of the transport object but a property of the datasource.

    Can you try this?

    ddChange.kendoDropDownList({
        dataSource: {
            transport: {
                read: {
                    url: "http://localhost/Project/MyMethod",
                    dataType: "json"
                },
                parameterMap: function () {
                    return {
                        source: data.source,
                        c: data.c,
                        ch: data.ch,
                    };
                }
            },
            schema: {
                data: function (response) {
                    return response;
                }
            }
        },
        dataTextField: "name",
        dataValueField: "id",
        change: ddChange
    });
    

    Or if your only doing that on the schema you could just omit it.

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

Sidebar

Related Questions

I have following code, which executes on button press. At first it works as
I have following code which add BackButton on my view's navigation item's tabbar. It
I have following code: package main import ( fmt ) type Point struct {
I have following code which is running fine, but I want to know if
I have following code which works fine in iPhone application but in iPad I
i have following code in which, i am fetching the data from the sqlite
I have following Code Block Which I tried to optimize in the Optimized section
I have following code in initialization im = imread('Image02.tif'); figure(); imagesc(im); colormap(gray); [hImage hfig
I have following code <div id=main> <div id=one> </div> <div id=two> </div> <div id=three>
I have following code for updating user's column public void UpdateLastModifiedDate(string username) { using

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.