I need to dynamically create the grid based on data which i have. I will be creating a template for the grid from controller using "Grid Modal" and will pass the modal to view(.cshtml). So the grid will be generic, i.e it can be used for any data which i will be initializing in the controller using "Grid Modal". Can you suggest an example which explains this. Also i need to know whether will I be able to make use of all of the grid features (Virtualization, Paging,...), If I can how can I configure it.
Hi,
The configuration of the features is a standard object initialization. You can use Visual Studio’s intelliSense to find a specific option you need for your configuration. The full list of option can be found in our API documentation .
Kind regards, Petko Zhekov Software Developer
Thank you for your quick response.
I am using ASP.NET MVC4 & Visual Studio 2017 (.net 4.5.2). My requirement is to create a template of grid in MVC controller, so it can be reused.In all the examples I have found, the grid is created for just a specific view or model. My idea is to create a template of grid with all the configurations in MVC Controller(C#), so as per my requrement I can use the same configurations & I just nedd to change what the values are passed to configurations. So the grid will be generic. I have already refered these examples. It will configure grid either in Jquery or in Razor syntax. I need to configure the entire grid in C#. I found an example in your forum which is similar to my requirement (https://ko.infragistics.com/community/forums/t/110271.aspx). I am using igGrid_GridModel.zip to create & configure the grid from controller. But it only explains how the basic features can be configured. I need all of the grid features configured from the controller (It is in GetGridModel() in the example). If you could provide a working example how the grid can be configured in controller it will be very helpful for me.
Thanks & Regards
Rahul S
Thank you for posting in Infragistics Forums! If you are not sure what the columns will be you can set the autoGenerateColumns option to true. Also if you want more info about the MVC part of the product please refer to these topics and this sample .
I hope this helps!