ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid - Set initial column to sort
Title:
B
I
{code}
?
I see your grid sample where is possible set visible columns from serverside GridChooseColumnsDemo is it possible to set also default sort column ? I tried this, but seem not run. var sortColumns = new[] { "Name" }; var sortDir = new[] { "Asc" }; g.SortNames = sortColumns; g.SortDirections = sortDir;
Save Changes
Cancel
Meccanica Rossi
asked at 17 Jan 2018
Answers
B
I
{code}
?
you can set it in the view like this: new Column{ Bind = "Person", Sort = Sort.Asc http://demo.aspnetawesome.com/GridDemo/Sorting
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