I am using the eval version 2009.3.1208.35 of the RadDock control and attempting to add a custom command. I have created the custom command by typing the information in the code(below is the code). The designer gives me this error -
Error Creating Control - telerik:dockcommand
No 'runat=server' attribute present on the
dockcommand tag.
code to register it:
<%
@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
javascript code block:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function OnClientCommand(dock, args) {
$find(
"<%=RadDockZone1.ClientID %>").dock(dock);
}
</script>
</telerik:RadCodeBlock>
code to add command:
<div id="divRadDocks" runat="server" style="border-style:none; left:620px; top:65px; width:520px; position: absolute; background-color: #FFFFFF;">
<telerik:RadDockLayout runat="server" ID="RadDockLayout1"
StoreLayoutInViewState="True" >
<telerik:RadDockZone runat="server" ID="RadDockZone1" Style="float: left;
background: #f5f4e8;" Width="250px" MinHeight="400px" FitDocks="True">
<telerik:RadDock runat="server" ID="RadDock1" Width="250px"
Title="Bill History" DefaultCommands="ExpandCollapse" Resizable="True">
<ContentTemplate>
<div id="divbillhistory">
</div>
</ContentTemplate>
</telerik:RadDock>
<telerik:RadDock runat="server" ID="RadDock2" Title="Pickup Information"
DefaultCommands="ExpandCollapse" Width="250px" Resizable="True">
<Commands>
<telerik:DockCommand Name="Test Command" AutoPostBack="false" OnClientCommand="OnClientCommand" />
</Commands>
<ContentTemplate>
<div id="divInlandPickupInfo" style="width:250px; color: Black; font:Arial; font-weight:normal; font-size:8pt;">
<table style="width:100%">
<tr style="width:100%">
<td >
Quote #:
</td>
<td>
<input id="TextQuoteNumber" type="text" />
</td>
<td >
Pro #:
</td>
<td>
<input id="TextProNumber" type="text" />
</td>
</tr>
</table>
</div>
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
<telerik:RadDockZone runat="server" ID="RadDockZone3" Style="float: right; background: #fff3c8;"
Width="250px" MinHeight="400px" FitDocks="True">
<telerik:RadDock runat="server" ID="RadDock4" Width="250px"
Title="ContentContainer" DefaultCommands="ExpandCollapse" Resizable="True">
</telerik:RadDock>
</telerik:RadDockZone>
</telerik:RadDockLayout>
<table style="width:100%">
<tr style="width:100%">
<td style="width:100px">
<input id="Button1" visible="true" type="button" value="Undock" onclick="undockinland()" />
</td>
<td style="width:100px">
<input id="Button2" visible="false" type="button" value="Show" onclick="radshowheightwidth()" />
</td>
<td style="width:100px">
<input id="Button3" visible="false" type="button" value="Dock" onclick="dockinland()" />
</td>
<td id="TESTRADOCKCLICK" runat="server">
 
</td>
</tr>
</table>
</div>