GridColumn for any numeric fields (decimal/int) have increment/decrement arrows?

1 Answer 12 Views
Grid
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Rob asked on 12 Nov 2025, 04:56 PM | edited on 12 Nov 2025, 05:06 PM

I have no idea when this started but I suspect when we upgraded to 11.x control suite.

<GridColumn Field=@nameof(BookingEquipmentCommodityModel.ItemCount) Title="Count" Width="1.5rem" />

As you can see, there is no numeric template and this is a simple GridColumn, but I'm getting increment arrows on any column that is numeric (Int, Decimale, Double, etc.)?

I don't want them and have no idea why I'm getting them since I don't define the column with a template for TelerikNumericTextBox??

In my attempt (which failed) to work-around this issue, I setup a template for the column using TelerikNumericaTextBox to see I could disable the arrows ... and that didn't work either?

                                <GridColumn Field=@nameof(BookingEquipmentCommodityModel.CommodityWeight) Editable="true" Title="Weight" Width="3rem">
                                    <Template Context="cwContext">
                                        @{
                                            var cw = (BookingEquipmentCommodityModel)cwContext;
                                        }
                                        <TelerikNumericTextBox @bind-Value="@cw.CommodityWeight" Arrows="false"></TelerikNumericTextBox>
                                    </Template>
                                </GridColumn>

still get the arrows?

Help?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 13 Nov 2025, 09:45 AM

Hi Rob,

The Grid renders numeric editors with arrows by default and I don't remember the opposite behavior. At least this is what I see from versions 3.x from early 2022.

If you want to remove the arrows in edit mode, use an <EditorTemplate>, not a display <Template>.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
commented on 13 Nov 2025, 06:08 PM | edited

Thanks Dimo, I'll use the Editor Template.

I'd like to request that the default behavior for Numeric fields in a Grid or Numeric TextBox should NOT default to having arrows.  In the 40 years I've been coding, Up/Down arrows on numeric input has NEVER been the majority case desire for end user requirements.

Dimo
Telerik team
commented on 14 Nov 2025, 07:18 AM

Hmm, changing the default behavior requires substantial customer demand that doesn't exist at this point. Moreover:

  • It will be strange for the NumericTextBox itself to have arrows by default, while the NumericTextBox editor to not have.
  • The default <input type="number" /> also renders arrows by default.
Tags
Grid
Asked by
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Answers by
Dimo
Telerik team
Share this question
or