Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
109 views
Hi,

I have a DotNetNuke module with quite some controls being loaded dynamically. Each of the input controls has autopostback set. In practice, a user will tab to a next control.

In javascript, I put the ID of the newly focussed control in a hidden field.
Then autopostback occurs, and I use RadAjaxManager.FocusControl() to set the focus to the control in the hidden field.

This works just fine in FireFox and IE9, but doesn't work in IE7 (or IE9 with compatibility mode set to true).

Any ideas?

Thanks!
Stefan Kamphuis
Stefan Kamphuis
Top achievements
Rank 2
 answered on 25 Nov 2011
3 answers
80 views
Hi there,

I have a timer that updates a grid on a condition. For example:

if (IsDifferentFilter())
{
         //Load logs method is called so the datagrid will be updated
         Thread logsThread = new Thread(new ThreadStart(LoadLogs));
         logsThread.Start();
         logsThread.Join();
}
//else the datagrid will NOT be updated

The issue here is that even though the datagrid is NOT updated, it still gets refreshed. When I say refeshed i mean its just the datagrid not the whole page.

The grid is ajaxisfied using:

<telerik:RadAjaxManagerProxy ID="radAjaxManagerProxyLogs" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="tmrAutoFilter">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="dgLogs" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="dgLogs">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="dgLogs" LoadingPanelID="ldgBar" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


Any help would be appreciated.

Thanks

K

Edited (Nov-21-2011): I realized the OnInit code is being triggered after each timer tick as well. That is not normal is it
Mira
Telerik team
 answered on 25 Nov 2011
1 answer
122 views
Hi there,

We're currently experiencing problems with our RadGrid when grouping a column it is causing us issue with the opening of the right click context menu.

The problem occurs if we have for example 3 "Groups" in our grid, we have all our groups collapsed by default, we expand the third, and then right click, it causes a javascript error, if we expand the very first group and right click, it works fine, but then the right clicks on the third group are "offset" ...

see the attached video for more info

http://www.youtube.com/watch?v=fQ1vjApgekU&feature=youtu.be
Pavlina
Telerik team
 answered on 25 Nov 2011
11 answers
437 views
Hi,

I want open file window (which is open on the click of raduploader's select button) on link button.

Basically i want to upload a file on link button click.

Please help me its very urgent.


Thanks
Manish
Peter Filipov
Telerik team
 answered on 25 Nov 2011
1 answer
135 views
Hi,

I am using RadAsyncUpload Control to select multiple files. I am getting an exclamatory mark on first Item and the Progress bar and upload hangs.. and will getting below error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30618; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Wed, 23 Nov 2011 09:39:59 UTC

Message: Exception thrown and not caught
Line: 181
Char: 1
Code: 0
URI: http://inddev05:1003/ScriptResource.axd?d=ei_Gw_z0rZfSQzUuEsegiN9-cEJ388TU5aVfZWpJ63iR7oJ1qaQo05naumcYvJWhUxZpmL7MNZMwiz3CX1DE1T_-aFyBvRXlvtQ-dMQsVAIId9XvWVGFBLaTRz7JLo6H0m3qTmiLte10YkQV0TcumA6KZY385WJDZfVm9VX2dqvcvhlRDG5X0j5qfThrBdEQIPbj9A2&t=634333738072708768

How can i resolve this issue?
Bozhidar
Telerik team
 answered on 25 Nov 2011
1 answer
73 views
Hi all,

Is there any way to implement a ButtonClick event so that the button keeps down in mutual exclusion with another button?

Thanks,
Bruno
Slav
Telerik team
 answered on 25 Nov 2011
7 answers
122 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
69 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
113 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
93 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?