Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 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.3K+ 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
121 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
331 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
589 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
131 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
48 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
1 answer
65 views
Hello,

Attached is a snapshot for an issue that am facing on displaying a grid when AllowScroll and UseStaticHeaders are set to true,

this issue is happening on IE (issue.jpg) while it should look like (correct.jpg).

brief description:
I have client side binding grid on intranet application (works on compability mode) IE10 or IE9.
the container of the grid is a table with table-layout: fixed; (to fix the horizontal scroll bar issue on IE).

please advise what can be done to fix this issue

Thanks
Venelin
Telerik team
 answered on 03 Jul 2013
1 answer
139 views
hi,

i am using radnumeric text box in my page and i used following javascript function to avoid both decimal point and negative symbol

function DecimalKeyPress(sender, args) {
                var keyCharacter = args.get_keyCharacter();

                if (keyCharacter == sender.get_numberFormat().DecimalSeparator ||
        keyCharacter == sender.get_numberFormat().NegativeSign) {
                    args.set_cancel(true);
                }

But there seems to be an issue with Firefox as delete key is not working. We found that both delete and decimal key return the same key character as 46. It works with all other browsers.

How can i fix this issue.

Regards
Jiju
Viktor Tachev
Telerik team
 answered on 03 Jul 2013
1 answer
57 views
Hi All,

We are using Telerik RadControls for ASP.NET Ajax Version - 2009.2.70 in VS2005.
Now we want to migrate VS2012.

Question

Will Telerik RadControls for ASP.NET Ajax Version - 2009.2.70 work for VS 2012 and IE 10 Browser?

I tried to migrate the source code,Rad Controls are working fine in Chrome and Firefox but getting some scripting errors in IE 10,

I want to know whether  Rad Controls Version 2009.2.70 will work for VS 2012 and IE 10 Browser or not?

Thank You
Varma


 
Viktor Tachev
Telerik team
 answered on 03 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?