This is a migrated thread and some comments may be shown as answers.

reset() is not work

3 Answers 158 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
spt
Top achievements
Rank 1
spt asked on 29 Apr 2009, 01:57 PM

I use Telerik RadControls for Ajax 2008 Q3.

I have a user control with code something like this:

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="SettingsDisplay.ascx.cs" Inherits="TA2009.Web.Controls.SettingsDisplay" %>

<telerik:radformdecorator id="FormDecorator1" runat="server" decoratedcontrols="CheckBoxes" />
<telerik:radformdecorator id="FormDecorator2" runat="server" decoratedcontrols="RadioButtons" />

 

<table cellSpacing=1 cellPadding=1 width="100%" border=0 class="formTable">
<tr><td><asp:Label runat="server" ID="Label1" Text="Text" /></td>
<td><asp:RadioButtonList ID="rblstTotalTimeFormat" runat="server" SkinID="FormRadio" /></td>
</tr>
<tr><td>&nbsp;</td>
<td>
<asp:LinkButton ID="btnSubmit" runat="server" SkinID="FormButton" Text="Submit" />
<asp:LinkButton ID="btnReset" runat="server" SkinID="FormButton" Text="Reset" CausesValidation="false" UseSubmitBehavior="False" OnClientClick="forms[0].reset();return false;"/> </td></tr>
</table>

When I click Reset button in th Firefox 3.0.10 nothing occured, forms[0].reset() doesn't work.
If I remove <telerik:radformdecorator> controls Reset button works right.

Please help.

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 30 Apr 2009, 02:03 PM
Hi spt,

I tried to reproduce the problem locally by using your code but as you can see from the attached movie - to no avail.
Please open a support ticket and send me a small sample project where this issue could be reproduced - I will check it and do my best to help.



All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
spt
Top achievements
Rank 1
answered on 30 Apr 2009, 02:18 PM

Sorry, reset() doesn't work for  <

 

asp:RadioButtonList> and <asp:CheckBox> controls.
<telerik:RadTextBox and  RadComboBox works right.

 

 

 

 

 

 

 

 

 

0
Georgi Tunev
Telerik team
answered on 04 May 2009, 12:22 PM
Hello spt,

Thank you for bringing this problem to our attention - I reproduced and logged it in our database. For the time being I suggest to use code attached to this thread in order to avoid such problems.

Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FormDecorator
Asked by
spt
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
spt
Top achievements
Rank 1
Share this question
or