Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need rowId passed to fnOnCellUpdated #38

Closed
GoogleCodeExporter opened this issue Jun 13, 2015 · 1 comment
Closed

Need rowId passed to fnOnCellUpdated #38

GoogleCodeExporter opened this issue Jun 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create an editable datatable
2. Attempt to define a custom fnOnCellUpdated to modify the value of a cell 
other than the one just updated...
3. There is no easy way to do this because rowId is not passed to 
fnOnCellUpdated.

I've modified my local copy of jquery.dataTable.editable.js to fix this as 
follows:

Changed this line:
   settings.fnOnCellUpdated(status, sValue, settings);
to
   settings.fnOnCellUpdated(status, sValue, aPos[0], settings);

If you can tell me a way to do what I need to without making this change, that 
would be even better, but after hours on the web looking for examples of people 
doing this, I could find no easy way.

The reasoning in my specific case is this: I have a row that includes an Author 
name. The Author name should change to the current user when any editable cell 
in the row is changed.

Thanks,
-Dave

Original issue reported on code.google.com by jesus2d...@gmail.com on 1 Jul 2011 at 11:31

@GoogleCodeExporter
Copy link
Author

In the latest version of plugin is added both pos[0] and pos[2] row and column.

Original comment by joc...@gmail.com on 21 Aug 2011 at 3:30

  • Changed state: Fixed
  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant