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

  • Home
  • SEARCH
  • 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 8492117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:37:35+00:00 2026-06-10T22:37:35+00:00

I have a Kendo Grid that binds to an XML DataSource. How can I

  • 0

I have a Kendo Grid that binds to an XML DataSource. How can I have the DataSource change, based off the selection of a drop down list. Example:

//Create DataSource
    var gridDataSource = new kendo.data.DataSource({            
        transport: {
             read: [DropDownListValue] + ".xml",
             dataType: "xml"
        }
         });

    gridDataSource.read();

    function createGrid(){                  
            var grid = $("#grid").kendoGrid({
                dataSource: gridDataSource
                }...
             };

Where [DropDownListValue] is a drop down list on my form. In this example if [DropDownListValue] = 1, the datasource would be “1.xml”. If [DropDownListValue] = 2, then datasource would be “2.xml”.

  • 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-10T22:37:37+00:00Added an answer on June 10, 2026 at 10:37 pm

    I was able to achieve this by adding the following to the On Change event of my Drop Down list:

    //Assign drop down value to variable
    var dropDownListValue = $("#dropDown1").val();
    
    //Concatenate drop down variable to file name
    var dynamicUrl = dropDownListValue +".xml";
    
    //Assign grid to variable
    var grid = $("#grid").data("kendoGrid");
    
    //Set url property of the grid data source
    grid.dataSource.transport.options.read.url =dynamicUrl;
    
    //Read data source to update
    grid.dataSource.read();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Kendo UI for MVC batch edit grid that will not update
I have a Kendo UI DataSource that has 10 fields in it. I want
I have 2 questions on kendo combobox change event. On change event I want
I am using the Telerk Kendo UI grid that loads data remotely. The QueryString
I have created a kendo.data.dataSource with success, and I am able to bind it
I'm using Kendo UI Grid + DataSource and I'm facing some issues interacting with
I have used Kendo grid, I need to select a row without command columns.
I have a Kendo Grid for MVC and I have added a custom command
Have an app that can use tts to read text messages. It can also
I have a kendo ui grid and would like there to be an export

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.