Hi,
Im using Promethus RAD chart. In my user control, I have three charts which are dynamically binding and im having different legend for different charts.
In my ascx, i have this much code and im doing all the things in code behind.
<telerik:radchart ID="RadChart1" SkinsOverrideStyles="false" runat="server" Width="600px" Height="430px" seriespalette="" visible="false" >
<PlotArea>
<Appearance dimensions-width="470" > </Appearance>
</PlotArea>
</telerik:radchart>
Legend Creation in code behind:
Dim lbl1 As New LabelItem
With RadChart1.Legend.Items(0)
.TextBlock.Text =
"81 to 100% - Appraisal criteria fully met"
.Marker.Appearance.FillStyle.MainColor = Drawing.Color.Green
.Marker.Appearance.FillStyle.SecondColor = Drawing.Color.GreenYellow
.TextBlock.Appearance.TextProperties.Color = Color.Black
End With
Dim lbl2 As New LabelItem
With RadChart1.Legend.Items(1)
.TextBlock.Text =
"41 to 80% - Appraisal criteria partially met"
.Marker.Appearance.FillStyle.MainColor = Drawing.Color.Yellow
.Marker.Appearance.FillStyle.SecondColor = Drawing.Color.Silver
End With
With RadChart1.Legend
.AddLabel(lbl1)
.AddLabel(lbl2)
.Appearance.Position.AlignedPosition = Styles.AlignedPositions.BottomLeft
.Appearance.Location = Styles.LabelLocation.OutsidePlotArea
RadChart1.Legend.Visible =
True
End With
IN the ascx control, i have combo box with the chart types... when the user changes the chart type and click refresh , then the next chart is loaded. but when the user just changes the chart type alone, then nothing should happen.
actual result : when the user changes the chart type, chart remains the same..but legend text and marker diasppears completely leaving blank white space. but when i click refresh, then legend comes properly.
Is there a way to keep the legend as it is when the user changes the chart type in combo box.
Could you pls.
Thanks
| functionschedule.rebind(); |
| functionschedule.set_selectedDate("2/3/2010"); //rs.get_selectedDate()); |
| alert('rebinded'); |
| billable | nonbillable | ||||||||||||
| Novartis | Binod | 32 | 8 | ||||||||||
| Jaswanth | 12 | 23 | |||||||||||
| Sudhanva | 34 | 6 | |||||||||||
| KOL | Binod | 22 | 18 | ||||||||||
| Harish | 39 | 1 | |||||||||||
| Sudhanva | 35 | 5 | |||||||||||
| and chart should be like attached picture here. please guide me how to achive chart like this using above type of datatset. | |||||||||||||
| /* hack for Telerik file explorer .rtbIconOnly css class to look like normal icon+text buttons: */ |
| .RadFileExplorer .RadToolBar .rtbIconOnly .rtbText { |
| font-size: 12px !important; |
| padding:0 2px 0 22px !important; |
| } |
Hi,
I have a problem using the RadCombo with IE8. The list of items exceeds the height of the control (see attached file).
How could i fix this issue?
I'm using version 2009.2.826.
Thank You!
| function closeandredirect() { |
| GetRadWindow().BrowserWindow.location.href = '/main/sdfds_Select.aspx'; |
| GetRadWindow().close(); //closes the window |
| } |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| lblCloseWindow.Text = "<script type='text/javascript'>closeandredirect();</script>"; |
| lblCloseWindow.Visible = true; |