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

NumericUpDown IsEditable property does not work well

18 Answers 362 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Rogério
Top achievements
Rank 1
Rogério asked on 28 May 2009, 02:09 PM
Hello,

I'm using RadNumericUpDown and in some occasions I'd like to set it like "ReadOnly"! The approximated property that I found is IsEditable!

When setting IsEditable to false, the controls allows to delete content with keyboard and also to change value using mouse clicks on arrows.

Is there any work-arround for this issue? Do you have any plans to fix it?

Thanks.

Best Regards,
Rogério
John
Top achievements
Rank 1
commented on 29 Nov 2023, 07:07 PM

I just ran into this problem myself and the solution is to set the INCREMENT to 0.  Then nothing happens when the arrows are pressed.

18 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 29 May 2009, 11:32 AM
Hi Rogério,

We will address the issues around the IsEditable property with one of the next updates of RadControls for Silverlight. As a workaround I would suggest when you don't want to let your users to edit the control value to set its IsEnabled property to false.

Sincerely yours,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Walter
Top achievements
Rank 1
answered on 11 Nov 2009, 12:08 PM
Hello Valeri Hristov,

it seems that IsEditable is still not working in Q3/2009.
Could you please confirm and inform me when the problem will be fixed.

Kind regards
Daniel

0
Valeri Hristov
Telerik team
answered on 16 Nov 2009, 08:47 AM
Hi Daniel,

It seems that we introduced this bug again while fixing another. I apologize for the inconvenience, today an internal build will be published, that will contain the fix of this problem.

Regards,
Valeri Hristov
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.
0
Justin Lee
Top achievements
Rank 1
answered on 17 Dec 2011, 07:29 PM
I'm using Q1 2011, and IsEditable still doesn't appear to work.  I have a NumericUpDown and set IsEnabled to false, but I am still able to change the value.  Any update on this?

