ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Toggle Button Checkbox in Grid is only visible when Edit Button is triggered
Title:
B
I
{code}
?
in my Grid the Toggle Checkbox is not Visible until i push the Edit Button. Is it possible to change that? I want to see the Toggle Button and its state when grid is loaded. new Column { Bind = "SomeColumn", Header = "SomeHeader", Width = 50 } .Mod(o => o.Inline(@Html.Awe().CheckBox("chk").Otoggl(x => x.Width("7em").Yes("Yes").No("No")).Value(false))), new Column { ClientFormat = GridUtils.InlineEditFormat(), Width = 55 }.Mod(o => o.Nohide())
Save Changes
Cancel
c4
asked at 23 Apr 2019
Answers
B
I
{code}
?
the editor you specify inside the `.Inline( )` method is only visible when the row is in inline mode, for the rest the cell will display what you specified in Bind/ClientFormat/ClientFormatFunc you can see an example of a toggle button (with row not in inline mode) here: https://demo.aspnetawesome.com/GridDemo/CustomFormat
Save Changes
Cancel
Omu
answered at 23 Apr 2019
Allright, thank you Sir.
at 23 Apr 2019
c4
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