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

[Solved] Best approach to bind grid dynamically

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Devanand Jha
Top achievements
Rank 1
Devanand Jha asked on 10 Aug 2009, 01:36 PM
Hi,

I am creating demo page with RadGrid in comparison with Intersoft WebGrid and i am trying to find best approach to bind grid with best performance. I have following requirements:

1. Need to create column dynamically.
2. Paging, Sorting, filtering (Optional  as can't compomise with performance), cell editing.
3. drowpdown column in edit mode.(How to achieve this in dynamic binding plz provide any link).
4. Excel/Pdf/cvs download
5. Culture support.

please suggest me whether to use NeedDataSource to bind grid on each post back with disabled viewstate or create grid on page_Init or any other approach?

Also this line is not working when using NeedDataSource for creating/binding dynamic column. 

RadGrid1.MasterTableView.EditMode =

GridEditMode.InPlace;

Regards
Devanand Jha

 

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 13 Aug 2009, 12:26 PM
Hi Devanand,

Here you can read about creating an grid instance and its structure dynamically and here - how to call the NeedDataSource event after command execution with ViewState disabled (EnableViewState = false).
For a dropdown column in edit mode I recommend that you see the Combo in Grid demo.
Here you can see how to export to MS Excel/MS Word/CSV and here - to PDF.
For culture support I suggest that you read the How to: Set the Culture and UI Culture for ASP.NET Web Page Globalization article.

I hope I managed to answer your questions. Please do not hesitate to contact us if you need any further assistance.

Regards,
Mira
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Devanand Jha
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or