How to Make RadForm/All Controls Read Only?

6 posts, 0 answers
  1. SachinC
    SachinC avatar
    23 posts
    Member since:
    Sep 2010

    Posted 23 Sep 2010 Link to this post

    Hi,

    How to make RadFrom (Windows) Read Only or all of its control readonly including RadPagView, Panels, TextBox, DropDown, DateTimePicker etc.


    Thanks!
  2. SachinC
    SachinC avatar
    23 posts
    Member since:
    Sep 2010

    Posted 23 Sep 2010 Link to this post

    Private Sub SetReadOnlycontrols()
      
    For Each item As Control In Me.Controls
      
    item.Enabled = False
      
    Next
      
    End Sub

    Solved.

     

     

     

  3. Marc
    Marc avatar
    7 posts
    Member since:
    Mar 2017

    Posted 15 Mar in reply to SachinC Link to this post

    Hey,

    how I can do this in Progress 4GL?

    This doesn't work for me:

    DEFINE VARIABLE iZaehler AS INTEGER NO-UNDO.
     
     
    DO i = 1 TO THIS-OBJECT:Controls:Count:
         
        IF THIS-OBJECT:Controls:Item[i]:Name = 'GroupVertragBasis'
            OR THIS-OBJECT:Controls:Item[i]:Name = 'GroupVertragKond'
            OR THIS-OBJECT:Controls:Item[i]:Name = 'GroupBemerk' THEN
            NEXT.
     
        THIS-OBJECT:Controls:Item[iZaehler]:Enabled = FALSE.
         
    END.

     

    Is it possible so set the read-only?

     

    Thanks for help :)

  4. Stefan
    Admin
    Stefan avatar
    2901 posts

    Posted 15 Mar Link to this post

    Hi Marc,

    Thank you for writing.

    The provided code snippet is correct in a standard .NET environment. Since you are using OpenEdge and ABL please open a case in SalesForce.

    Please let me know if you have other questions.

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

     
  5. Marc
    Marc avatar
    1 posts
    Member since:
    Jun 2016

    Posted 16 Mar in reply to Stefan Link to this post

    Hi Stefan,

    now with the licensed account. It was my mistake.

    How I opening a case in SalesForce?

     

    Best regard

    Marc

  6. Hristo
    Admin
    Hristo avatar
    897 posts

    Posted 16 Mar Link to this post

    Hi Marc,

    Thank you for writing back.

    You should be able to submit your case by following this link: https://progresslink.progress.com/supportlink.

    I hope this helps.

    Regards,
    Hristo
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 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