Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
405 views
Hi
  How to give custom colors in donut chart series ? my donut client side code is 
 <telerik:RadHtmlChart runat="server" ID="DonutChart" Width="500" Height="300" Transitions="true"
                                                                                        Skin="Default">
                                                                                        <Appearance>
                                                                                            <FillStyle BackgroundColor="White"></FillStyle>
                                                                                        </Appearance>
                                                                                        <ChartTitle Text="Total Files According to Department ">
                                                                                            <Appearance Align="Center" BackgroundColor="White" Position="Top"><TextStyle />
                                                                                            </Appearance>
                                                                                        </ChartTitle>
                                                                                        <Legend>
                                                                                            <Appearance BackgroundColor="White" Position="Right" Visible="true">
                                                                                            </Appearance>
                                                                                        </Legend>
                                                                                        <PlotArea>
                                                                                            <Appearance>
                                                                                                <FillStyle BackgroundColor="White"></FillStyle>
                                                                                            </Appearance>
                                                                                            <Series>
                                                                                                <telerik:DonutSeries StartAngle="90">
                                                                                                    <LabelsAppearance Visible="false">
                                                                                                    </LabelsAppearance>
                                                                                                    <TooltipsAppearance DataFormatString="{0}%"></TooltipsAppearance>
                                                                                                    <SeriesItems>
                                                                                                        <telerik:PieSeriesItem />
                                                                                                    </SeriesItems>
                                                                                                   </telerik:DonutSeries>
                                                                                            </Series>
                                                                                        </PlotArea>
                                                                                    </telerik:RadHtmlChart>


in that i use telerik predefined skin " Default"
and my server side code is 

    DonutChart.PlotArea.Series.Clear()
                Dim col As New DonutSeries()
                col.Items.Clear()
                
                 For Each row1 As DataRow In dt1.Rows

                        Dim se As New SeriesItem()
                         Dim pi As New PieSeriesItem()
                         se.YValue = row1(1).ToString()
                    se.Name = row1(0)
                        col.Items.Add(se)
                Next
        DonutChart.PlotArea.Series.Add(col)

Here how to give custom skin
        like red,yellow,blue,green,black,pink..... upto 10 colors
Danail Vasilev
Telerik team
 answered on 03 Jul 2013
4 answers
159 views
Hi
How can I remove some of the items from the context menu displayed on right clicking on the editor on IE7

I would like to remove Paste from Word and Paste As Html options.
Marin Bratanov
Telerik team
 answered on 03 Jul 2013
3 answers
162 views
For a current project we are using jquery written into the content of the radeditor.  The Jquery library exists on the master page of the application, however if my understanding is correct the radeditor is rendered using an iframe and thus the jquery reference is missing.  This is throwing a javascript error for obvious reasons.  Is there any way to include a reference to an external javascript library from within the radeditor iframe?
Marin Bratanov
Telerik team
 answered on 03 Jul 2013
1 answer
149 views
Running three file explorers in the three separate tabs Each on has it's on initial directory set.  I have view, upload and delete folders set.  The problem I am experiencing is that when I delete a file from a sub folder when the control refreshes the display shows the parent directory again instead of the subdirectory being selected.  I went through the help section but couldn't see anything on keeping subdirectories open on delete.  I figure it will be in the Item_command section for "DeleteFile" but I can't see where to hook the changes. 

Here's my code for one of the exploreres:
Page Code:
<telerik:RadFileExplorer runat="server" ID="ImagesExplorer" Width="99%" Height="500px">
</telerik:RadFileExplorer>
Code Behind:
    private string baseImagePath
    {
        get
        {
            return String.Format("/userfiles/images/{0}/", ThisSiteName);
        }
    }
 
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
 
        string[] imagePath = { baseImagePath };
        ImagesExplorer.EnableOpenFile = true;
        ImagesExplorer.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.Default;
        ImagesExplorer.Configuration.ViewPaths = imagePath;
        ImagesExplorer.Configuration.DeletePaths = imagePath;
        ImagesExplorer.Configuration.UploadPaths = imagePath;
        ImagesExplorer.OnClientFileOpen = "OnClientFileOpen";
        ImagesExplorer.Configuration.MaxUploadFileSize = 500000000;
}
 
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        if (!IsPostBack)
        {
            ImagesExplorer.InitialPath = baseImagePath;
        }
    }
Misho
Telerik team
 answered on 03 Jul 2013
8 answers
1.2K+ views
Hi,

I use the radwindow to show detailed views of the data in a grid, but I want to set the popups in a preset size, so it doesn't open up a small 200x200px window and then resizes to the content size.

