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

column move and current column reading (renderer/editing) #367

Closed
matkus opened this issue Jan 23, 2013 · 4 comments
Closed

column move and current column reading (renderer/editing) #367

matkus opened this issue Jan 23, 2013 · 4 comments

Comments

@matkus
Copy link

matkus commented Jan 23, 2013

Hi.

After moving columns there are some problems.
Looks like there is problem to get value of current cell/column.

http://jsfiddle.net/5cY9M/

in this example try to move columns. Now there i see at least 2 problems:

  1. if after moving column i try to edit cell in moved column, after editing i get value of cell, that was here before. For example, if you move column B to place of C (you get col order ACBDE) and you try to edit cell C2, in input you get value of B2, and if you try to edit B2, you get value of C2.

  2. How do i get values of cells in same column? Like here, in first row i have my own column titles, and i want columns named "price" to be rendered red, if the price is NaN or negative number.

@frvade
Copy link

frvade commented Jan 25, 2013

+1 Would be great if onChange would trigger on column moving.

@matkus
Copy link
Author

matkus commented Mar 7, 2013

In 0.8.6 we have bugfix:
cell editor was using a wrong cell value if column order was manually changed

This fixes problem 1 of my post, but still i don't know how to read data of current column (what is current column number?) Check sam fiddle, as previously. it still doesn't work like it shoud.

@setthase
Copy link

Move column doesn't change your data array. If you want to get title of your columns you must get it from rendered table. Here you got working example: http://jsfiddle.net/5cY9M/2/

@setthase
Copy link

setthase commented Jul 2, 2013

We don't get response after 2 months. So I assume that this is no longer an issue for you. Thanks for using Handsontable

@setthase setthase closed this as completed Jul 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants