ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Dynamic select Grid custom render using jquery
Title:
B
I
{code}
?
I want to give grid dynamic `CustomRender(methodName)` methodName by jquery based on the screen size. Is there any way I can give it on grid load by checking screen resolution? Example: @(Html.Awe().Grid("ExampleGrid") .Url(Url.Action("GridGetItems")) .CssClass("scrlh") .Mod(o => o.Main().AutoMiniPager().CustomRender("methodName")) .Columns( ...columns here )) Can I use aweBeginLoad or any other method of grid to give CustomRender method by jquery?
Save Changes
Cancel
Sam Mosaic
asked at 19 Jun 2021
Yes, you could even change it on window.resize, have a look at this demo: https://demo.aspnetawesome.com/GridDemo/Filtering#Grid-outside-filter-row note the "show items as" toggle
at 19 Jun 2021
Omu
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