Reputation: 253
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
Reputation: 40897
You can do it in the server sending an extra parameter:
transport.parameterMap
) transport.read.data
or you can do it in the client (browser) defining:
transport.read
as a function that load the data (likely via ajax).transport.read.url
function that calculates the URL of one or the other service.Upvotes: 2