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
0
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
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.
i have tried your sample and the problem is the same, spin buttons are not rendered completely. Please, see the screenshot attached.
0
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.
Regards,
Viktor Tachev
Telerik
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.
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
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
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.
Finally i found the problem, it was a CSS style on riSingle class.
I really appreciate your help.
Sonia.