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

How Reset RadTextBox Text When User Click on Reset Buttton.

1 Answer 173 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sairam
Top achievements
Rank 1
Sairam asked on 18 May 2013, 10:11 AM
In Rad Grid,I have following,requirement the below code shows ,

 <telerik:GridTemplateColumn Visible="true" DataField="EFTNumber" HeaderText="EFT Number"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="EFTNumber">
                    <ItemTemplate>
                        <%# Eval("EFTNumber")%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadTextBox ID="rdtxtEFTNumber" runat="server" Text='<%# Eval("EFTNumber") %>'
                            Width="160px" onclick="shouldConfirm = true;" />
                        <telerik:RadButton ID="RbtnResetEFTNo" runat="server" Width="40px" AutoPostBack="true"
                            CausesValidation="false" Text="Reset" OnClick="RbtnResetEFTNo_Click1">
                        </telerik:RadButton>
                    </EditItemTemplate>
      </telerik:GridTemplateColumn>

I have,
1. One Rad Asynchronous column in Rad grid.
2.Two Reset Button above code I have  in grid also ,
when user upload picture and then click on reset button of rad text box,That time I lost time uploaded picture .so ,I don't want the loss the upload picture and also ....user click's on reset button I want ,ask confirmation ,using  Rad Confirm(),When User Click On the  "Yes" ,I want Display The rad Prompt box to enter Data.when user enter Data and click's on The Ok. I want to display the data in RadTextBox And also I don't want Post of that page.

Req: Rad Text box -->Button click--->rad Confirm--->yes-->rad prompt--->data--> OK----> display data--->in Rad Text Box-->Not loss of already Upload picture.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 23 May 2013, 07:21 AM
Hello Sairam,

I am not sure what is the purpose of the reset button. Are you trying to clear the entered value in the textbox? If that is your requirement I would suggest you to remove the value on client. Note that if you called postback the uploaded file will be lost. Additionally you could check out the following code library.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Sairam
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or