IsReadOnly (un)expected behavior?

11 posts, 0 answers
  1. devster
    devster avatar
    19 posts
    Member since:
    Oct 2009

    Posted 26 Jan 2010 Link to this post


      <telerikControlsInput:RadDatePicker x:Name="SampleDatePicker" SelectedDate={Binding BlindDate, Mode=TwoWay} IsReadOnly="true" /> 

    Hello, I notice with the current release version that the result of IsReadOnly is the following:
    - user can no longer edit date using the text box (expected)
    - user *can* edit date via calendar. (unexpected, though convenient in my current use case)

    Is this intended?
    - if no, I hope there will be another easy way to get this behavior again in the future, without having to tweak the template (as suggested in other posts)

  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 28 Jan 2010 Link to this post

    Hi dev,

    The behavior of the RadDatePicker in readonly mode is the one you have described. You can not edit the date in the TextBox but you can select a date form the calendar. We will consider changing this behavior in case there are other client's requests.

    Regards,
    Kaloyan
    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.
  3. DevCraft banner
  4. devster
    devster avatar
    19 posts
    Member since:
    Oct 2009

    Posted 28 Jan 2010 Link to this post

    Thanks, I hope that the behavior will not change.
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 01 Feb 2010 Link to this post

    Hello dev,

    The visual modification will not affect the basic functionality of the control.

    Kind regards,
    Kaloyan
    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.
  6. Matt Bohn
    Matt Bohn avatar
    9 posts
    Member since:
    Sep 2009

    Posted 05 Mar 2010 Link to this post

    I've also had issues with this.   When I set a control as read only I expect it to not allow the user to edit the value or the underlying object.  So I think the calendar drop down should be disabled if the control is Read only.
  7. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 11 Mar 2010 Link to this post

    Hello Matt Bohn,

    We are working on the improvement of this behavior

    All the best,
    Kaloyan
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  8. Kurt
    Kurt avatar
    4 posts
    Member since:
    Oct 2007

    Posted 26 Mar 2010 Link to this post

    I am evaluating the datepicker control at the moment after not being happy with another vendor's. I also am surprised and disappointed to see the ReadOnly behaviour of this control allowing edit from the calendar. While this is being looked at as you say in this post, is there a style override that we could use that hides the calendar in the in a Readonly visual state? An example from another post seems to explain how to make it work the opposite way (which now seems to be the default) Otherwise the only work around I can think of is to set the min and max dates to be the selected date when readonly.

    Why oh why is it so hard to get a good datepicker in Silverlight?!
  9. Kurt
    Kurt avatar
    4 posts
    Member since:
    Oct 2007

    Posted 26 Mar 2010 Link to this post

    Answering some of my own post after working backwards on the similar post. I implemented hiding the dropdown button on the datepicker when readonly by modifying a copy of the template as follows:

    <telerik:RadToggleButton x:Name="ToggleButtonElement" IsTabStop="False" MinWidth="15" Grid.Column="1" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" Visibility="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanToVisibilityConverterInstance}}"

    I hope this does not introduce any other unwanted behaviour. The control is now looking very promising...

  10. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 01 Apr 2010 Link to this post

    Hi Kurt,

    We will provide you a hot fix in one of the next internal builds. Sorry for the inconvenience caused.

    Greetings,
    Kaloyan
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  11. Todd Davis
    Todd Davis avatar
    36 posts
    Member since:
    Aug 2009

    Posted 05 Apr 2010 Link to this post

    Just wanted to add one more vote for "Read Only means Read Only". I could care less if the calendar popup shows up or not (although it doesn't make sense to in this case) however I do care that the bound field can change data. My application works with medical data, and the date fields are crucial, and very sensitive in regards to "who can see it" vs. "who can change it".
  12. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 08 Apr 2010 Link to this post

    Hi Todd Davis,

    Thank you for your feedback. We will do our best to meet your requirements.

    Sincerely yours,
    Kaloyan
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
DevCraft banner