Can I use something like:
window.radopen('url_goes_here', 'window_name_here', width_goes_here, height_goes_here)
or
window.radopen('url_goes_here', 'window_name_here', 'width=width_goes_here,height=height_goes_here')

Didn't find anything in the forum or documentation.
Marin Bratanov
Telerik team
 answered on 03 Jul 2013
9 answers
107 views

Please let me know ASAP what I missing:
I noticed that when I try to update recurrence  for the series the e.ModifiedAppointment.RecurrenceRule stays the same as
e.Appointment.RecurrenceRule.  
How to find the value of the updated RecurrenceRule?
Thank you


 

 

Boyan Dimitrov
Telerik team
 answered on 03 Jul 2013
3 answers
311 views
Hello,
I have the following situation:

Site.Master:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
             <Scripts>
            <%--Framework scripts--%>
           <asp:ScriptReference Name="MsAjaxBundle" />
            ................................................................
                 </Scripts>
        </asp:ScriptManager>
 <telerik:RadWindowManager ID="RadWindowManagerL" runat="server" AnimationDuration="3000" EnableViewState="false"> </telerik:RadWindowManager>

 <asp:UpdatePanel ID="UP" runat="server">
           <ContentTemplate>
                 <asp:ContentPlaceHolder runat="server" ID="MainContent" />
           </ContentTemplate>
  </asp:UpdatePanel>


somename.aspx:
..............................
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server"> <%-- this is the content that is placed in the UpdatePanel -->
.........................
<asp:Button ID="btneditc" runat="server" Width="40px" Text="Edit" Font-Size="Small" Height="28px" BorderColor="#043C77" ForeColor="#043C77"  />
........................................
<script type="text/javascript">
   function show(nameRadWindow) {
                    var name= String(nameRadWindow);
                    var manager = GetRadWindowManager();
                    var window = manager.getWindowByName(name);
                    window.show();
    window.focus();
                }
            </script>
</asp:Content>

somename.aspx.vb:
Public Class somename
    Inherits System.Web.UI.Page
    Dim IsFirstTime As Boolean = True
   
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
               If (Not IsPostBack) And IsFirstTime = True Then                    
createWin()
IsFirstTime = False
End if

Public Sub createWin() 
 Dim numFer As Integer = DirectCast(Me.Master.FindControl("RadWindowManagerL"), RadWindowManager).Windows.Count()
        Try
            If numFer <> 0 Then
                DirectCast(Me.Master.FindControl("RadWindowManagerL"), RadWindowManager).Windows.Clear()
            End If
        Catch ex As Exception

        End Try
        Dim arrayWindow(3, 4) As String

        arrayWindow(0, 0) = "radWindowOne" 
        arrayWindow(1, 0) = "windowOne.aspx" 
        arrayWindow(2, 0) = "Window One Title" '
        arrayWindow(3, 0) = "divname
"     

        arrayWindow(0, 1) = "radWIndowTwo" 
        arrayWindow(1, 1) = "windowTwo.aspx" 
        arrayWindow(2, 1) = "Window two Title" 
        arrayWindow(3, 1) = "divname"
"     

        arrayWindow(0, 2) = "radWindowThree" 
        arrayWindow(1, 2) = "windowThree.aspx" 
        arrayWindow(2, 2) = "Window Three Title" 
        arrayWindow(3, 2) = "divname"
"     

        arrayWindow(0, 3) = "radWindowFour"
        arrayWindow(1, 3) = "windowFour.aspx" 
        arrayWindow(2, 3) = "Window Four Title" 
        arrayWindow(3, 3) = "divname"
"     

        arrayWindow(0, 4) = "radWindowFive" 
        arrayWindow(1, 4) = "windowFive.aspx" 
        arrayWindow(2, 4) = "Window Five Title"  
        arrayWindow(3, 4) = "divname"    


        For i As Integer = 0 To 4
            Dim window As New Telerik.Web.UI.RadWindow()
            With window
                .ID = arrayWindow(0, i)
                .NavigateUrl = arrayWindow(1, i)
                .Title = arrayWindow(2, i)
                .RestrictionZoneID = arrayWindow(3, i)

                .EnableViewState = False
                .VisibleOnPageLoad = False
                .ReloadOnShow = False
                .ShowContentDuringLoad = False
                .DestroyOnClose = False
                .Behaviors = WindowBehaviors.Move Or WindowBehaviors.Close Or WindowBehaviors.Resize
                .VisibleStatusbar = False
                .Modal = True
                .Skin = "Metro"
                .EnableEmbeddedSkins = False
                .Height = 440
                .Width = 750
            End With

            DirectCast(Me.Master.FindControl("RadWindowManagerlocatii"), RadWindowManager).Windows.Add(window)
