Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
244 views
So here it is old code from 2008 version first:

<telerik:RadChart PlotArea-XAxis-Appearance-Visible="true" ID="MoodChart" runat="server" ClientSettings-EnableZoom="false"
                           ChartImageFormat="Png" DefaultType="Line" EnableEmbeddedBaseStylesheet="False"
                           CreateImageMap="False" EnableHandlerDetection="False" EnableTheming="False" EnableViewState="False"
                           Legend-Visible="False" ChartTitle-Visible="False" ClientSettings-ScrollMode="XOnly"
                           BorderWidth="0" Width="696px" Height="400px">
                           <PlotArea XAxis-AutoScale="True" XAxis-AutoShrink="True" YAxis2-AutoScale="False"
                               YAxis2-IsZeroBased="False" YAxis2-MaxValue="0" YAxis2-MinValue="-10" YAxis-MaxValue="0"
                               YAxis-MinValue="-10" XAxis-MaxValue="50" XAxis-Visible="Auto" DataTable-Visible="False" YAxis-AutoScale="False" YAxis-AxisMode="Extended">
                               <Appearance FillStyle-MainColor="White" FillStyle-SecondColor="White" FillStyle-FillType="Solid"
                                   Dimensions-Paddings="0" Dimensions-Margins="10,10,10,35" Dimensions-AutoSize="false" Dimensions-Height="370" Dimensions-Width="656" Position-Auto="false"
                                   Position-X="0" Position-Y="0">
                               </Appearance>
                               <YAxis>
                                   <Appearance MajorGridLines-Color="191,203,217" MinorTick-Visible="false" ></Appearance>
                               </YAxis>
                               <XAxis>
                                   <Appearance LabelAppearance-Visible="False"></Appearance>
                               </XAxis>
                           </PlotArea>
                           <Series>
                                
                               <telerik:ChartSeries Name="Series 1" Type="Line">
                                   <Appearance Border-Visible="False" Border-Width="0" Border-PenStyle="Solid" ShowLabels="true"
                                       LegendDisplayMode="Nothing">
                                       <FillStyle MainColor="#1A54A6">
                                       </FillStyle>
                                   </Appearance>
                               </telerik:ChartSeries>
                           </Series>
                       </telerik:RadChart>


Private Sub LoadGraph()
    MyMoodData.SelectParameters.Clear()
    MyMoodData.SelectParameters.Add("MemberGUID", Membership.GetUser.ProviderUserKey.ToString)
    MyMoodData.SelectParameters.Add("StartDate", StartDate.SelectedDate)
    MyMoodData.SelectParameters.Add("EndDate", EndDate.SelectedDate)
 
    Dim dv As DataView = CType(MyMoodData.Select(DataSourceSelectArguments.Empty), DataView)
 
    If dv.Table.Rows.Count < 1 Then
        MoodChart.Visible = False
        NoMood.Visible = True
    Else
        MoodChart.Appearance.Border.Visible = False
 
        MoodChart.Series(0).DataYColumn = "Mood"
        MoodChart.Series(0).i()
        MoodChart.DataSource = dv
        MoodChart.DataBind()
        Dim intArray As Integer() = New Integer(3) {10, 12, 13, 5}
        MoodChart.DataSource = intArray
        MoodChart.DataBind()
    End If
 
 
End Sub
 

worked perfectly. Upgraded to new version and I got a series of wonderful errors.

Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
 
Compiler Error Message: BC30560: 'ChartSeries' is ambiguous in the namespace 'Telerik.Charting'.
 
Source Error:
 
Line 69:                         </PlotArea>
Line 70:                         <Series>
Line 71:                             <telerik:ChartSeries Name="Series 1" Type="Line">
Line 72:                                 <Items>
Line 73:                                     <telerik:ChartSeriesItem YValue="1" Name="Item 20">
 
 
Source File: C:\Users\mreeder\Desktop\MoodyMindsv1\MoodyMindsV1\ControlCenter\MyMood\DepressionGraph.aspx    Line: 71

