Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
127 views
I did a update of my trial version to v.2011.3.1115.40 from Visual Studio after which my project now refuses to load the project themes. What has this upgrade changed to cause this? Does it mess with folder permissions?

Duncan
Erjan Gavalji
Telerik team
 answered on 25 Nov 2011
1 answer
71 views
I'm using RadChart's Bar type and have two series. How can I increase the thickness of each bar in the series?
Petar Marchev
Telerik team
 answered on 25 Nov 2011
3 answers
124 views
I am dynamically creating docks when a user clicks a button, inside the dock will be various controls depending on what "page widget" the user has selected from the dropdown list.

I have started off with the simplest "page widget", a RadEditor and a Textbox.

I can persist any data entered into the controls by saving it to a session and re-populate the various controls, however I need to be able to move the docks around so that the order of the "page widgets" can be changed easily but I've lost this functionality, I cannot move, collapse or remove them.

I have simplified the code down to the basics to make it easier to read.

Any ideas? Thanks




(I don't care about the docks open/close state, collapsing will be removed)


ASPX
<asp:Button ID="btnAdd" runat="server" Text="Add a widget" />
<br />
<br />
<telerik:RadDockLayout ID="rdDockLayout" runat="server">
    <telerik:RadDockZone ID="rdDockZone" runat="server" Width="700px">
 
    </telerik:RadDockZone>
</telerik:RadDockLayout>

VB
Imports Telerik.Web.UI
 
Partial Class Admin_DockTest2
    Inherits System.Web.UI.Page
 
    Dim DockStore As New List(Of DockSaved)
 
    ''' <summary>
    ''' Container to hold a saved dock so it can be brought back in to dock zone on postback etc.
    ''' </summary>
    Private Structure DockSaved
        Property Key As Integer
        Property WidgetObject As PageWidgets
        Property dID As String
 
        Public Sub New(WidgetTypeID As Integer, Widget As PageWidgets, dockID As String)
            Key = WidgetTypeID
            WidgetObject = Widget
            dID = dockID
        End Sub
    End Structure
 
    Protected Sub Page_Init(sender As Object, e As System.EventArgs) Handles Me.Init
        If Not Session("Widgets") Is Nothing Then
            DockStore = CType(Session("Widgets"), List(Of DockSaved))
        End If
    End Sub
 
    Protected Sub btnAdd_Click(sender As Object, e As System.EventArgs) Handles btnAdd.Click
        AddWidget()
    End Sub
 
    Private Sub AddWidget()
        CreateDock(1) 'type 1
    End Sub
 
    Private Sub CreateDock(WidgetType As Integer)
        Dim randID As String = Guid.NewGuid().ToString.Replace("-", "a")
 
        Dim dock As New RadDock
        dock.ID = "dk" + WidgetType.ToString() + "-" + randID
        dock.Title = "dk" + WidgetType.ToString() + DateTime.Now.ToShortTimeString
        dock.ClientIDMode = UI.ClientIDMode.Static
        dock.Commands.Add(New DockExpandCollapseCommand())
        dock.Commands.Add(New DockCloseCommand())
 
        dock.AutoPostBack = True
        dock.EnableDrag = True
 
        Dim rdTextboxID = "tb" + randID
        Dim rdTextbox As RadTextBox = GetRadTextbox(rdTextboxID)
        rdTextbox.Text = "help!"
 
        Dim rdEditorID As String = "rdEditor" + randID
        Dim rdEditor As RadEditor = GetRadEditor(rdEditorID)
 
        dock.ContentContainer.Controls.Add(rdTextbox)
        dock.ContentContainer.Controls.Add(rdEditor)
 
        rdDockLayout.Controls.Add(dock)
        dock.Dock(rdDockZone)
    End Sub
 
    Protected Sub rdDockLayout_SaveDockLayout(sender As Object, e As Telerik.Web.UI.DockLayoutEventArgs) Handles rdDockLayout.SaveDockLayout
        If rdDockZone.Docks.Count > 0 Then
 
            'Clear current entries to avoid saving duplicates
            DockStore.Clear()
 
            For Each d In rdDockZone.Docks
                Dim dID As String = d.ID
                Dim randID As String = d.ID.Substring(4)
                Dim WidgetTypeID As Integer = 1
 
                Select Case WidgetTypeID
                    Case 1  '>>>>> Widget Type: WidgetHTML
                        Dim tbID As String = "tb" + randID
                        Dim rdTextbox As RadTextBox = CType(d.ContentContainer.FindControl(tbID), RadTextBox)
 
                        Dim rdEditorID As String = "rdEditor" + randID
                        Dim rdEditor As RadEditor = CType(d.ContentContainer.FindControl(rdEditorID), RadEditor)
 
                        Dim widget As New WidgetHTML
 
                        'Populate a widget
                        widget.SchemeID = 2
                        widget.Title = rdTextbox.Text
                        widget.HTML = rdEditor.Content
                        widget.Visible = True
 
                        'save widget
                        Dim ds As New DockSaved(1, widget, dID)
                        DockStore.Add(ds)
 
                    Case 2 '>>>>> Widget Type: .......
 
                End Select
            Next
        End If
 
        Session("Widgets") = DockStore
    End Sub
 
    Protected Sub rdDockLayout_LoadDockLayout(sender As Object, e As Telerik.Web.UI.DockLayoutEventArgs) Handles rdDockLayout.LoadDockLayout
        If DockStore.Count > 0 Then
            For Each w In DockStore
                Dim widgy As WidgetHTML = CType(w.WidgetObject, WidgetHTML)
 
                Dim dock As New RadDock
                dock.ID = w.dID
                dock.Title = "dk - returned"
                dock.ClientIDMode = UI.ClientIDMode.Static
                dock.Commands.Add(New DockExpandCollapseCommand())
                dock.Commands.Add(New DockCloseCommand())
 
                dock.AutoPostBack = True
                dock.EnableDrag = True
 
                Dim randID As String = w.dID.Substring(4)
 
                'if type 1
                Dim rdEditorID As String = "rdEditor" + randID
 
                Dim rdTextboxID = "tb" + randID
                Dim rdTextbox As RadTextBox = GetRadTextbox(rdTextboxID)
                rdTextbox.Text = widgy.Title
 
                Dim rdEditor As RadEditor = GetRadEditor(rdEditorID)
                rdEditor.Content = widgy.HTML
 
                dock.ContentContainer.Controls.Add(rdTextbox)
                dock.ContentContainer.Controls.Add(rdEditor)
 
                rdDockLayout.Controls.Add(dock)
                dock.Dock(rdDockZone)
            Next
        End If
    End Sub
 
    ''' <summary>
    ''' HTML components to build WebWidgets.
    ''' </summary>
    ''' <param name="WidgetName">Desired ID of the control.</param>
    ''' <returns>Returns the control requested with the correct ID.</returns>
#Region "Widgets"
 
    Private Function GetRadTextbox(WidgetName As String) As RadTextBox
        Dim rdTextbox As New RadTextBox
        rdTextbox.ID = WidgetName
        rdTextbox.ClientIDMode = UI.ClientIDMode.Static
        rdTextbox.Skin = "Windows7"
 
        Return rdTextbox
    End Function
 
    Private Function GetRadEditor(WidgetName As String) As RadEditor
        Dim rdEditor As New RadEditor
        rdEditor.ID = WidgetName
        rdEditor.ClientIDMode = UI.ClientIDMode.Static
        rdEditor.Skin = "Windows7"
 
        Return rdEditor
    End Function
 
#End Region
 
End Class









Slav
Telerik team
 answered on 25 Nov 2011
2 answers
97 views
I've a telerik chart created in .xaml file and trying to set the Pointshape property to Diamond. But I don't see this property available for chart control. Am I missing something?
Attached picture shows the available properties
Petar Marchev
Telerik team
 answered on 25 Nov 2011
3 answers
122 views
Dear support,

When i select 2 or more button controls, in design mode, and try to change Skin from the Properties window, the Visual Studio crashes.

I use:
Telerik Web UI 2011.2.915
Visual Studio 2008 (ASP.VB) 9.0.30729.4462

Thank you in advance for your time.

George
Navarino Technology Dept.


Error message:
Problem signature:
  Problem Event Name:    CLR20r3
  Problem Signature 01:    devenv.exe
  Problem Signature 02:    9.0.30729.1
  Problem Signature 03:    488f2b50
  Problem Signature 04:    Telerik.Web.Design
  Problem Signature 05:    2011.2.915.35
  Problem Signature 06:    4e71e666
  Problem Signature 07:    32c
  Problem Signature 08:    b
  Problem Signature 09:    System.InvalidCastException
  OS Version:    6.1.7601.2.1.0.256.48
  Locale ID:    1032

Additional information about the problem:
  LCID:    1033

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt
Slav
Telerik team
 answered on 25 Nov 2011
1 answer
37 views
In

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/serverside/serverevents/defaultvb.aspx

It says

Protected Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As UI.RadTabStripEventArgs)

