Hello
I need to give the numeric up down IsReadOnly property, and the user can't input data.
IsEditableProperty =False the user can insert data in the keys up/down arrows,page up/down keys.
How to implement this scenario?
Best regards
Ehud.
7 Answers, 1 is accepted
0
Hi Ehud,
Thank you for contacting us.
You can use instead the IsEnabled property set to False.
Hope this will help. If you need further assistance please let us know.
Regards,
Konstantina
the Telerik team
Thank you for contacting us.
You can use instead the IsEnabled property set to False.
Hope this will help. If you need further assistance please let us know.
Regards,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Avi Avni
Top achievements
Rank 1
answered on 25 Nov 2010, 02:38 PM
Hello Konstantina
This not good for me, I want to copy/past from the numeric up down.
Do you have another idea?
Best Regards
Ehud
0
Hello Ehud,
You can try setting the SmallChange and LargeChange properties to 0. In that way when you click the arrows the value will increase/decrease with 0, so it will remain the same.
Hope this will help. Please let us know if you have any other questions.
Sincerely yours,
Konstantina
the Telerik team
You can try setting the SmallChange and LargeChange properties to 0. In that way when you click the arrows the value will increase/decrease with 0, so it will remain the same.
<
telerik:RadNumericUpDown
SmallChange
=
"0"
LargeChange
=
"0"
IsEditable
=
"False"
/>
Hope this will help. Please let us know if you have any other questions.
Sincerely yours,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Arnaud
Top achievements
Rank 1
answered on 29 Jan 2015, 03:06 PM
Hello,
The proposed solution is not working. I tried several approaches to switch this control into a readonly version without success. So far I have to put an invisible textbox and switch visibility at demand. Boring... Why don't you implement an IsReadOnly property, as most controls do ? Telerik make me lose time with this simple requirement !
Arnaud.
The proposed solution is not working. I tried several approaches to switch this control into a readonly version without success. So far I have to put an invisible textbox and switch visibility at demand. Boring... Why don't you implement an IsReadOnly property, as most controls do ? Telerik make me lose time with this simple requirement !
Arnaud.
0
Hello Arnaud,
I'm sorry to hear about your frustration. However we have that logged in our Feedback portal as Feature Request - you can track and vote for the item on the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/123258-add-readonly-property-to-the-numericupdown-control
If you have any other questions, please let us know.
Regards,
Kalin
Telerik
I'm sorry to hear about your frustration. However we have that logged in our Feedback portal as Feature Request - you can track and vote for the item on the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/123258-add-readonly-property-to-the-numericupdown-control
If you have any other questions, please let us know.
Regards,
Kalin
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
Johannes
Top achievements
Rank 1
answered on 13 Mar 2015, 09:18 AM
This was posted in 2010 and there is still no ReadOnly property in this control. IsEditable does still not work in Q3/2013. Setting IsEditable to false you can still change RadNumericUpDown's value.
Like Arnaud I also don't understand why we have to search the forums to find a solution for such a simple scenario. Nearly every other control has a ReadOnly property so this such have it too.
Like Arnaud I also don't understand why we have to search the forums to find a solution for such a simple scenario. Nearly every other control has a ReadOnly property so this such have it too.
0
Hi Johannes,
Thanks for your feedback. However I'm afraid I cannot commit any time frame for this feature request. What I can suggest you meanwhile would be to manually disable the buttons in the Loaded event handler (for example) when the control is not editable:
Hope this helps.
Regards,
Kalin
Telerik
Thanks for your feedback. However I'm afraid I cannot commit any time frame for this feature request. What I can suggest you meanwhile would be to manually disable the buttons in the Loaded event handler (for example) when the control is not editable:
private
void
Num_Loaded(
object
sender, RoutedEventArgs e)
{
var numeric = sender
as
RadNumericUpDown;
if
(!numeric.IsEditable)
{
(numeric.Template.FindName(
"increase"
, numeric)
as
RepeatButton).IsEnabled =
false
;
(numeric.Template.FindName(
"decrease"
, numeric)
as
RepeatButton).IsEnabled =
false
;
}
}
Hope this helps.
Regards,
Kalin
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.