-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Selection column on the right-hand side (non-RTL) #4862
Comments
I think the point is: would this be worth the extra parameter and more complex code? The answer should depend on how many people has this need. I'm not an expert in the container system, but isn't it possible to add a container programmatically? If it was, you could build your own solution without editing the library. Anyhow I'll leave this open so other people can let us know if this is needed. |
Yep, I totally agree (and acknowledged that in the original post in "unless (you) believe this to be a bad feature"). As for performing this programatically, it might be possible, but I suspect it would be pretty hacky. I believe enabling selection at all forces you to have the column, so my options there would be either roll my own multi-select and integrate it over the rows (bad idea given the number of little things this does), or set But again, I will concede that the vast majority of row selections are on the left side, so the added code-complexity of adding an argument to the function may not be worth it. In fact, if it were a significantly larger required change then I wouldn't even consider it. |
Hello @Robinson7D , I tooo want selection column on the right side. |
I convinced the designer for my project that (for us, like most others) it should be on the left side; and so I haven't followed this any further. |
@Robinson7D Hahaha . Ok but if u have any idea could you share the solution |
I vote to treat this column, and the treeview column, just like any other column and thus you can specify the order in columnDefs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. If you believe that this is still an issue in the latest version, feel free to re-open it. Thank you for your contributions. |
Is it possible to have the selection column on the right side, rather than the left? Everything else would be expected to be LTR, just the selection on the right.
I've looked into the code a bit and noticed that the column is added by calling:
uiGridCtrl.grid.addRowHeaderColumn(selectionRowHeaderDef);
And a snippet from
addRowHeaderColumn
includes:If it's not currently possible, this seems like it would be simple to fix, and I would be happy to provide a PR unless y'all believe this to be a bad feature or bad fix.
The way I would approach it would be to add a second arg to
addRowHeaderColumn
(either a Boolean/String that just represents the side, or a second Object that holds metadata for adding). After that theif (self.isRTL())
would also check if that's not defined as "left" (or true?). Finally an option would be checked in theuiGridSelectionService
precompile function, which can check an option inuiGridCtrl.grid.options
.As I mentioned, this is super simple to implement - all in, that's like 3 lines of code changed, only one added to support this.
Any thoughts? Would there be any interest in a PR?
The text was updated successfully, but these errors were encountered: