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

After setColumns selected class is not applied to new columns #892

Open
Crisfole opened this issue Mar 1, 2014 · 2 comments
Open

After setColumns selected class is not applied to new columns #892

Crisfole opened this issue Mar 1, 2014 · 2 comments

Comments

@Crisfole
Copy link

Crisfole commented Mar 1, 2014

Applies to grids with RowSelectionModel:

Steps to Reproduce:

  1. Open http://mleibman.github.io/SlickGrid/examples/example9-row-reordering.html
  2. Open Console
  3. Enter the following Commands:
    1. grid.setSelectedRows([0])
    2. cols = grid.getColumns()
    3. cols.push({ id: "TEST", field: 'name', name: "TEST" })
    4. grid.setColumns(cols)

Expected Output:

  • Whole selected row is highlighted, including new column.

Actual Output

  • Original columns in selected row are still highlighted. New column isn't.
@styfle
Copy link

styfle commented Mar 3, 2014

I had a similar problem. You need to call the following after adding columns:

grid.setSelectedRows(grid.getSelectedRows())

@Crisfole
Copy link
Author

Crisfole commented Mar 3, 2014

Yeah..I did that, but I think it should do it automatically

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

No branches or pull requests

2 participants