Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Complex Grid Default Values $initextendrow

  • Complex Grid Default Values $initextendrow

    Posted by Scott on October 19, 2020 at 4:58 pm

    Hi I’m trying to find some documentation on the $initextendrow method for complex grid. I’m basically just trying to define some of the default row values when a new line it added automatically to grid. I found this in the online omnis documentation, but I’ve tried added this method $initextendrow to the class and define some values, nothing seems to work and the code never executes. Anyone ever successfully used this?

    Initial Row Values
    When a Data grid has $enterable & $extendable enabled, the user can add a new row by entering data into the empty ‘extendable’ row at the bottom, and the remainder of the columns in that row are given default values.
    However, if you want to override these defaults, you can now implement a method named $initextendrow on the data grid control. This method should return a row with column values set to the appropriate defaults you wish to use. The order and the data type of the columns must match the order and types of the columns of the list defining the Datagrid and specified in $dataname.

    Scott replied 3 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

Log in to reply.