Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1460
Create grid programmatically from server side.
posted

Is there a way to create a grid programmatically from the server side?  All the examples are declarative.

For instance, I have a repeater control, and in the ItemDataBound event I'd like to conditionally render an igGrid and have control over it's initial settings/columns/etc... via the code-behind.  The documentation is just as horrible as for the ASP.NET AJAX controls, worse in that it only has examples in C# too - so there's nothing I can find about doing this.

Parents
  • 24671
    posted

    Hi,

    Many of the examples have the grid configured fully in the controller, as opposed to the View. Some of them are, for instance:

    http://samples.infragistics.com/jquery/grid/virtualization

    Are you using the grid in an ASP.NET MVC application? we don't provide ASP.NET wrappers for the jQuery grids.

    Also, all samples have VB.NET code generated and you can look at it by choosing the <Controller Name>.vb from the "Select Sample Source file to View" drop-down. 

    Thank you,

    Angel

Reply Children