Results 1 to 3 of 3

Thread: [Answers] TreeGrid

Threaded View

  1. #1
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135

    [Answers] TreeGrid

    Each TreeGrid row is a TreeItem which can be referenced by treegrid.currentItem
    Each TreeItem has an icon (property picture) and some text (property text) of its first column. Additional text in treegrid columns can be referenced using treegrid.item(row,col).
    In the "TreeItem" you can reference the text in the columns using treeitem.text(column) which is zero based.
    "RowCount" gives you the number of rows in the TreeGrid.
    "ActiveRow" can be set to the row you want to access, then use CurrentItem to get the object for that row. You should then be able to change its properties.



    Q:
    Code:
    ////////////////////////////////////////////////////////////////
    // Event delegate for 'load' event
    proc page1_section2_load()
            This.tree2.AddItem("library://fltIsEqual.png","Is Equal To")
            This.tree2.AddItem("library://fltIsNotEqual.png","Is Not Equal To")
    endproc
    A:
    Try issuing clear() first.



    Q:
    May I know if it is possible to edit the data in the gridtree itself for a desktop app?
    A:
    You need to relate the selection to another form section or gadget as I did in one of the examples. The TreeGrid itself is not editable.



    A TreeGrid does not handle pagination but insofar as you will not have a huge amount of data displayed in it, it may do what you want. It does not have the flexibility of a Grid section has however.



    ​All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
    Last edited by josipradnik; 2017-02-02 at 04:39.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us