here is a little more error info 
Warning: BC40056: Namespace or type specified in the Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Source Error:
 
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb
 
Line 32: Imports System.Web.UI.WebControls
Line 33: Imports System.Web.UI.WebControls.WebParts
Line 34: Imports System.Xml.Linq
Line 35: Imports Telerik.Charting
Line 36: Imports Telerik.Web.UI
 
 
 
Show Detailed Compiler Output:
 
c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework\v3.5\vbc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\78d7a2ab\00414c0a_45b9c701\QualityData.Membership.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_global.asax.nwuafvdx.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_93ocfv5o.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\85f176e1\005fd95f_1a68ca01\paypal_base.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\0913c98b\003c95fb_92f6ca01\Telerik.Web.UI.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\aa352346\003f5143_ff1fca01\Elmah.DLL" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.Reporting\4.0.10.423__a9d7983dfcc261be\Telerik.Reporting.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\5423ef6e\5c6d12b3_2a1fcb01\MoodyMindsV1.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_x6hiwzgd.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\afc19a06\00485bfc_01e4c801\log4net.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Code.l19trfvy.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_itiayool.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\assembly\dl3\3f7fd362\0093871f_51cec701\Intelligencia.UrlRewriter.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing.Design\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\4.0.10.423__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\Telerik.Charting\2.0.4.0__d14f3dcc8e3e8763\Telerik.Charting.dll" /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\3svd8jgb.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Linq,System.Xml.Linq,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls /warnaserror- /optionInfer+  "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb" "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.1.vb"
 
 
Microsoft (R) Visual Basic Compiler version 9.0.30729.715
Copyright (c) Microsoft Corporation.  All rights reserved.
 
vbc : warning BC40057: Namespace or type specified in the project-level Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(34) : warning BC40056: Namespace or type specified in the Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
 
Imports System.Xml.Linq
        ~~~~~~~~~~~~~~~
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(401) : error BC30560: 'ChartXAxis' is ambiguous in the namespace 'Telerik.Charting'.
 
        Private Sub __BuildControl__control9(ByVal __ctrl As Telerik.Charting.ChartXAxis)
                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(415) : error BC30560: 'ChartYAxis' is ambiguous in the namespace 'Telerik.Charting'.
 
        Private Sub __BuildControl__control10(ByVal __ctrl As Telerik.Charting.ChartYAxis)
                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\815a49c2\d1626c0\App_Web_depressiongraph.aspx.b8e7a933.apjcwtqf.0.vb(434) : error BC30560: 'ChartPlotArea' is ambiguous in the namespace 'Telerik.Charting'.
 
        Private Sub __BuildControl__control8(ByVal __ctrl As Telerik.Charting.ChartPlotArea)
                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


so frustrated. Just want it to work like it did.

Please help
Ves
Telerik team
 answered on 13 Jul 2010
1 answer
221 views
Hi,
I have an working user control under asp.net which i need to convert to an WebPart for SharePoint 2010. but in Sharepoint 2010 the ImageDialog has some problems.
I am using the custom FileBrowserContentProvider provided in the live demos to store images in a SQL Database, which is used in ImageManager, the dialog is used both outside and inside the radEditor control.
The problem is that when used in SharePoint 2010 the ImageDialog gives an error and it asks to register the  httphandlers. I added the lines to the SharePoint webconfig as shown bellow:

<system.web>
<httpHandlers>
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>
</system.web>

<system.webServer>
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
</handlers>
</system.webServer>

But it still doesn't work it gives an 403 error.
What is the proper way to integrate the radEditor and DialogOpener (used outside the radEditor) in sharepoint 2010 ?

UPDATE:
using the info in this page on  Problem 4 i managed to make it work, but it still says the httphandlers are still missing but then it shows up and works as it should.
the config are :
<system.web>
 <httpHandlers>   
  <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
 </system.web>
...
<system.webServer>
    <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>
  </system.webServer>

