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

Rad Text Box loses entered data and needs to enter again!

17 Answers 247 Views
Input
This is a migrated thread and some comments may be shown as answers.
GSK
Top achievements
Rank 2
GSK asked on 30 Aug 2010, 01:07 PM
Hello,

When I enter data in the Rad Text Box (after a postback operation), the entered data does not remain for the next postback. I mean... The data entered in the Text box does not remain in the viewstate. I am facing this problem only when I use Rad Text Box. This is not page specific. But this does not happen everytime. The occurrence is more often but not always.

Please let me know if you need any further information regarding this problem.

Thanks
- gsk

17 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Aug 2010, 03:51 PM
Hello GSK,

Yes, we need additional information to identify the cause of the problem. A stand-alone runnable web page will be the best.

Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
GSK
Top achievements
Rank 2
answered on 01 Sep 2010, 01:01 PM
Hello Dimo,

I just added a ticket for the same issue... since I cannot upload solution file in this thread.

Please check the support ticket number 344318 for further details.

Thanks.

- Gsk
0
Rodrigo
Top achievements
Rank 1
answered on 08 Sep 2010, 04:42 PM
Hi guys!

I have the same problem.

But for me the RadTextBox loses the text property always when i use with WebUserControl.

Can anyone help me?

I'm using Visual Studio 2010 with Asp.Net WebForms 4 and RadControls_for_ASP.NET_AJAX_2010_1_519

Thanks!
0
Dimo
Telerik team
answered on 09 Sep 2010, 08:06 AM
Hi Rodrigo,

The problem in the case of GSK is a browser bug - IE8 does not fire client events for textboxes after postbacks (AJAX requests) initiated from script. The problem is not related to RadControls and can be reproduced with standard controls only. It is logged on the Microsoft website:

https://connect.microsoft.com/IE/feedback/details/552346/asp-textboxes-lose-their-client-events-after-ajax-submit

In the described case the bug breaks the RadTextBox functionality, because it relies on client events to store and retrieve its value.

Possible workarounds include:

1. Use standard asp:TextBoxes styled with RadFormDecorator to look like Telerik RadTextBoxes.
or
2. After each AJAX request, focus some other control on the page, different from the problematic textbox(es).


If the problem seems to be different in your case, please provide a simple runnable demo.

Kind regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jeff
Top achievements
Rank 1
answered on 15 Sep 2010, 10:40 PM
Will a future service pack get the RadTextBox to work with the IE bug?
0
Dimo
Telerik team
answered on 16 Sep 2010, 08:11 AM
Hello Tim,

I doubt that - it will be hard to implement a working control with no client events firing.

Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jeff
Top achievements
Rank 1
answered on 16 Sep 2010, 02:29 PM
Thanks for the reply.

Sadly the first work around isn't going to be an option for our team.  As a result I am a day away from declaring that we have to remove the RadText box from our product since it does not work in IE8 (at times).

What RadTextbox feature is so dependant upon this event which IE8 is not firing?  Is this a feature which we can turn off?

Sorry, I am just looking for another option before we rid our product of this RadText box control.

Thanks
Tim
0
Jeff
Top achievements
Rank 1
answered on 16 Sep 2010, 02:31 PM
PS. the microsoft link is dead.  I was unable to find another Microsoft article concerning this.
0
Dimo
Telerik team
answered on 16 Sep 2010, 03:23 PM
Hi Tim,

As mentioned earlier, you can use RadInputManager instead of RadTextBox.

RadInput textboxes render several <input> elements in order to support all their features, e.g. value formatting. As a result, the values of the textboxes must be syncronized with Javascript and client events are used for this (e.g. keypress, blur, focus, etc). So if there are no events, the control will not work correctly.

Using RadTextBox with one textbox is not an option at this time. Actually, RadInputManager does this, so it will work in the scenario in which RadTextBox fails (or IE fails, to be more correct).

Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vic
Top achievements
Rank 1
answered on 17 Aug 2012, 07:52 PM
this bug seems to have come back only it's happening in IE, Chrome, and FireFox...
0
Galin
Telerik team
answered on 22 Aug 2012, 08:57 AM
Hello Vic,

Could you please give us more details on what you are trying to achieve or possibly a small running project that we can use to reproduce the case? Alternatively a live URL will help us as well.


All the best,
Galin
the Telerik team
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.
0
Vic
Top achievements
Rank 1
answered on 22 Aug 2012, 01:39 PM

What I am doing is generating dynamic radtextboxes from the code behind and then when I edit them on the front end, their values are lost on post back.  It was working fine till I just updated to the newest release and if I use a standard asp:textbox it works fine.

0
Robin
Top achievements
Rank 1
answered on 22 Aug 2012, 02:42 PM
Hi,
For me the RadTextBox seems to be emptying, or, loose the text property when the textbox is in a WebUserControl. Also causes validators to fail the validation on a required field.

I can get the text to "commit" by pressing enter before bluring the field.

Using radcontrols 2012.2.607.40 with .net 4

Is my only alternative for user controls to use the radInputManager?

Thanks!

Robin
0
Vasil
Telerik team
answered on 27 Aug 2012, 01:03 PM
Hi Robin,

The asp:Valiodators should work correctly if you upgrade to the service pack with version 2012.2.724. We are currently looking for a solution for the TextBox to submits and validates its value even when not blurred. If we do success, it will be working into the next service pack.

Kind regards,
Vasil
the Telerik team
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.
0
Robin
Top achievements
Rank 1
answered on 28 Aug 2012, 06:19 PM
Thanks Vasil! New version fixed the issue.

Cheers,

Robin
0
Alexandre
Top achievements
Rank 2
answered on 13 May 2013, 04:28 PM
The problem is back again in version v2013.1.417.45. It was working fine in previous version.

Anybody can help?
0
Vasil
Telerik team
answered on 14 May 2013, 07:19 AM
Hi Alexandre,

Can you give us an example code that you are using and steps to reproduce?

All the best,
Vasil
the Telerik team
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
Input
Asked by
GSK
Top achievements
Rank 2
Answers by
Dimo
Telerik team
GSK
Top achievements
Rank 2
Rodrigo
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
Vic
Top achievements
Rank 1
Galin
Telerik team
Robin
Top achievements
Rank 1
Vasil
Telerik team
Alexandre
Top achievements
Rank 2
Share this question
or