RadInputManager Question

6 posts, 0 answers
  1. FAR
    FAR avatar
    26 posts
    Member since:
    May 2009

    Posted 18 Nov 2009 Link to this post

    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)
  2. FAR
    FAR avatar
    26 posts
    Member since:
    May 2009

    Posted 19 Nov 2009 Link to this post

    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> 

  3. FAR
    FAR avatar
    26 posts
    Member since:
    May 2009

    Posted 19 Nov 2009 Link to this post

    Ok radinputManager sucks.
    The empty message text is inserted inside the Asp:Textbox.Text ... it's not the behavior of the RadTextBox.
  4. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 23 Nov 2009 Link to this post

    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.
  5. FAR
    FAR avatar
    26 posts
    Member since:
    May 2009

    Posted 24 Nov 2009 Link to this post

    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.
  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 25 Nov 2009 Link to this post

    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.
Back to Top