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

grid and data additional parameter

0 Answers 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin Sura
Top achievements
Rank 1
Martin Sura asked on 06 Sep 2012, 04:29 PM
Hello,

I have problem with Telerik Grid and additional parameter in datasource.

html :

<input id="searchOrder" type="text" name="searchOrder" />


js:
transport : {
     read : {
         type: 'post',
         dataType: 'json',
         url: dataUrl,
     },
     data: {
         search: $('#searchOrder').val()
transport : {
     read : {
         type: 'post',
         dataType: 'json',
         url: dataUrl,
     },
     data: {
         search: $('#searchOrder').val() // not works
         search: 'test' // this works
 
     }
 },                   
     }
 },...


When i use jquery selector, search parametr is always empty.

Is here any workaround?

Thanks Martin

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Martin Sura
Top achievements
Rank 1
Share this question
or