Hi, I am using ASP.NET & C# for my project. So, as per my requirement I need to design & create Ignite UI grid dynamically from codebehind (aspx.cs) page. Say, I have a panel created in aspx page, I can dynamically add controls to the panel on Page_Load() event. But is there any possible way I can create the grid and add it to the panel from codebehind. Like in ASP.NET MVC, I can create a GridModel object and dynamically add columns, properties & features from controller and return the model to view. Regards Rahul S
Hello Rahul,
The approach is the same, only that the Updating feature requires unique primaryKey defined. Here's the sample with Updating
Hello Deyan,
Thank you for the demo.It was very helpful. But, have a issue; How to enable updating feature and do grid updating. Can you give me a solution for that.
Regards,
Rahul S
I would suggest recreating the grid with the new features configuration. Please review the modified sample I'm attaching.
Is this what you're trying to achieve?
Sorry for the delay in response.
I went the the demo which you provided. I was able to create the grid. I do have one more query. How can we enable Ignite UI grid features like Groupby, Updating, Column Fix, . .and dynamically bind that to aspx page.
Thank You
Regards
There are wrappers for MVC only.
But you can send ajax request to get the grid settings from the server and once they are on the client you can create the grid based on those settings.
Please review the demo I've prepared for you.