ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid - Get Column list
Title:
B
I
{code}
?
Is it possible with client API have : - Column Name list - Column Header list - Current sortby column
Save Changes
Cancel
Meccanica Rossi
asked at 14 Apr 2017
why do you need all of this ?
at 14 Apr 2017
Omu
I would implement Excel export function, I would like to export dynamically all grid columns (WYSIWYG)
at 14 Apr 2017
Meccanica Rossi
like in this demo http://demo.aspnetawesome.com/GridExportToExcelDemo ?
at 14 Apr 2017
Omu
This demo is my start, I would like to do a generic function that export all column of a grid WITHOUT define before var columns = new[] { "Id", "Person", "Food", "Date", "Price", "CountryName", "ChefName", "Location" }; var headers = new[] { "Id", "Person", "Food", "Date", "Price", "Country", "Chef", "Location" }; but get this informations directly from grid
at 18 Apr 2017
Meccanica Rossi
try setting `.SendColumns(true)` and in the controller you can use `g.Columns`
at 18 Apr 2017
Omu
Very good !!
at 19 Apr 2017
Meccanica Rossi
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