Thanks,
Justin
0
Justin Lee
Top achievements
Rank 1
answered on 17 Dec 2011, 07:34 PM
I should have specified...  With IsEnabled = false, I cannot change the value by typing a number, but I can change it by using the arrow keys or by clicking on the Up/Down buttons.  Is this as designed?  If so, is IsEnabled the only option?  (I'd rather not use IsEnabled because its so hard to read when disabled)
0
Valeri Hristov
Telerik team
answered on 20 Dec 2011, 11:24 AM
I am afraid that the IsEditable prevents the TextBox in RadNumericUpDown from receiving text input (we set IsReadOnly=true), but the buttons are allowed to be clicked. You could try also setting ShowButtons=false when you have IsEditable=false - this way the buttons will not be visible and the TextBox will not be editable.

Greetings,
Valeri Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Justin Lee
Top achievements
Rank 1
answered on 21 Dec 2011, 03:44 PM
IsEditable = false and ShowButtons = false would ALMOST work... The only issue with that the user can still change the value by using the UP and DOWN keys.

Looks like I'll have to use IsEnabled, or replace it with a Readonly textbox when I don't want the user to edit it.

Thanks,
Justin
0
BigShoes
Top achievements
Rank 1
answered on 15 Mar 2013, 11:15 AM
Justin,

Simply set the LargeCharge and the SmallChange properties to 0 when you want to disable the ability of the user to press up/down keys when IsEditable = False. 
0
Matt
Top achievements
Rank 1
answered on 11 Mar 2014, 05:49 PM
Is there ever going to be a fix for this? It seems like it would be an easy fix to ignore the UP and DOWN keys if the control is set to IsEditable=false.
0
Konstantina
Telerik team
answered on 14 Mar 2014, 04:07 PM
Hi Matt,

This is the behavior of the NumericUpDown control by design - since you are able to change the value with the buttons, it is normal to be able to change the value with the Up and Down keys. You could handle the KeyDown event and cancel it when the control has set IsEditable=False.

Regards,
Konstantina
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Matt
Top achievements
Rank 1
answered on 14 Mar 2014, 07:12 PM
Yes, when IsEditable==False, you are able to change the value with the buttons. I would argue that this behavior is also wrong. (Are you not editing the value?)

If this is by design, then I would argue that the control should have an IsReadOnly property that would prevent any value changes. (Using IsEnabled==False is not an acceptable solution. A disabled control cannot receive focus, its value cannot be selected and copied, and it cannot trigger mouse events - to initiate context menus, for example.)

Your suggested solution of handling the KeyDown event and cancelling the event does not work. Unfortunately, the way the RadNumericUpDown control itself handles the KeyDown event prevents the user from cancelling the event.
0
Konstantina
Telerik team
answered on 19 Mar 2014, 11:58 AM
Hello,

I have logged the ReadOnly feature request. You could vote for it in our feedback portal: http://feedback.telerik.com/Project/143/Feedback/Details/123258-add-readonly-property-to-the-numericupdown-control
Please, if you have any notes, feel free to add them there.
If it receives enough clients' requests we will put it in our development plan.

Regards,
Konstantina
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Jonathan
Top achievements
Rank 1
answered on 02 Jun 2015, 06:10 PM

You have got to be kidding me.

Anyone with a bit of common sense can see this is an obvious bug.

Every suggestion in this post is an unacceptable workaround, and to blame the buttons and say this is by design is simply a joke.

If you have a property called IsEditable on a control, it can only mean one thing; Either the control is editable or it is not, there are no middle cases here.

We are in the middle of 2015, 6 years after you initially (correctly) confirmed this to be a bug.

These kind of situations are what makes potential customers stay on the fence..

Please take notice..  Jonathan.

0
Georgi
Telerik team
answered on 04 Jun 2015, 10:25 AM
Hi Jonathan,

Thank you for the feedback.

We also agree that introducing the ReadOnly property needs to be addressed. Also, please note that as the Q2 2015 is just around the corner we will be planning the items for the next release and we will definitely consider the feature. Also you can subscribe for the feedback item so you will be notified when its status is changed.

Nevertheless we are sorry for the inconvenience caused.

Regards,
Georgi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jonathan
Top achievements
Rank 1
answered on 06 Jun 2015, 02:55 PM

Hi Georgi,

Ignoring everything I said means we disagree.

As I said, this is not a feature request, this is clearly a bug involving IsEditable property.

You are suggesting to ignore the bug, and consider a new feature. If there is an IsEditable property, why would you need a ReadOnly property as well?  How would you explain the difference in them?

Would you write in the documentation that IsEditable makes the control semi-readonly? 

You do realize that currently the documentation is completely wrong: "Gets or sets the value indicating whether the control is editable or not". - It is editable. always.

0
Georgi
Telerik team
answered on 08 Jun 2015, 03:21 PM
Hello Jonathan,

As editing given input control (RadComboBox for example) is usually associated with typing, deleting and retyping in the control setting IsEditable = False for the RadNumericUpDown stops the editing - cannot input in the TextBox part of the control.
Therefore as there is a user demand for functionality that will prevent the change of the value via the UI of the control we have decided to add the IsReadOnly property.

Also you can use the Silverlight Tookit NumericUpDown for reference as in there the IsEditable property also prevents the users to change the value via its TextBox part.

Nevertheless the documentation indeed does not provide clear information on the property behavior and will do our best to improve it in the future.

Regards,
Georgi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Shyam
Top achievements
Rank 1
answered on 22 Sep 2015, 10:09 AM

Hi,

I just want to disable the RadNumericUpDown (Up and down arrows should not change the value). I tried using IsEnabled, IsEditable, and IsReadOnly. Now IsReadOnly is not available and IsEnabled and IsEditable does not work with arrow keys. How can I bind them then?

0
Kalin
Telerik team
answered on 23 Sep 2015, 07:12 AM
Hi,

I already replied you in the support ticket regarding the same question. I'm coping my reply here in order to be available to the community:

The NumericUpDown control now provides IsReadOnly property (it was introduced with Q2 2015 SP1) - it disables the buttons and input field. For more details please check the following article from our online help documentation:
http://docs.telerik.com/devtools/wpf/controls/radnumericupdown/features/behavior

You can test it in our Silverlight demos on the link below:
http://demos.telerik.com/silverlight/#NumericUpDown/Configurator

If this is the desired behavior I would recommend upgrading to the latest release version of UI for WPF. If you need something else, I would like to ask you to share some more details regarding the exact behavior you need to support.


Hope this helps.

Regards,
Kalin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
NumericUpDown
Asked by
Rogério
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Walter
Top achievements
Rank 1
Justin Lee
Top achievements
Rank 1
BigShoes
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Konstantina
Telerik team
Jonathan
Top achievements
Rank 1
Georgi
Telerik team
Shyam
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or