This is a migrated thread and some comments may be shown as answers.

Best approach to display different number of columns

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
alex
Top achievements
Rank 1
alex asked on 19 Sep 2016, 07:40 PM
Please help to figure out the most appropriate solution for the following scenario: we need to display grid that is fed by the stored procedure that can return different number of columns. Ideally we would like to use the same code for all different output since Telerik Grid offers the option to display all the columns that are part of the datasource datatable. There is one column that is present in every output which has value one or zero and is needed to be a checkbox. By selecting/deseclecting checkbox and clicking "update" button the corresponding values should be fed into stored procedure to save them into the database. So if you could make a suggestion it would be greatly appreciated. Thank you.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 Sep 2016, 06:42 AM
Hi Alex,

You can achieve this requirement using the implementation demonstrated in the following article:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/defining-structure/changing-the-grid-structure-dynamically-on-postback

I hope this will prove helpful.


Regards,
Eyup
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
General Discussions
Asked by
alex
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or