Instead of

Protected Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As RadTabStripEventArgs)

Marc
Kate
Telerik team
 answered on 25 Nov 2011
3 answers
417 views
Hi guys,

We have recently upgraded to the latest rad controls as well as .net 4.

Most things are working fine however there appears to be an issue with the upload module. Upon click of the button I am returned the error:

Configuration Error 

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'Telerik.Web.UI.RadUploadHttpModule'. (C:\inetpub\wwwroot\..............\web.config line 80)

I have tried making various changes to the web.config but can't seem to get anything to resolve the issue. 

Below are the system.web and system.webserver sections from the web.config file. If you could point out where we are going wrong it would be greatly appreciated.

Thanks.

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
 
    <authentication mode="Forms">
      <forms name=".ASPXAUTH" timeout="60" />
    </authentication>
 
    <authorization>
      <allow users="*" />
    </authorization>
 
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule,System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" />
    </httpModules>
    <httpHandlers>
      <add verb="POST,GET" path="csharpwrapper/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.2.1018.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
 
    <httpRuntime executionTimeout="240000" maxRequestLength="102400" requestValidationMode="2.0" />   
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
  </system.web>
 
   
  <system.webServer>
 
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
    <handlers>
      <remove name="dot open" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="dot open" path="*.open" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
     <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="100000000" />
        </requestFiltering>
     </security>     
  </system.webServer>