' All the windows are succesfully added
        Next
End Sub

 Protected Sub btneditc_Click(sender As Object, e As EventArgs) Handles btneditc.Click
        'ScriptManager.RegisterStartupScript(Me, Me.GetType(), "openWnd", "show('radWindowOne'); return false;", True)
        'ScriptManager.RegisterStartupScript(Me, Me.GetType(), "openWnd", "show('radWindowFive'); return false;", True)
' If i try to open Window one, all things are ok the window is opened and doesn`t disappear
' if I try to open Window five , the window appears for 1 sec and disappears


    End Sub

The code for WindowOne.aspx/vb and WindowFive.aspx/vb is the same
I tried to call the JS function show() from aspx too : OnClientClick="show('nameofthewindow'); return false;" but doesn t work :( and I can't use RadScriptManager and AJAX because in somename.aspx a have a lot of UI oject (radgrids, etc...)




Marin Bratanov
Telerik team
 answered on 03 Jul 2013
1 answer
559 views
Hai
  How to give tooltip in radhtml bar chart,i am plot bar chart dynamically,but default value is appear in tooltip if i mouse over in bars, below is my html code for bar chart
   <telerik:RadHtmlChart runat="server" ID="BarChart" Width="500px" Height="300px" Transitions="true" Skin="Forest">

                                                                                        <ChartTitle Text="DASHBOARD">
                                                                                            <Appearance Align="Center" BackgroundColor="White" Position="Top"></Appearance>
                                                                                        </ChartTitle>
                                                                                        <Legend>
                                                                                            <Appearance BackgroundColor="White" Position="Bottom"></Appearance>
                                                                                        </Legend>
                                                                                        <PlotArea>
                                                                                            <Appearance>
                                                                                                <FillStyle BackgroundColor="White"></FillStyle>
                                                                                            </Appearance>
                                                                                            <XAxis AxisCrossingValue="0" Color="#b3b3b3" Reversed="false">

                                                                                           
                                                                                            </XAxis>
                                                                                       
                                                                                            <YAxis AxisCrossingValue="0" Color="#b3b3b3">
                                                                                                <LabelsAppearance DataFormatString="{0}"></LabelsAppearance>

                                                                                            </YAxis>

                                                                                        </PlotArea>
                                                                                    </telerik:RadHtmlChart>


and my programatically plot code is 

                BarChart.PlotArea.Series.Clear()
                BarChart.PlotArea.XAxis.Items.Clear()

                Dim yaxis As New BarSeries()
                Dim yaxis1 As New BarSeries()
           
                yaxis.Name = "Pages"
                yaxis1.Name = "Files"

   For Each row As DataRow In dt.Rows
                      BarChart.PlotArea.XAxis.Items.Add(Convert.ToDateTime(row(0)).ToString("dd MMM"))

                        If (row(1).ToString = "") Then
                        Else
                            yaxis.SeriesItems.Add(row(1))
                            '  yaxis.TooltipsAppearance.DataFormatString = "{0} " + row(1) + " , {1} nnnnnnn"------here i try tooltip but bar chart value is appear ,i mean row(1) value is "6"
                        End If
                        If (row(2).ToString = "") Then
                        Else
                               yaxis1.SeriesItems.Add(row(2))
                      '  yaxis1.TooltipsAppearance.DataFormatString = "{0} " + row(1) + " , {1} nnnnnnn"---here i try tooltip but bar chart value is appear ,i mean row(2) value is "3"

                        End If
 Next
                BarChart.PlotArea.Series.Add(yaxis)
                BarChart.PlotArea.Series.Add(yaxis1)


pls reply asap
  Regards 
      Aravind
Danail Vasilev
Telerik team
 answered on 03 Jul 2013
1 answer
111 views
Hi, I'm trying to execute a client script when the search button is clicked, and I found the "OnClientSearch" event, but... I cannot find a way to prevent the postback from occurring. How do I prevent postback when I click the search button? It seems like it should be obvious, but I just can't find it.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 03 Jul 2013
3 answers
34 views
Hello,

On the RAD Editor , when user Copy the HTML from outside, and paste in to RAD Editor, and then verify the HTML code the additional <tbody> tag is added automatically in to HTML BODY.

Can please let me know how to resolve this? so that <tbody> text not added automatically..

Regards
Samir
Ianko
Telerik team
 answered on 03 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?