Announcement

Collapse
No announcement yet.

set readonly a field in editable grid when a user clicked edit icon.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • set readonly a field in editable grid when a user clicked edit icon.

    Hi, i have a editable grid and i need set readonly a field when a condition is evaluated, then i have this code for that.

    if ({lvd_cdgo_mdio} == [lvd_cdgo_mdio]) {
    sc_field_readonly({pad_vlorcncldo}, 'on');
    } else {
    sc_field_readonly({pad_vlorcncldo}, 'off');
    }

    that works fine. My problem is when the grid is opened and that retrieve some records and if i try edit one record cliking on icon edit, the validation is not fired.

    What event is fired when edit icon is cliked?

    How can i validate that?

  • #2
    Hello,

    Have you tried the onScriptInit?

    regards,
    Bernhard Bernsmann

    Comment

    Working...
    X