RadDataEntry controls readonly?

3 posts, 1 answers
  1. Wojciech
    Wojciech avatar
    5 posts
    Member since:
    Sep 2017

    Posted 06 Oct Link to this post

    Hello,

    Is there a way to have RadDataEntry controls read only? I know I can set Enabled =False for the whole RadDataEntry control but i"d like to limit it for some users while allow others to make changes. Also, users with read only access should be able to copy RadDataEntry controls values which is not the case for Enabled=False scenario.

    Any clue is appreciated.

    Thanks

    Wojciech

  2. Wojciech
    Wojciech avatar
    5 posts
    Member since:
    Sep 2017

    Posted 09 Oct in reply to Wojciech Link to this post

    I already know how:

     

    Private Sub RadDataEntry1_ItemInitialized(sender As Object, e As ItemInitializedEventArgs) Handles RadDataEntry1.ItemInitialized
        For i As Integer = 0 To e.Panel.Controls.Count - 1
            If e.Panel.Controls(i).GetType.ToString = "Telerik.WinControls.UI.RadTextBox" Then DirectCast(e.Panel.Controls(i), RadTextBox).ReadOnly = True
        Next
    End Sub

     

    Wojciech

     

  3. Answer
    Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 09 Oct Link to this post

    Hi, Wojciech,

    This is the correct way to make some of the controls read-only. Do not hesitate to contact us if you have other questions.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top