
Hello,
I posted a message in an existing thread but the thread is noticed as "Answered". I don't no if you check all threads or only the opened ones.
I try to personalize the point mark images of my Chart (server-side) but the modifications are not applied correctly (the default point mark icons are not replaced).
My code is based on a sample code that I found in another Thread:
| protected void Page_Load(object sender, EventArgs e) |
| { |
| RadChart2.BeforeLayout += new EventHandler<EventArgs>(RadChart2_BeforeLayout); |
| } |
| void RadChart2_BeforeLayout(object sender, EventArgs e) |
| { |
| foreach (ChartSeriesItem item in RadChart2.Series[0].Items) |
| { |
| string imageUrl = "MyImage.jpg"; |
| if(item.XValue > 5) |
| imageUrl = "MyImage2.jpg"; |
| item.PointAppearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Image; |
| item.PointAppearance.FillStyle.FillSettings.BackgroundImage = imageUrl; |
| } |
| } |
I try with different image format : PNG, JPG... but my point marks stay with the default images. I am sure that my URL is well-formed because I use it on other pages of my website without problems.
Thank you for your help.
Best regards,
Joël
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SplitterTest.aspx.cs" Inherits="TestSite.SplitterTest" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| <style type="text/css"> |
| html, body, form |
| { |
| height: 100%; |
| margin: 0; |
| padding: 0; |
| overflow: hidden; |
| font: normal 14px/1.5em "Segoe UI", Arial, sans-serif; |
| } |
| </style> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" Orientation="Horizontal"> |
| <telerik:RadPane ID="topPane" runat="server" Height="48px"> |
| Header pane |
| </telerik:RadPane> |
| <telerik:RadSplitBar ID="RadSplitBar1" runat="server" EnableResize="false" /> |
| <telerik:RadPane ID="contentPane" runat="server" Scrolling="None"> |
| <telerik:RadSplitter ID="RadSplitter2" runat="server"> |
| <telerik:RadPane ID="leftPane" runat="server" Scrolling="None" |
| MinWidth="300" MaxWidth="800" Width="500"> |
| Left pane |
| </telerik:RadPane> |
| <telerik:RadSplitBar ID="RadSplitBar2" runat="server" /> |
| <telerik:RadPane ID="rightPane" runat="server" Scrolling="None"> |
| Right pane<br /> |
| 1a 1b 1c 1d 1e 1f 1g 1h 1i 1j 1k 1l 1m 1n 1o 1p 1q 1r 1s 1t 1u 1v 1w 1x 1y 1z |
| 2a 2b 2c 2d 2e 2f 2g 2h 2i 2j 2k 2l 2m 2n 2o 2p 2q 2r 2s 2t 2u 2v 2w 2x 2y 2z |
| 3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 3m 3n 3o 3p 3q 3r 3s 3t 3u 3v 3w 3x 3y 3z |
| 4a 4b 4c 4d 4e 4f 4g 4h 4i 4j 4k 4l 4m 4n 4o 4p 4q 4r 4s 4t 4u 4v 4w 4x 4y 4z |
| 5a 5b 5c 5d 5e 5f 5g 5h 5i 5j 5k 5l 5m 5n 5o 5p 5q 5r 5s 5t 5u 5v 5w 5x 5y 5z |
| 6a 6b 6c 6d 6e 6f 6g 6h 6i 6j 6k 6l 6m 6n 6o 6p 6q 6r 6s 6t 6u 6v 6w 6x 6y 6z |
| 7a 7b 7c 7d 7e 7f 7g 7h 7i 7j 7k 7l 7m 7n 7o 7p 7q 7r 7s 7t 7u 7v 7w 7x 7y 7z |
| 8a 8b 8c 8d 8e 8f 8g 8h 8i 8j 8k 8l 8m 8n 8o 8p 8q 8r 8s 8t 8u 8v 8w 8x 8y 8z |
| 9a 9b 9c 9d 9e 9f 9g 9h 9i 9j 9k 9l 9m 9n 9o 9p 9q 9r 9s 9t 9u 9v 9w 9x 9y 9z |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </form> |
| </body> |
| </html> |
| <telerik:RadDatePicker ID="rPubDate" runat="server" DateInput-DateFormat="MM/yyyy" /> |
The control only allows me to select the current month / year in this case "10/2009" any other date will not work. If I change the dateformat to MM/d/yyyy or MMM/yyyy it works fine.

return
true;
},_applySelection:
function(){
if
(!this._isInVisibleContainer(this._textBoxElement)){
return
;
}
if
((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){
this
._textBoxElement.selectionStart=this._selectionStart;
this
._textBoxElement.selectionEnd=this._selectionEnd;
return
;
}
this
._textBoxElement.select();
sel=document.selection.createRange(); //ERROR IS ON THIS LINE
sel.collapse();
sel.moveStart(
"character",this._selectionStart);
sel.collapse();
sel.moveEnd(
"character",this._selectionEnd-this._selectionStart);
sel.select();
},_clearHiddenValue:
function(){
this
._hiddenElement.value="";
},_handleWheel:
function(_58){
},_setHiddenValue:
function(_59){
if
(this._hiddenElement.value!=_59.toString()){
this
._hiddenElement.value=_59;
}
this
._setValidationField(_59);
return
true;
},_setValidationField:
function(_5a){
},_updateHiddenValueOnKeyPress:
function(){
this
._updateHiddenValue();
},_updateHiddenValue:
function(){
if
(!this._textBoxElement.readOnly){
return
this._setHiddenValue(this._textBoxElement.value);
}
},_escapeNewLineChars:
function(_5b,_5c){
_5b=escape(_5b);
while
(_5b.indexOf("%0D%0A")!=-1){
_5b=_5b.replace(
"%0D%0A",_5c);
The Error : "Microsoft JScript runtime error: Unknown runtime error"
The dropdowns are using load on demand and virtual scrolling and all of that works fine providing I click away to a non editing cell before clicking to another editing control. The problem does not occur when the dropdowns are not opened and values are changed through using the keyboard up and down keys.
I've got no client side scripts running - all controls are created in code.
If I click away to another dropdown control (or even to the same one) the error is similar and it appears here:
function
(_f9,_fa){
if
(!this.get_enableTextSelection()){
return
;
}
if
((!this.get_enableLoadOnDemand())&&(this.get_readOnly())){
return
;
}
if
(this.get_inputDomElement().createTextRange){
var
_fb=this.get_inputDomElement().createTextRange();
if
(_f9==0&&_fa==0){
_fb.collapse(
true);
return
;
}
_fb.moveStart(
"character",_f9);
_fb.moveEnd(
"character",_fa);
_fb.select(); //ERROR IS ON THIS LINE
}
else{
this
.get_inputDomElement().setSelectionRange(_f9,_f9+_fa);
}
},_childRemoving:
function(_fc){
var
_fd=_fc.get_index();
if
(this._itemData){
Array.remove(
this._itemData,this._itemData[_fd]);
}
Telerik.Web.UI.RadComboBox.callBaseMethod(
this,"_childRemoving",[_fc]);
},_childRemoved:
function(_fe,_ff){
var
_100=_fe.get_element();
if
(_fe==this.get_selectedItem()){
this
.set_selectedItem(null);
this
.set_highlightedItem(null);
this
.set_text("");
The Error: "htmlfile: Could not complete the operation due to error 800a025e"
I'm running Ie8 and I've tried running it in the compatibility mode but results were the same.
I'm using Visual Studio 2008 to create the web app.
Thanks for your help,
Jo