ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid Column Nohide mod on server-side?
Title:
B
I
{code}
?
In our application, all the grid columns are defined dynamically server side. How can the Nohide() mod be added on the server side? This link provides answer to columns defined on the client side. https://www.aspnetawesome.com/forum/question/72180/how-to-remove-a-column-from-the-options-to-hide-and-show-columns-in-the-grid
Save Changes
Cancel
Ren
asked at 14 May 2022
you are likely setting `Nohide` on the server side, view code is server side, and if you're generating them in the controller you could still call the extension method `.Mod(o => o.Nohide())` on the `Column` object ( `using Omu.Awem.Helpers;` ) (the link you mentioned is server side code)
at 15 May 2022
Omu
Thanks. Adding Helpers works.
at 15 May 2022
Ren
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