Make DataTable Cells Permanently Editable
Make DataTable Cells Permanently Editable
I am using DataTable to create a table that requires some cells to be editable. The JEditable plugin doesn't seem to fit my needs as I want the cells to look editable at all times, not just after being clicked. I tried to accomplish this goal by just using html text boxes, but I cannot access some of these text boxes if there are multiple pages because they are no longer loaded. I then tried to fix this problem by using fnGetData() and regex to get what the value= for the string held in the list of strings returned by fnGetData(), but it seems like that string does not get updated when the text box value is updated.
Sorry if my write up is a little confusing, any help would be greatly appreciated.
Sorry if my write up is a little confusing, any help would be greatly appreciated.
This discussion has been closed.
Replies
obviously this doesn't answer the question of getting data not currently on the page. I'm a little curious why you need off-page data, and also which initialization method you're using (html, array, ajax, server side).
I need all of the paginated pages because my application requires summing all of the values in the editable fields and showing what the current total is at all times. I am also using JSP to loop through my models and storing them into a normal HTML table as my initial data.
I will look into fnRender and fnRowCallback to see if they lead me in the right direction.
If you are using bServerSide data, you can include summary info in the JSON response and thus get a dynamic summary, including filtering.
Thanks for the advice fbas.