Hi All,
Im using my Login Button inside the RadDock and i can't set the defaultbutton property of my page's form tag.Also i cant get my controls in script which is inside RadDock.I solved it by getting the clientID of btLogin .
(ie):document.getElementById("<%=btLogin.ClientID %>")
and same problem might have been occured with defaultbutton .Here is my design.
<form id="form1" runat="server" defaultbutton="btLogin">
<div>
<telerik:RadDockZone ID="rdzLogin" runat="server" Width="100%" Height="350px">
<telerik:RadDock ID="rdLogin" Title="<b>Login</b>" runat="server" EnableAnimation="true"
DefaultCommands="None" EnableDrag="false" Skin="Default" EnableRoundedCorners="true">
<ContentTemplate>
<asp:Button ID="btLogin" runat="server" Login" OnClick="btLogin_Click" />
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
</div>
</form>
I get the following error while setting defaultbutton in form tag itself and when i remove it no problem occurs :
Regards and Thanks,
Titti.S
Im using my Login Button inside the RadDock and i can't set the defaultbutton property of my page's form tag.Also i cant get my controls in script which is inside RadDock.I solved it by getting the clientID of btLogin .
(ie):document.getElementById("<%=btLogin.ClientID %>")
and same problem might have been occured with defaultbutton .Here is my design.
<form id="form1" runat="server" defaultbutton="btLogin">
<div>
<telerik:RadDockZone ID="rdzLogin" runat="server" Width="100%" Height="350px">
<telerik:RadDock ID="rdLogin" Title="<b>Login</b>" runat="server" EnableAnimation="true"
DefaultCommands="None" EnableDrag="false" Skin="Default" EnableRoundedCorners="true">
<ContentTemplate>
<asp:Button ID="btLogin" runat="server" Login" OnClick="btLogin_Click" />
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
</div>
</form>
I get the following error while setting defaultbutton in form tag itself and when i remove it no problem occurs :
The DefaultButton of 'form1' must be the ID of a control of type IButtonControl.
Can i set defaultbutton from code behind? Please Help me out...Regards and Thanks,
Titti.S