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

Listview datasource

1 Answer 65 Views
ListView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 27 Mar 2014, 05:20 PM
I need to populate a data-source with a post to serverside script the data is returned in JSON format the parameters are similar to the post below:-

$.post("../Services/MeterType.aspx",
                {
                    PC: $('#PC').val(),
                    MTC: $('#MTC').val(),
                    LLF: $('#LLF').val(),
                    REC: $('#REC').val()
                }
                 });


The query is to large to perform without these parameters

Please Help also I know there is very little info but as its quite a simple thing I am looking to do hopefully it should be enough.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 01 Apr 2014, 12:45 PM
Hi David,

First of all let me apologize for the late reply. There was a problem in our internal system with this particular thread which is why the answer got delayed.

If I understood correctly you are wondering how to pass additional data with the DataSource request. In order to achieve that you should use the parameterMap function of the transport.
Please use this function to add parameters to the DataSource's ajax requests.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ListView
Asked by
David
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or