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

[Solved] Adding and removing rows using client side script

1 Answer 116 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.
Balakrishna
Top achievements
Rank 1
Balakrishna asked on 28 Sep 2011, 01:11 AM
Hi,

Can some one tell me how to achieve the below mentioned functionalities:

1. Add and remove rows to Grid through client side javascript.  It should not call to a controller method, for every insert/delete operation. Addition/Deletion should happen at the client side.
2. On click of submit button in the form, all the rows that are present in all the Grids (i have 3 grids on the page), should get posted to some controller's Action method., something like :

public ActionResult Persist(IList<Customer> businessOwners,IList<customer> FAAs,IList<Customer> users)
{
_repository.Save(businessOwners,FAAs,users);
}

Is it possible ?

Regards,
Balakrishna.

1 Answer, 1 is accepted

Sort by
0
Balakrishna
Top achievements
Rank 1
answered on 29 Sep 2011, 07:26 PM
Hi,

Can someone please suggest, if it is possible ?

Also I would like to do client side filtering and paging using javascript in addition to adding/removing records from the grid.

Also for filtering can we have text box present for every column ? User can type in the text box and the records should get filtered based on the text provided.


Thanks,
Balakrishna.
Tags
Grid
Asked by
Balakrishna
Top achievements
Rank 1
Answers by
Balakrishna
Top achievements
Rank 1
Share this question
or