Click here to Skip to main content
11,790,613 members (62,514 online)
Rate this: bad
Please Sign up or sign in to vote.

I'm working on MVC3, Entity framework architecture. I use dataTable.js to assign an
HTML table and display data as rows-columns with expand/collapse on the rows.

Using fnAddTr plug-in, I add a child row, on click of '+' sign of parent. The parent as well as the child row has 14 columns that are checkboxes and 1 column is a read-only display. One button - 'save'
to edit and save all the checkbox values at once

The 2 things that I'am stuck with is
1.) retain the values of all the checkbox on collapse and expand before button click 'save'.
2.) fnAddTr adds rows at the bottom of all parents. But, what I need is to add the child rows below every parent row. Please find below the format in which i need to see.
Can someone help out in achieving the above 2 items

Sign D/C col1 col2 col4 col5 col6
(-) Dept1 X X X X X
Cls1 X X X X X
Posted 25-Sep-12 18:58pm
Edited 25-Sep-12 21:07pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

Advertise | Privacy | Mobile
Web03 | 2.8.1509028.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100