telerik:RadAjaxManager the grid is not displaying the data in the grid .It just displays "No records to display"
In browser back button will it always take data from the Cache.
Hi,
I have to create a grid given below from data by using RadGrid. Cells in yellow color are editable. Top and Left headers are city codes extracted from Database, while the price entered by user will be stored in database. I am also looking for copy feature for the values provided by the user, so that user may copy values from cells to other cells as in excel.
|
|
CHC |
ROL |
PAC |
DAC |
|
CHC |
|
12 |
15 |
18 |
|
ROL |
|
|
20 |
20 |
|
PAC |
|
|
|
25 |
|
DAC |
|
|
|
|
| If Profile.UserCulture = 2 Then |
| If TypeOf e.Item Is GridHeaderItem Then |
| Dim header As GridHeaderItem = DirectCast(e.Item, GridHeaderItem) |
| header("PRN").Text = "购买申请编号" |
| header("RaisedBy").Text = "提出者" |
| header("Supplier").Text = "供应商" |
| header("DeliveryRequired").Text = "要求送货日期" |
| header("PRNotes").Text = "附注及特别说明" |
| header("ReqValue").Text = "价值" |
| header("Status").Text = "状态" |
| header("Level1").Text = "第 1 级授权" |
| header("Level2").Text = "第 2 级授权" |
| header("POSNumber").Text = "采购订单编号" |
| End If |
| End If |
| slider.Width = 365 |
| slider.SmallChange = 1 |
| slider.LargeChange = 1 |
| slider.IsSelectionRangeEnabled = True |
| slider.SelectionStart = 0 |
| slider.SelectionEnd = 360 |
| slider.OnClientSlideEnd = "sliderEndSlide" |
| function sliderEndSlide(sender, args) { |
| if (sender.get_selectionEnd() == sender.get_maximumValue()) { |
| sender.set_width(sender.get_maximumValue() + 28); |
| sender.set_maximumValue(sender.get_maximumValue() + 28); |
| sender.redraw(); |
| } |
| } |
<telerik:RadDockLayout runat="server" ID="RadDockLayout1" EnableEmbeddedSkins="false"
Skin="None" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout">
<telerik:RadDockZone runat="server" ID="RadDockZone1" Orientation="vertical" Style="border: 0px;
width: 100%;">
<telerik:RadDock runat="server" ID="RadDockBio" Title="Bio Line" EnableAnimation="true"
AutoPostBack="true" CommandsAutoPostBack="true">
<ContentTemplate>
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
</telerik:RadDockLayout>
| <script type="text/javascript"> |
| //MAKE SURE THAT THE FOLLOWING SCRIPT IS PLACED AFTER THE RADWINDOWMANAGER DECLARATION |
| //Replace old radconfirm with a changed version. |
| var oldConfirm = radconfirm; |
| //TELERIK |
| //window.radconfirm = function(text, mozEvent) |
| //We will change the radconfirm function so it takes all the original radconfirm attributes |
| window.radconfirm = function(text, mozEvent, oWidth, oHeight, callerObj, oTitle) |
| { |
| var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually |
| //Cancel the event |
| ev.cancelBubble = true; |
| ev.returnValue = false; |
| if (ev.stopPropagation) ev.stopPropagation(); |
| if (ev.preventDefault) ev.preventDefault(); |
| //Determine who is the caller |
| var callerObj = ev.srcElement ? ev.srcElement : ev.target; |
| //Call the original radconfirm and pass it all necessary parameters |
| if (callerObj) |
| { |
| //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again. |
| var callBackFn = function (arg) |
| { |
| if (arg) |
| { |
| callerObj["onclick"] = ""; |
| if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz |
| else if (callerObj.tagName == "A") //We assume it is a link button! |
| { |
| try |
| { |
| eval(callerObj.href) |
| } |
| catch(e){} |
| } |
| } |
| } |
| //TELERIK |
| //oldConfirm(text, callBackFn, 300, 100, null, null); |
| //We will need to modify the oldconfirm as well |
| oldConfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle); |
| } |
| return false; |
| } |
| </script> |