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

Why doesn't the search result show in the Grid?

0 Answers 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 01 Mar 2012, 09:53 AM
Hi! I have created the following function to search for a row in the Grid making use of the filter columns method and an OR flag and assign that to a search button. So I put in the keyword and it searched through the entire list with paging. But after the search, it doesn't display the result on the grid screen. But there is a page one link at the bottom left corner of the grid. I will see the result when I click on that link. How do I make it default to be displayed on the grid without doing the above interaction? What did I miss?? Thanks!

function searchRecord(searchdata) {

        $("#gridReviewers").data("kendoGrid").dataSource.filter( {logic: "or",
                            filters: [  {field: "username", operator: "eq", value:searchdata.key },
                                    {field: "email", operator: "eq", value:searchdata.key },
                                    {field: "name", operator: "eq", value:searchdata.key } ] } );

        $("#gridReviewers").data("kendoGrid").dataSource.read();
        }

No answers yet. Maybe you can help?

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