</configuration>

Dimitar Terziev
Telerik team
 answered on 25 Nov 2011
5 answers
110 views

I have a AsyncUpload and RadProgressArea on a page that is loaded into a RadWindow all works fine until I call

GetRadWindow().autoSize(true);
and then the upload stops/freezes.

In fact if I try to resize the window in anyway using javascript it stops the upload.

What I'm trying to achieve is that when the window is first opened it's height is set big enough to show the AsyncUpload control say 100px. Then when a user selects a file to upload and RadProgressArea is shown then call autosize so that the window grows to show it and then when upload finishes and the RadProgressArea disapears then set the window height back to 100px.

Is there a way around this.
Peter Filipov
Telerik team
 answered on 25 Nov 2011
5 answers
140 views
Hi,

I tried to paste the following text which has some shared path in it in my RadEditor control, i am getting the blank message box. My teleik verison is "2010.1.519.35" . I have attached my sample code here and a screen shot.
"\\test\test\test\Reference"


<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<telerik:RadEditor runat="server" ID="radeditorSendEmail" LocalizationPath="~/App_GlobalResources/">
                        <Tools>
                        <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="InsertParagraph" />
                                <telerik:EditorTool Name="FormatBlock"/>
                                <telerik:EditorTool Name="Indent" />
                                <telerik:EditorTool Name="Outdent" />
                                <telerik:EditorTool Name="JustifyLeft" />
                                <telerik:EditorTool Name="JustifyCenter" />
                                <telerik:EditorTool Name="JustifyRight" />
                                <telerik:EditorTool Name="JustifyFull" />
                                <telerik:EditorTool Name="JustifyNone" />
                                <telerik:EditorTool Name="InsertUnorderedList" />
                                <telerik:EditorTool Name="InsertOrderedList" />
                                <telerik:EditorTool Name="InsertHorizontalRule" />
                                <telerik:EditorSeparator />
                                <telerik:EditorTool Name="InsertTable" />
                                <telerik:EditorTool Name="InsertSymbol" />
                                </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool  Name="ConvertToUpper" />
                                <telerik:EditorTool Name="ConvertToLower" />
                                <telerik:EditorTool Name="Cut" ShortCut="CTRL+X"/>
                                <telerik:EditorTool Name="Copy" ShortCut="CTRL+C"/>
                                <telerik:EditorTool Name="Paste" ShortCut="CTRL+V"/>
                                <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z"/>
                                <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y"/>
                                <telerik:EditorSeparator />
                                <telerik:EditorTool Name="Bold" ShortCut="CTRL+B"/>
                                <telerik:EditorTool Name="Italic" ShortCut="CTRL+I"/>
                                <telerik:EditorTool Name="Underline" ShortCut="CTRL+U"/>
                                <telerik:EditorTool Name="StrikeThrough" />
                                <telerik:EditorTool Name="Superscript" />
                                <telerik:EditorTool Name="Subscript" />
                                <telerik:EditorTool Name="FontName"/>
                                <telerik:EditorTool Name="FontSize"/>
                                <telerik:EditorTool Name="ForeColor"/>
                                <telerik:EditorTool Name="BackColor"/>
                            </telerik:EditorToolGroup>
                        </Tools>
                    </telerik:RadEditor>

Rumen
Telerik team
 answered on 25 Nov 2011
3 answers
82 views
HI !!! explain my problem...
I've one page with many Grid nasted like this example:
example
I'm searching a way to change the style of inner Grid only.
I've a global skin-them applicated to all my application; i try to overwrite RadGrid css class but,obviously, it change style to all Grid of the page.
Please help me, thanks !!!
 
Emanuele
Top achievements
Rank 1
 answered on 25 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?