Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
116 views
Hello.

I try use example of loadDockLayout  in this link : http://www.telerik.com/help/aspnet-ajax/dock_serversideloaddocklayout.html but
i receive one error that deserialize is not a member of system.web.httpcookie on this line :

Dim state As DockState = dockState.Deserialize(states(i))

have  other example to save and restore state of docklayout ?

Thank you
Ivan Zhekov
Telerik team
 answered on 02 May 2016
1 answer
74 views

Hello,

I'm wondering what the best way would be to push content to a dock control when the underlying information has been changed. I was considering trying to hook it up with SignalR but I'm hoping there may be a simpler solution. 

Application Senerio: 

I have several zones that can contain one or more dock controls. It is basically a scheduling system and the docks display information about an event. I want to be able to update all devices that are viewing the application if someone makes a change to an event. The zones are static but I'm dynamically creating the dock controls and adding them to the zones. 

 

Any pointers or ideas of the best way to achieve this would be much appreciated. 

 

Thanks,
Brian

Vessy
Telerik team
 answered on 16 Mar 2016
21 answers
2.1K+ views
Hello
When I debug my application I come across this error all the time.
Debugging of application stops at the ScriptResource.axd file showing the path of my application.
And gives a message
"Microsoft JScript runtime error: Object doesn't support this property or method"

This MicrosoftJScript error occurs all the time when i try to display iframe url, saying Permission is denied.

Can you help me with this?
Thank you.


shanmugam
Top achievements
Rank 1
 answered on 14 Mar 2016
1 answer
123 views

I have telerik RadDockZone and I have placed three closing window, setting window and refresh window icons something like this

 

<telerik:RadDockZone Style="border: 0;" runat="server" ID="RadDockZone1"> <telerik:RadDock runat="server" ID="RadDock1" DockHandle="TitleBar" Height="100%" Width="100%" EnableRoundedCorners="true" EnableAnimation="false"> <Commands> <telerik:DockCloseCommand></telerik:DockCloseCommand> <telerik:DockCommand Name="Custom Command" OnClientCommand="CustomCommand"></telerik:DockCommand> <telerik:DockCommand Name="doRefresh" Text="Refresh" AutoPostBack="true" CssClass="CustomCommandRefresh" /> </Commands> <ContentTemplate> <asp:Panel runat="server" ID="Panel1" Style="height: auto; width: auto" /> </ContentTemplate> </telerik:RadDock> </telerik:RadDockZone>

 

I just want to change Refresh icon which is

 

<telerik:DockCommand Name="doRefresh" Text="Refresh" AutoPostBack="true" CssClass="CustomCommandRefresh" />

 

to something else is it possible to change default icons for telerik docks?? please find attached image to further illustrate 

 

SANJAY
Top achievements
Rank 1
 answered on 20 Jan 2016
1 answer
75 views

I have a bunch of different docks containing a listviews on a page.  See example below.   We are using custom docklayout storage -see below.  My question is why is LoadStateFromStorage called before a paging event and then SaveStateToStorage is called after it.  So whenever a user pages, there are 3 calls to the database.

 

Public Class DockLayoutStorage
Implements IStateStorageProvider
Public Function LoadStateFromStorage(key As String) As String Implements IStateStorageProvider.LoadStateFromStorage
Dim params As List(Of SqlParameter)
params = New List(Of SqlParameter)
params.Add(New SqlParameter("@User_Id", key))
Return OGC.Toolkit.Misc.DataAccess.ExecuteScalar("GetDockState", params, "csxxxx").ToString
End Function
Public Sub SaveStateToStorage(key As String, serializedState As String) Implements IStateStorageProvider.SaveStateToStorage
Dim params As List(Of SqlParameter)
params = New List(Of SqlParameter)
params.Add(New SqlParameter("@User_Id", key))
params.Add(New SqlParameter("@Dock_State", serializedState))
OGC.Toolkit.Misc.DataAccess.ExecuteQuery("InsUpdDockStates", params, "csxxx")
End Sub

 

<telerik:RadDock runat="server" ID="dockNotifications" Title="Notifications" Style="margin-bottom: 5px; margin-top: 5px" DefaultCommands="ExpandCollapse" EnableAnimation="true"
AutoPostBack="true" DockMode="Docked" CommandsAutoPostBack="true" EnableRoundedCorners="true">
<ContentTemplate>
<telerik:RadAjaxPanel ID="upNotifications" runat="server" LoadingPanelID="uprgNotifications">
<asp:ListView runat="server" ID="lvNotifications" DataSourceID="odsNotifications">
<LayoutTemplate>
<asp:PlaceHolder runat="server" ID="itemPlaceHolder"></asp:PlaceHolder>
<telerik:RadDataPager ID="dpNotifications" runat="server" PagedControlID="lvNotifications" PageSize="5" Skin="Default" OnCommand="dp_Command">
<Fields>
<telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="Numeric"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerPageSizeField PageSizeText="Page size: " PageSizes="5,10,20,50" HorizontalPosition="RightFloat" PageSizeControlType="RadDropDownList"></telerik:RadDataPagerPageSizeField>
</Fields>
</telerik:RadDataPager>
</LayoutTemplate>
<ItemTemplate>
<fieldset class="dock">
<legend style="font-weight: bold"><%#Eval("Notification_Header")%></legend>
<asp:Literal runat="server" ID="litNotificationText"></asp:Literal>
</fieldset>
</ItemTemplate>
<EmptyDataTemplate>
<div class="center" style="margin-top: 5px">No notifications available.</div>
</EmptyDataTemplate>
</asp:ListView>
<asp:ObjectDataSource ID="odsNotifications" runat="server" TypeName="xxx.DataAccess" SelectMethod="GetDataTable">
<SelectParameters>
<asp:Parameter Name="sProc" DefaultValue="xxxGetNotifications" />
<asp:Parameter Name="params" />
<asp:Parameter Name="connStr" DefaultValue="csxxx />
</SelectParameters>
</asp:ObjectDataSource>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="uprgNotifications" runat="server" Skin="Default" MinDisplayTime="0"></telerik:RadAjaxLoadingPanel>
</ContentTemplate>
</telerik:RadDock>

 

 

Slav
Telerik team
 answered on 04 Jan 2016
6 answers
161 views
Dear All,

Is there any option to use Telerik DOCK as in Visual Studion Toolbar, Solution Explorer docks. (Docking the window by side of the page and undock when needed).

Thanks in Advance,
-- Omm --
guy
Top achievements
Rank 1
 answered on 09 Dec 2015
3 answers
153 views

Hello Telerik,

I can't seem to hide my RadDock's border no matter what. I've tried all the options below but it still shows (see attached screenshot):

In my code behind:

Dim rd As New RadDock
rd.ID = "Dock1"
rd.DockMode = DockMode.Docked
rd.DockHandle = DockHandle.None
rd.ControlStyle.BorderStyle = BorderStyle.None
rd.ControlStyle.BorderWidth = 0
rd.Resizable = False
rd.BorderStyle = BorderStyle.None
rd.BorderWidth = 0
rd.ContentContainer.BorderStyle = BorderStyle.None
rd.ContentContainer.BorderWidth = 0

In my .ASPX file:

<style type="text/css">
    /* Remove border on all docks */
    .rdTable, .rdTop, .rdMiddle, .rdBottom    
    {   
        border-width: 0px !important;   
        border-style: none !important;
    }   
</style>

I'm out of ideas. Am I missing something else?

Thanks for any help.

KOGAN
Top achievements
Rank 1
 answered on 04 Nov 2015
3 answers
120 views
I have my rad docks located within a multipage view. When the view is activated, the docks appear but the titles are missing.

(see attached "problem.jpg")

Is there a way to force the repaint method from code-behind, so I can run it during my view activation? Reclicking on the view link causes the titles to display properly.

(see "ok.jpg")
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Oct 2015
1 answer
113 views

Hi 

i Have a Raddockzone with raddock with in the dock how can i place the usercontrol .

In  usercontrol i have a radhtmlchart how can i dynamically create the radchart with in the raddock any suggestions.

 

Thakns.

Slav
Telerik team
 answered on 25 Aug 2015
1 answer
78 views

 

Hi,

    Create RadDockZone,RadDock dynamically .And in this RadDock inside we can show the rad chart  dynamically please help me 

Vessy
Telerik team
 answered on 21 Aug 2015
Narrow your results
Selected tags
Tags
+123 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?