ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid selection, make some grid rows unselectable
Title:
B
I
{code}
?
Having a grid with Selection, how do I make some grid rows non selectable I'm setting selectable like this: .Selectable(SelectionType.Multicheck) In the grid Model I have a boolean property `Live`, and I want rows with `Live = false` to be non selectable
Save Changes
Cancel
nutfergie
asked at 17 Jan 2018
Answers
B
I
{code}
?
if you need to make certain rows unselectable you can give them the class `awe-nonselect` and for that you can use `Html.Awe().Grid("Grid1").RowClassClientFormat(".RowClass")` and inside the `Map` function have Map = o => new { ... RowClass = o.Live > ? "" : "awe-nonselect" },
Save Changes
Cancel
Omu
answered at 17 Jan 2018
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