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

Client Selection to Controller Action

1 Answer 15 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.
jfkrueger
Top achievements
Rank 1
jfkrueger asked on 23 May 2012, 11:06 PM
In the demos, the client selection of a row simply updates another grid on the same page. How would I cause it to go to a different controller action to display a different view once the row is selected?

Thanks!

1 Answer, 1 is accepted

Sort by
0
jfkrueger
Top achievements
Rank 1
answered on 24 May 2012, 03:07 PM
Update: This was pretty simple...

<script type="text/javascript">   
    var studentId;   
    function onRowSelected(e) {
        studentId = e.row.cells[0].innerHTML;
        document.location = "/Student/Details/" + studentId;
    }   
</script>






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