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

RadDataEntry controls readonly?

2 Answers 196 Views
DataEntry
This is a migrated thread and some comments may be shown as answers.
Wojciech
Top achievements
Rank 1
Wojciech asked on 06 Oct 2017, 06:34 PM

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 Answers, 1 is accepted

Sort by
0
Wojciech
Top achievements
Rank 1
answered on 09 Oct 2017, 06:19 AM

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

 

0
Accepted
Dimitar
Telerik team
answered on 09 Oct 2017, 09:11 AM
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.
Tags
DataEntry
Asked by
Wojciech
Top achievements
Rank 1
Answers by
Wojciech
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or