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

CellSelection and Row selection working together #419

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

terebikun
Copy link

I needed something like this for the next case:
A user is able to select the whole row and execute an action over that selected item
at the same time it capable of select cells to copy and paste the content (regardless how I am gonna solve that other functionality)
there are two different arrays when using CellSelection: selection and a new one called selectionRow.
in other cases selection should remain working as before

Create a new method called SelectFullRow which is a copy of Select
on Selection.js
this one receives an extra parameter that marks if the event is a click on
the selector checkbox or radio button so the grid can select the whole row
in the case when using CellSelection this object will hold the rows selected
when a selector plug in is in use. in this fashion we can tell between the
rows and cells selected.
an extra parameter for the grid.select call so it marks it's a selector the one 
triggering the event
@terebikun
Copy link
Author

first time requesting a pull, Any feedback is welcome

fixed some typos I made
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

Successfully merging this pull request may close these issues.

1 participant