And changing the DialogHandlerUrl on the RadEditor and DialogOpener to "/_LAYOUTS/BUV/Telerik.Web.UI.DialogHandler.aspx"

is there anyway to remove the httphandlers warning that shows ups ?

update2:
it seems it was a permission problem, using fiddler i found it was giving a 401 followed up by a 200 i just altered the webconfig to allow anyone to use the handler.

Thanks
Regards, Luís sá
Stanimir
Telerik team
 answered on 13 Jul 2010
8 answers
723 views
Hi, everyone

I want to hide null or empty data in RadChart, but when I use Charting DataTable I cannot hide the null or empty values.

I hide null or empty values in Chart Picture like that 

    if

 

(!_showNullValues)

 

    {

 

        foreach (ChartSeries series in chart.Series)

 

        {

 

                if (series.Items.Count == 0)

 

                {

                    series.Appearance.EmptyValue.Line.Width = 0.0f;

                    series.Appearance.EmptyValue.Mode = Telerik.Charting.Styles.

EmtyValuesMode.Zero;

 

                }

        }

    }

I set emptyvalue is zero to write datatable  zero rather than first non-empty value for empty value.

How can I hide empty value in datatable in RadChart?

Ves
Telerik team
 answered on 13 Jul 2010
1 answer
121 views
I have templete in grid column which hold 3 rating controls in every row. every rating control have rate event. How can i get ID of database record for idetifiing for wich database record is rating? ID is showed in first column, ratings are in 2nd column.
Mira
Telerik team
 answered on 13 Jul 2010
1 answer
169 views
2010.1.706.35 IE8 VS2008
I have all rows set to EditMode but then EnableRowHoverStyle doesn't do anything.   Is that by design?



Dimo
Telerik team
 answered on 13 Jul 2010
1 answer
93 views
Hello,

I have a Hierarchy grid and databinding on the client side.  I have hooked up the OnRowDataBound of the grid and trying to have reference to the detail rows.  I have reference to the master row. 

Is there an example to do this on the client side?  Not sure if there is another event I should be hooking up.

Thanks,
Feizal
Nikolay Rusev
Telerik team
 answered on 13 Jul 2010
1 answer
85 views
Does the grid need to re-grab the data [run NeedDataSource] when applying a filter?

I'm dealing with a lot of data and I'd much prefer to not have to re-grab/transfer that data.
I'd be interested in being able to apply a filter without having to re-grab the data.

This also applies to paging. :)

I'm probably missing something stupid, happened last time. :-P
Nikolay Rusev
Telerik team
 answered on 13 Jul 2010
2 answers
378 views
Hi All,
I am using a GridClientSelect Column for selecting rows in client side in telerik radgrid.Its working fine in all aspects except, the checked status is going off after paging

How can we persist the checked status of Checkbox can retained even after paging in GridClientSelect Column of Telerik RadGrid.

Thanks,
A2H
A2H
Top achievements
Rank 1
 answered on 13 Jul 2010
1 answer
131 views
Hello,

Please look at the grid screen attached. In Grid we have "Value" field with some value and ellipse image button. On ellipse image button click I need a pop up screen with some data and by choosing one of them this data should be insert in "value" field of grid.
How all I can implement through telerik datagrid..please advice.
Shinu
Top achievements
Rank 2
 answered on 13 Jul 2010
1 answer
135 views
Hi there,

We are using the Version RadEditorMOSS_5_7_3_Trial. And  we are using editor as a web part. we are facing some issue related to font-size. Right now in the font size drop down box we are able to see only 3, 8 and 9. we want to set the font size as 2 . But we are unable to do it.

We tried like this:
 in the file \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\_5_7_3___1f131a624888eeed\RadControls\Editor\Skins\Default2006\EditorContentArea.css
file  we  set font-size: 9px in the BODY tag.

After that we restart our browser. But still problem persists. is it a problem with trial version and for trail version we will not be able to change it?

please do suggest how to proceed.

Thanks
Amit
Stanimir
Telerik team
 answered on 13 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?