How Reset RadTextBox Text When User Click on Reset Buttton.

2 posts, 0 answers
  1. Sairam
    Sairam avatar
    56 posts
    Member since:
    May 2013

    Posted 18 May 2013 Link to this post

    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.

  2. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 23 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top