or

| function saveClicked() |
| { |
| var editor = $find('ReditorGc')//GetRadEditor("ReditorGc"); //get a reference to RadEditor client object |
| var oValue = editor.get_html(false); //get the HTML content |
| oValue = oValue.replace("<","<"); |
| oValue = oValue.replace(">",">"); |
| var oWindow = GetRadWindow(); |
| var arg = new Object(); |
| arg.content = oValue; |
| oWindow.argument = arg; |
| oWindow.Close(); |
| } |
| function GetRadWindow() |
| { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| sScript.Append("function OnClientClose(radWindow){if(radWindow.argument){alert(radWindow.argument.content);document.getElementById('" + hfPropertyChanged.ClientID + "').value = radWindow.argument.content;__doPostBack('" + hfPropertyChanged.UniqueID + "','');}}"); |
| Telerik.Web.UI.RadScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "OnClientClose", sScript.ToString(), true); |
|
|
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