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

creating a grid dynamically from client side

1 Answer 64 Views
Dock
This is a migrated thread and some comments may be shown as answers.
L M
Top achievements
Rank 1
L M asked on 11 Sep 2009, 05:00 PM
Hello, I have a question
How can I create a grid from javascript
I want to create the Grid with new columns when you click a button <input click="createGrid();">, in other words, creating a grid dynamically from client side

Thanks.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 14 Sep 2009, 01:28 PM
Hello L M,

You cannot create RadGrid purely on the client since it is ASP.NET server control. However, you can build the control on the server and bind it on the client as presented on these online demos of the control:

http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx

You can hide the grid initially and then display it at a later stage following the concepts from the help topic below:

http://www.telerik.com/help/aspnet-ajax/grdvisibleinvisibleconventions.html

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Dock
Asked by
L M
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or