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

RadGrid Data Question

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex Yung
Top achievements
Rank 1
Alex Yung asked on 23 Oct 2008, 04:28 AM
Dear Telerik Support Team,

 

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

Index1

76%

77%

88%

12%

45%

73%

21%

22%

38%

12%

N/A

N/A

Index2

23%

76%

88%

24%

77%

12%

33%

15%

94%

44%

N/A

N/A


I want to show statistic data as above using RadGrid. (RadGrid.DataSource = DataTable)

However, the DataTable will disappear after PostBack(such as paging and sorting).

My questions are:

(1) Can the RadGrid remains the data after postback? (Currently, I place them in Session and reassign in the Page_Load event. RadGrid.DataSource = Session[“tbl”])

(2) As you see, the table above is simple, no sorting or paging needed. Is there any trim-down version of RadGrid to suit such case? Although I can disable all functions of RadGrid, I still think that RadGrid should be used for more complicated cases.

Regards,
Alex

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Oct 2008, 05:28 AM
Hi Alex,

Try binding the Grid in the NeedDataSource event. Go through the following online demo to get more details about AdvanceDataBinding techniques.
Advanced data-binding

Thanks
Shinu.
Tags
Grid
Asked by
Alex Yung
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or