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

[Solved] Creating grid dynamically

3 Answers 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
QualiWareUA
Top achievements
Rank 1
QualiWareUA asked on 05 May 2008, 03:47 PM
Hello,

I am creating grid dynamically (statically defined grid with dynamically created structure). And I have a question: is there any difference in having grid statically predefined in .aspx page and creating it in code-behind? I am asking, because I experience a problem with multi-column filtering with statically predefined grid. Has anybody had such problem?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 May 2008, 07:56 AM
Hi Vladimir,

Go through the following help document link.
Programmatic creation

Thanks
Princy.
0
QualiWareUA
Top achievements
Rank 1
answered on 06 May 2008, 08:19 AM
Hello Princy,

This is the documented that I used as a guideline...
0
Konstantin Petkov
Telerik team
answered on 06 May 2008, 09:22 AM
Hello Vladimir,

The exact same document states:

For the controls inside a template to persist their ViewState, the grid must be generated completely in the code-behind using the Page_Init event (see below). That way, template controls are instantiated before the LoadViewState event of the page.

I think this should explain why you experience the problem with the template columns.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
QualiWareUA
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
QualiWareUA
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or