how to retaining radtextbox value

4 posts, 0 answers
  1. srikanth
    srikanth avatar
    7 posts
    Member since:
    Nov 2010

    Posted 25 Nov 2010 Link to this post

    i have set a value for radtextbox on client side using set_value() method. but before submitting my form, there is a post back (textchanged server event of other text box) due to which the radtext box is not showing the value. how can i fix this issue
  2. Dimo
    Dimo avatar
    8322 posts

    Posted 25 Nov 2010 Link to this post

    Hi Srikanth,

    I am afraid it is not clear where the problem comes from. Can you provide a simple standalone runnable test page?

    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. SoD
    SoD avatar
    8 posts
    Member since:
    Nov 2008

    Posted 18 Mar 2011 Link to this post

    I give same error. My Telerik version is 2010.3.1510.35.

    I change my textbox value before postback like that;

    <telerik:RadCodeBlock ID="rcb" runat="server">
                <script type="text/javascript">
                    $(document).ready(function() {
                        $("#<%= btnCreate.ClientID %>").click(function() {
                            var sifre = $find("<%= txtSifre.ClientID %>");
                            if (sifre.get_value() != "") {

    While debug javascript code the value is changed correctly. However at the code side, txtSifre.Text has old unchanged value. I hope this will be helpfull. In the older version of
    Telerik (2010.2) it was tested and worked. But the using version (2010.3.1510.35) not work.
    I cannot solve the problem. My textbox is passsword text mode while trying. I change into singleline
    mode but it is not worked.
  4. Daniel
    Daniel avatar
    4936 posts

    Posted 25 Mar 2011 Link to this post

    Hello SoD,

    I'm not sure how to reproduce the problem since your code works flawlessly on my end. Please test the attached demo and let me know if I'm missing something.

    Best regards,
    the Telerik team
Back to Top