This is a migrated thread and some comments may be shown as answers.
RadInputManager Question
5 Answers 98 Views
This is a migrated thread and some comments may be shown as answers.
FAR
Top achievements
Rank 1
FAR asked on 18 Nov 2009, 11:18 AM
Hi, I have severals different RadTextBox in my page,

Each of them has the property "Empty Message"

I want to use the RadInputManager to gain performance, but is it really a good thing if i have to make One section (with empty message parameter) for each TextBox I have ?

for example translating this :
<telerik:RadTextBox runat="server" Id="Id1" EmptyMessage="Textbox1"></telerik:RadTextBox> 
 
<telerik:RadTextBox runat="server" Id="Id2" EmptyMessage="Textbox2"></telerik:RadTextBox> 
 
<telerik:RadTextBox runat="server" Id="Id3" EmptyMessage="Textbox3"></telerik:RadTextBox> 

by this :

 <telerik:RadInputManager runat="server" ID="radInputManager1"
                 <telerik:TextBoxSetting EmptyMessage="TextBox1"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="ID1" /> 
                     </TargetControls> 
                 </telerik:TextBoxSetting> 
     <telerik:TextBoxSetting EmptyMessage="TextBox2"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="ID2" /> 
                     </TargetControls> 
                 </telerik:TextBoxSetting> 
     <telerik:TextBoxSetting EmptyMessage="TextBox3"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="ID3" /> 
                     </TargetControls> 
                 </telerik:TextBoxSetting> 
 </telerik:RadInputManager> 

Do I have a  performance (init and JS) gain this way?
Because I have to write more lines and increases the size of the page...

What is the performance impact if I have 30 RadTextBox on the page ?
Because I run on IE and i have a really big performance issue (On initialization of the page, and on running JS of the components, client side only once the page is fully loaded) even if I follow all the teleriks recommandations (Compression, Radmanagers, debug=false, etc)

5 Answers, 1 is accepted

Sort by
0
FAR
Top achievements
Rank 1
answered on 19 Nov 2009, 02:11 PM
While waiting for an answer here is a bug i discovered :


I have a lot of <asp:Textbox> in my page, in cell of table.
I have a radInputManager to manage all of theses TextBox

When i Init the page, if my mouse go over a textbox or click on it, the size of the Textbox is changing (1 or 2px maybe)
One time per TextBox, then they're not changing anymore till i press F5 and start again.

Here's an example :

  <telerik:TextBoxSetting EmptyMessage="Poste Organigramme" > 
                  <TargetControls> 
                    <telerik:TargetInput ControlID="PosteOrga_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 



 <asp:TextBox Id="PosteOrga_Input"  runat="server" ToolTip="Poste Organigramme" width="240px"></asp:TextBox> 

This Behavior doesnt exist if i Put RadTextBox instead of RadInputManager.
How Can i Fix this ?

