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

how to retaining radtextbox value

3 Answers 74 Views
Telerik Trainer
This is a migrated thread and some comments may be shown as answers.
srikanth
Top achievements
Rank 1
srikanth asked on 25 Nov 2010, 01:58 PM
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

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 25 Nov 2010, 05:15 PM
Hi Srikanth,

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

Greetings,
Dimo
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.
0
SoD
Top achievements
Rank 2
answered on 18 Mar 2011, 11:59 AM
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() != "") {
                            sifre.set_value($.md5(sifre.get_value()));
                        }
                    });
                });
            </script>
        </telerik:RadCodeBlock>

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.
0
Daniel
Telerik team
answered on 25 Mar 2011, 10:51 AM
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,
Daniel
the Telerik team
Tags
Telerik Trainer
Asked by
srikanth
Top achievements
Rank 1
Answers by
Dimo
Telerik team
SoD
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or