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

RadTextBox issue in IE7

4 Answers 110 Views
Input
This is a migrated thread and some comments may be shown as answers.
Wolfgang Sigel
Top achievements
Rank 1
Wolfgang Sigel asked on 01 Jul 2010, 10:16 AM
Hi Telerik,
I'm facing serious problems with a RadTextBox in IE7. The setting of the textbox (in a user control) is as follows:

<telerik:RadTextBox ID="RadTextBoxRollingStock" runat="server" TextMode="MultiLine" Rows="1"
                Label="Name the rolling stock" LabelCssClass="label_inputfield" Width="340px"
                Skin="input_calculator" EnableEmbeddedSkins="False">
 </telerik:RadTextBox>

When I try to run the page the VS debugger comes up displaying (reduced to the part where the problem comes up):

Telerik.Web.UI.RadInputControl.prototype={initialize:function(){Telerik.Web.UI.RadInputControl.callBaseMethod(this,"initialize");
this._clientID=this.get_id();
this._wrapperElementID=this.get_id()+"_wrapper";
this._textBoxElement=$get(this.get_id()+"_text");
this._originalTextBoxCssText=this._textBoxElement.style.cssText;
if(this._originalTextBoxCssText.lastIndexOf(";")!=this._originalTextBoxCssText.length-1){this._originalTextBoxCssText+=";";
}if($telerik.isIE7){var b=$get(this._wrapperElementID);
if(b.style.display=="inline-block"){b.style.display="inline";
b.style.zoom=1;
}


I've debugged these lines and got:

this._clientID   "CalculatorWizard_CalcStep3_RadTextBoxRollingStock"   String
this._wrapperElementID   "CalculatorWizard_CalcStep3_RadTextBoxRollingStock_wrapper"   String
this._textBoxElement   {object}   DispHTMLTextAreaElement
this._originalTextBoxCssText   "WIDTH: 100%;"   String
this._originalTextBoxCssText.lastIndexOf(";")   11   Long
this._originalTextBoxCssText.length-1   11   Long
$telerik.isIE7   true   Boolean
$get(this._wrapperElementID)   null   Object
b   null   Object

b.style.display   Objekt erforderlich   Fehler

So the problem comes up when variable b is used - since it's null at that time. In FireFox this problem doesn't come up. I also don't understand why this problem comes up only with this specific RadTextBox since we're using similar ones with same css, skins, etc
and there is no problem.

Any suggestions what could cause this ?

Thanks, Wolfgang

4 Answers, 1 is accepted

Sort by
0
Wolfgang Sigel
Top achievements
Rank 1
answered on 01 Jul 2010, 12:50 PM
I found the "source" of the problem: there is an asp:panel before the RadTextBox, and that Panel has its visibility initially set to false.
Setting its visibility to true resolves the problem with the RadTextBox mentioned before. However - I do have a reason to display / not display that panel.

Wolfgang
0
Dimo
Telerik team
answered on 01 Jul 2010, 01:02 PM
Hello Wolfgang,

$get(this._wrapperElementID) can be null only if there is no HTML element with an ID of this._wrapperElementID on the page. Since such an element exists (this is the wrapper DIV of the RadTextBox control), the error is a little strange and we will need a simple web page in order to track down the exact cause of the problem.

By the way, please validate the page and check for invalid HTML.

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
Wolfgang Sigel
Top achievements
Rank 1
answered on 01 Jul 2010, 02:56 PM
Hi Dimo,
how do I upload files to you - doing about 30 - 50 hardcopys is a little cumbersome - for me to do & for you to read ...

Wolfgang
0
Dimo
Telerik team
answered on 01 Jul 2010, 03:13 PM
Hello Wolfgang,

You can attach files in formal support tickets sent from your Telerik account. In order to send support tickets, you must have a valid subscription.

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
Tags
Input
Asked by
Wolfgang Sigel
Top achievements
Rank 1
Answers by
Wolfgang Sigel
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or