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

Dynamic RadGrid Caching

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shivan
Top achievements
Rank 1
Shivan asked on 13 Nov 2010, 05:49 AM
Hello Telerik Team,

I have a dynamic grid on a page, whose fields are taking from database. In order to keep its structure, I need to regenerate the grid at each post back. Like,
--------------------------------
RadGrid radGridDynamic = new RadGrid();

protected void Page_Init(object sender, EventArgs e)
{
        if (!IsPostBack)
        {
          
        }
        radGridDynamic = dynamicRadGridBLL.GenerateRadGrid("Company");
        PlaceHolder1.Controls.Add(radGridDynamic);
}

Is there any way to keep the structure alive at each post back?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Nov 2010, 02:11 PM
Hello,


Here I found a documentation which shows how to create RadGrid dynamically.
Programmatic creation

Hope this documentation helps you.


-Shinu.
Tags
Grid
Asked by
Shivan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or