-
Notifications
You must be signed in to change notification settings - Fork 877
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
How to disable first row selection #502
Comments
Show your code, by default the code doesn't selects the first row.. |
I'd say the opposite. In all examples the first row starts selected (unless you use I couldn't find any clue in the documentation on how to start my grid without selections. Here is my configuration code: Show Code{
editable: false,
noDataMessage: 'No data could be found here.',
actions: {
add: false,
edit: false,
delete: false
},
columns: {
titulo: {
title: 'Name'
}
}
} |
i have the same. |
(Messy) Workaround:
this.willSelect = 'none'; Explanation: So as of today you have three options:
|
I have the same needs. |
I was able to solve the problem of first click with this code made by me:
And to auto select the first row and populate the 'selected' class to well style the row:
The two code snippets together solve the problem that the self-selecting row does not have the selected class. I hope this small contribution will help someone. |
Hi to all, I've fixed this bug by my own and I've maded a pull request, if you're interested in. |
Hi ! I use the LocalDataSource to store my data and when it changes ( new data loaded or pagination events ), I set the selected row of the user. Here is the code I've made :
Hope it will help ^^ |
Solution: The userRowSelect event supposed to handle it. Worked and solved for me
|
This helps not triggering the initial select function. However, row one is still selected and thus will not trigger the userRowSelect function if the first row is clicked. |
this.table.grid.dataSet.select(-1); |
Just add selectedRowIndex: -1 to your table settings like this |
Humati's solution is perfect! |
Not working for me I tried I figured, for my use case, I do this:
And I had to do it after I load data in the source to make sure
|
Works perfectly, thanks! Weird it's not in the docs. |
By default, in all examples, it seems the first row always starts selected. How can I prevent that, making the selection occur only after an user clicked a row?
The text was updated successfully, but these errors were encountered: