This is a migrated thread and some comments may be shown as answers.

Need to include and retrieve some more data from JSON datasource

0 Answers 68 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Andrés
Top achievements
Rank 1
Andrés asked on 12 May 2012, 10:57 PM
I need to put on a kendo grid toolbar some variable text (defined at the server), and I guess I can send that text as an addition to the JSON string, but I cannot
  1. figure exactly how to code that, 
  2. reflect it in the schema and/or model and
  3. retrieve the text for use on the toolbar.

So far, I have coded like this:

            schema: {
                data: "data",
                model: {
                    msg: "message",  
                    fields: { ... }


The JSON response is served like so:

{"data":[{"Name":"ABC",...,"Update_date":"06\/03\/2012"}], 
 "message":"This is some variable text to be displayed on the toolbar"}

Thanks for any ideas

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Andrés
Top achievements
Rank 1
Share this question
or