Madhu
Madhu

Reputation: 253

Kendo Autocomplete: datasource update dynamically

I have a working autocomplete text box fetching data from mysql server through a php file.

I would like to know how to change the datasource i.e the table depending on the user selection dynamically. Can the autocomplete requery a new table?

I am using the following tutorial http://www.kendoui.com/blogs/teamblog/posts/12-10-02/using_the_autocomplete_with_php.aspx

Upvotes: 1

Views: 2258

Answers (1)

OnaBai
OnaBai

Reputation: 40897

You can do it in the server sending an extra parameter:

  1. using transport.parameterMap)
  2. using transport.read.data

or you can do it in the client (browser) defining:

  1. transport.read as a function that load the data (likely via ajax).
  2. transport.read.url function that calculates the URL of one or the other service.

Upvotes: 2

Related Questions