ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How disable deselection for selected row of grid
Title:
B
I
{code}
?
From this demo http://demo.aspnetawesome.com/GridDemo/Selection when I click at selected row again , I don't want to deselect, I want the row to stay selected. How can I do this ?
Save Changes
Cancel
nutfergie
asked at 17 Oct 2017
there is no feature like this, you would have to disable the grid built-in selection, and create your own, or maybe handle the click of `.awe-row.awe-selected` and stop event propagation as a side note, what should the user do if he clicks a row by mistake and he can't deselect it
at 17 Oct 2017
Omu
Now I decide not use Selectable of grid I create JS my own but I can't get row data of clicked row
at 18 Oct 2017
nutfergie
var $grid_A =$("#AgencysGrid"); $grid_A.on("click", ".awe-row", function () { var row = $(this); var model = row.data('model'); // model.id, model.agency_id });
at 18 Oct 2017
Omu
thx again and again
at 18 Oct 2017
nutfergie
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK