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
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
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>
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.
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.
Hi,
Create RadDockZone,RadDock dynamically .And in this RadDock inside we can show the rad chart dynamically please help me