(Here is my total RadInputManager, and once the page is initialized the performances  are REALLY BAD, (time response when i click on a textbox etc)

      <telerik:RadInputManager runat="server" ID="radInputManager1" RegisterWithScriptManager="true" > 
                 <telerik:NumericTextBoxSetting MaxValue="100" MinValue="0" EmptyMessage="Age Min" InitializeOnClient="true"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="AgeMin_Input" /> 
                              </TargetControls> 
                 </telerik:NumericTextBoxSetting> 
                  <telerik:NumericTextBoxSetting MaxValue="100" MinValue="0" EmptyMessage="Age Max"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="AgeMax_Input" /> 
                                       </TargetControls> 
                 </telerik:NumericTextBoxSetting> 
                  <telerik:NumericTextBoxSetting MaxValue="100" MinValue="0" EmptyMessage="Part Gaz Min"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="PartGazMin_Input" /> 
                                       </TargetControls> 
                 </telerik:NumericTextBoxSetting> 
                  <telerik:NumericTextBoxSetting MaxValue="100" MinValue="0" EmptyMessage="Part Gaz Max"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="PartGazMax_Input" /> 
                     </TargetControls> 
                 </telerik:NumericTextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="NNI"
                 <TargetControls> 
                    <telerik:TargetInput ControlID="NNI_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="Nom" > 
                 <TargetControls> 
                    <telerik:TargetInput ControlID="Nom_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="Prenom" > 
                 <TargetControls> 
                    <telerik:TargetInput ControlID="Prenom_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="Diplôme principal" > 
                 <TargetControls> 
                    <telerik:TargetInput ControlID="Diplome_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="Commentaire Général"
                 <TargetControls> 
                    <telerik:TargetInput ControlID="CommentaireGeneral_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="UM" > 
                 <TargetControls> 
                    <telerik:TargetInput ControlID="Unite_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="DUM" > 
                 <TargetControls> 
                    <telerik:TargetInput ControlID="Unite2_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="Poste Organigramme" > 
                  <TargetControls> 
                    <telerik:TargetInput ControlID="PosteOrga_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                        <telerik:TextBoxSetting EmptyMessage="Emploi GK"
                  <TargetControls> 
                    <telerik:TargetInput ControlID="EmploiGK_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                        <telerik:TextBoxSetting EmptyMessage="Territoire" > 
                  <TargetControls> 
                    <telerik:TargetInput ControlID="DirTerritorial_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                        <telerik:TextBoxSetting EmptyMessage="Commentaire potentiel" > 
                  <TargetControls> 
                    <telerik:TargetInput ControlID="CommentairePotentiel_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                                      <telerik:TextBoxSetting EmptyMessage="Commentaire mobilité"
                  <TargetControls> 
                    <telerik:TargetInput ControlID="CommentMobile_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                                      <telerik:TextBoxSetting EmptyMessage="Mot Clé"
                  <TargetControls> 
                    <telerik:TargetInput ControlID="MotCle_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
                 <telerik:TextBoxSetting EmptyMessage="Métier" > 
                  <TargetControls> 
                    <telerik:TargetInput ControlID="Metier_Input" /> 
                       </TargetControls> 
                 </telerik:TextBoxSetting> 
    
            </telerik:RadInputManager> 

0
FAR
Top achievements
Rank 1
answered on 19 Nov 2009, 04:57 PM
Ok radinputManager sucks.
The empty message text is inserted inside the Asp:Textbox.Text ... it's not the behavior of the RadTextBox.
0
Veli
Telerik team
answered on 23 Nov 2009, 11:45 AM
Hello FAR,

On your first post. To gain a better understanding of RadInputManager's performance advantages over multiple input controls, you can refer to the following help article:

RadInputManager Performance

Particularly, 30 RadInput controls on page mean 30 different client objects for these control's client functionality. Using RadInputManager means a single client object for all inputs. Benefits in the page initialization time should be obvious.

On your second post. I could not reproduce the layout glitch you are experiencing. If you provide us some details on the scenario (setup, some sample markup/code) and some clear steps to reproduce the issue, we can look into this.

On your third post. I do not understand this comment. All other RadInput controls also insert the empty message into the visible text box, saving the actual value in the client object.

Sincerely yours,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
FAR
Top achievements
Rank 1
answered on 24 Nov 2009, 01:36 PM
Well for my third post :

_If i set the empty message property to the RadTextBox and i postback
on the serverside in the codebehind, the RadTextBox.Text  will be :   null. (and that's cool)

_If i set the empty message property to the radInputManager, the visual effect is not the same (it's not really the same css style of the radTextbox Empty message is just the Textbox initialized with the "Empty message" Value)
 And if I postback :
on the serverside in the codebehind, the TextBox.Text will be the same as the "empty message"


try this :

<RadInputManager> 
// Code for TextBox1 EmptyMessage = "toto" 
</RadInputManager> 
 
<asp:TextBox runat="server" id=TextBox1"></asp:TextBox> 
 
<telerik:RadTextBox runat="server" id="TextBox2" EmptyMessage="toto"/> 

and then dont write anything in the textboxes and submit :

protected void Form_Submitted(object sender, eventArgs e) 
  Write(TextBox1.Text); // <- value is "toto" 
  Write(TextBox2.Text); // <- value is "" 
 

It's not the same behavior between RadTextBox and RadInputManager.
0
Iana Tsolova
Telerik team
answered on 25 Nov 2009, 04:08 PM
Hello FAR,

I followed your description and prepared a sample project in order to replicate the issue but to no avail. Could you please check it out and let me know if I missed something out?

Greetings,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Input
Asked by
FAR
Top achievements
Rank 1
Answers by
FAR
Top achievements
Rank 1
Veli
Telerik team
Iana Tsolova
Telerik team
Share this question
or