datatables with input elements in row using ajax

datatables with input elements in row using ajax

manoharsolanki123manoharsolanki123 Posts: 8Questions: 0Answers: 0
edited March 2011 in General
Hey Allan,
Greetings.

1. I have datatable with dropdowns and texts elements in it. viz [DEPARTMENT, EMPLOYEE, PROJECTS,...]
2. The first dropdowns is a list of departments which should be populated by an Array[CS, AERO, CIVIL,..]
3. Based on selection of department, the employee dropdown should be populated for that department from database.
4. And on employee selection, the list of projects for that employee is populated in the project dropdown from database.
5. Next is that, I need to add rows(addRow) with defaulted to 1 above and similar to 2,3 & 4

please advise on how do I go about. I spent almost 2 days searching on the forum but void.

Though I can achieve this without using datatables using ajax, but datatables gives professional and clean look and feel.
I tried datatables but it does not allow me to set values in a column and also fnAddData doesnt allows me to populate department dropdown.
Also I tried with fnUpdate(), but this only takes string as element data, but my data is a dropdown which comes from database.

As usual waiting for yur quick reply.

Regards,
Manohar

Replies

This discussion has been closed.