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

filter a grid

3 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nebras
Top achievements
Rank 1
Nebras asked on 03 Mar 2011, 12:22 PM
I want to apply grid filtration by clicking a button

the click handler is :
function applySearch() {
          var patientsGrid = $('#Patient').data('tGrid');
          patientsGrid.rebind({ 'Mobile Phone': '26742223' });
      }

where 'Mobile Phone' is the grid column
but it gives this error
Microsoft JScript runtime error: 'this.ajax.selectUrl' is null or not an object

any help , please ?

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Mar 2011, 01:41 PM
Hello Nebras ,

 
This can occur if your grid is not ajax bound. The rebind  JavaScript method works only for ajax-bound grids.

Regards,
Atanas Korchev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Nebras
Top achievements
Rank 1
answered on 03 Mar 2011, 02:32 PM
Ok, How to apply filtration with server binding?
0
Atanas Korchev
Telerik team
answered on 03 Mar 2011, 02:37 PM
Hello Nebras ,

You need to use the server API to apply the filter on the server side. Check this example for further reference. 

Regards,
Atanas Korchev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Nebras
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Nebras
Top achievements
Rank 1
Share this question
or