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

[Solved] how to move a row from one grid to another

0 Answers 5 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.
matthijs
Top achievements
Rank 1
matthijs asked on 26 May 2011, 02:48 PM
Hello,

I have two grids on one page and I need to be able to move a row from one grid to another by clicking a button. This way the user can choose what project(s) (s)he wants assigned out of a list of available projects. The user can either decide to save the changes or cancel them, so it should not be saved right away.

I'm trying to access the grids by javascript, and take out the contents of a row in one grid and putting them into the other grid. All I managed to achieve so far is being able to get the grid in javascript using
var grid = $("#AllProjectsGrid").data("tGrid");

I'm using ASP.NET MVC3 with ASPX views. The grids work with AJAX.

Any help or a nudge in the right direction would be apreciated.

Thanks in advance.
Tags
Grid
Asked by
matthijs
Top achievements
Rank 1
Share this question
or