4 posts, 0 answers
  1. Chris
    Chris avatar
    2 posts
    Member since:
    Jul 2010

    Posted 29 Jul 2010 Link to this post

    I think this is an oversight on the MS controls.

    Only some controls have a ReadOnly property e.g. the textBox and derivitaves.

    For the standard checkbox you can use the AutoCheck property to achieve the same, but the RadCheckbox does not have that property either

    Would it be possible to have a 'ReadOnly' property added to all the controls, what, imo, it should do it allow us to look but not touch, e.g. simular to enable, but still allow scrollbars, dropdowns to work, oh and not to change the colour (so users can still read the data and copy it)

  2. erwin
    erwin avatar
    400 posts
    Member since:
    Dec 2006

    Posted 30 Jul 2010 Link to this post

    The control should still provide a visual clue that it is read-only or else an average User would be confused.

    I guess the Microsoft standard is just to disable the control in this case, but I agree that this is sometimes not really nice, especially when you have a lot of checkboxes on a form.

  3. Chris
    Chris avatar
    2 posts
    Member since:
    Jul 2010

    Posted 01 Aug 2010 Link to this post

    Ageed, hence the question about border colours in htis thread 

    And yes we do have about 200 checkboxes on one of our forms, just about to add a new form with even more

  4. Boryana
    Boryana avatar
    330 posts

    Posted 04 Aug 2010 Link to this post

    Hello everyone,

    Thanks for writing.

    Even though RadCheckBox differs from the standard checkBox in the way that it does not have an AutoCheck property, our team can suggest several approaches to achieve such behavior.

    The first one refers to handling the ToggleStateChanging event which was designed to allow you cancel the ToggleStateChanging operation. Here is a sample code snippet:
    private void radCheckBox1_ToggleStateChanging(object sender, Telerik.WinControls.UI.StateChangingEventArgs args)
        if (args.OldValue == Telerik.WinControls.Enumerations.ToggleState.On)
            args.Canceled = true;

    The second approach simulates readonly mode through setting both the Enabled and UseDefaultDisablePaint properties to false. Thus the user will not be able to change the value of the control. Please have a look at the attached project which demonstrates this approach. Furthermore, you can apply a customized theme which handles the Disabled state of the control.

    I hope that you will find one of these approaches helpful. Feel free to extend our controls implementing your own logic if the given suggestions do not meet your requirements.

    Best wishes,
    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