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

[Solved] Modified the GridSate of a Telerik MVC Grid using javascript

0 Answers 90 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.
Ronald
Top achievements
Rank 1
Ronald asked on 26 Apr 2011, 09:36 PM
Hi,

I'm using a Telerik MVC Grid bind to a web service. Since I cannot pass parameters to the web service, at least I don't know how to do it. I'm think that since the grid already pass the GridState as parameter I can modified the GridState.filter to pass the values I want to.

Here is the code I have, by the way it's not working.
function Grid_onRowSelected(e) {
 
        var AccessGrid = $('#Access').data('tGrid');
        empID = e.row.cells[0].innerHTML;
        //error
        var st = new Telerik.Web.Mvc.GridState();
        st.set_Filter(empID);
        //
        AccessGrid.rebind({
        });
    }

Do I need to declare the Grid as filterable?

Any idea on how to achieve this.

Thanks..
Tags
Grid
Asked by
Ronald
Top achievements
Rank 1
Share this question
or