RadNumericTextBox on TreeListTemplateColumn

7 posts, 1 answers
  1. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 03 Sep 2014 Link to this post

    When i use a RadNumericTextBox inside an InsertItemTemplate of a TreeListTemplateColumn the spin buttons are not rendered completely, just a half of the buttons. Moreover, the width of the textbox is adjusted to 100% independently of the width i specify.


  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 05 Sep 2014 Link to this post

    Hi Sonia,

    I tried to replicate the described behavior, however I was unable to. I am attaching a sample WebSite project I used for testing. The sample seems to work as expected on my end. The spin buttons of the RadNumericTextBox are visible and working. Also the Width of the input is not affected by the specified Width of the column.

    Would you give the attached sample a try and see if it is working for you? Let me know what is different in your scenario and what needs to be changed in the sample in order to replicate the described behavior.

    Regards,
    Viktor Tachev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 25 Sep 2014 in reply to Viktor Tachev Link to this post

    Hi Viktor,

    i have tried your sample and the problem is the same, spin buttons are not rendered completely. Please, see the screenshot attached.

  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 29 Sep 2014 Link to this post

    Hi Sonia,

    The behavior shown in the screenshot can be observed if the defined Width of the column is smaller than the default Width of the RadNumericTextBox. Try setting the Width property for the RadNumericTextBox so that the control would fit in the column. Check out the following markup for illustration.

    <telerik:TreeListTemplateColumn HeaderStyle-Width="150px">
        <ItemTemplate>
            <telerik:RadNumericTextBox runat="server" ID="RadNumericTextBox1" Value='<%# Eval("Money") %>' ShowSpinButtons="true" Width="140px"></telerik:RadNumericTextBox>
        </ItemTemplate>
    </telerik:TreeListTemplateColumn>


    Regards,
    Viktor Tachev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 30 Sep 2014 in reply to Viktor Tachev Link to this post

    It doesn't matter the width i set to RadNumericTextBox, it auto adjust to the width of the column.
    Please see the attached files.

    TreeListTemplateColumn150-RadNumericTextBox140.jpg is a screenshot of a RadNumericTextBox with width equal to 140px inside a TreeListTemplateColumn with width equal to 150px.

    TreeListTemplateColumn250-RadNumericTextBox140.jpg is a screenshot of a RadNumericTextBox with width equal to 140px inside a TreeListTemplateColumn with width equal to 250px.

    In both cases, the RadNumericTextBox is ignoring the width i specify for it and its width is relative to the width of the TreeListTemplateColumn.

    Kind regards,
    Sonia.
  7. Answer
    Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 02 Oct 2014 Link to this post

    Hello Sonia,

    I am afraid that the issue shown on the screenshots is not replicated on my end. I am attaching the sample project I used for testing. Try running it and let me know what is different in your scenario.

    Please let me know what should be changed in the sample in order to reproduce the behavior you are seeing.

    Regards,
    Viktor Tachev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 06 Oct 2014 in reply to Viktor Tachev Link to this post

    Hi Viktor,

    Finally i found the problem, it was a CSS style on riSingle class.
    I really appreciate your help.
    Sonia.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017