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

RadNumericTextBox on TreeListTemplateColumn

6 Answers 140 Views
Input
This is a migrated thread and some comments may be shown as answers.
Sonia
Top achievements
Rank 1
Sonia asked on 03 Sep 2014, 06:05 AM
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.


6 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 05 Sep 2014, 12:07 PM
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.

 
0
Sonia
Top achievements
Rank 1
answered on 25 Sep 2014, 08:04 AM
Hi Viktor,

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

0
Viktor Tachev
Telerik team
answered on 29 Sep 2014, 02:39 PM
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.

 
0
Sonia
Top achievements
Rank 1
answered on 30 Sep 2014, 09:42 AM
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.
0
Accepted
Viktor Tachev
Telerik team
answered on 02 Oct 2014, 01:10 PM
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.

 
0
Sonia
Top achievements
Rank 1
answered on 06 Oct 2014, 10:20 AM
Hi Viktor,

Finally i found the problem, it was a CSS style on riSingle class.
I really appreciate your help.
Sonia.
Tags
Input
Asked by
Sonia
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Sonia
Top achievements
Rank 1
Share this question
or