Results 1 to 5 of 5

Thread: Treegrid movebars , this object have it?

  1. #1
    Member
    Join Date
    Oct 2012
    Location
    México city
    Posts
    67

    Question Treegrid movebars , this object have it?

    Hello , I use the treegrid in many parts off my programs , and works fine , but my users need to move the list items up and down , like old listbox in vfp with te property Movebars = .t., Linaja have some like this , or whats the beast way to do this.

    Thanks again

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Hi Gontran,


    The TreeGrid does not currently have the option to move the TreeItems up and down in the grid. It does have a SortingEnabled property, that you can set to .T. (true) to allow the users to click on the column header(s) to sort by that column. Also the addListItem() and setListItem() methods allow you to specify the row/column position - maybe those could be used. The other option is to clear and then load the items in the corrected order.

    Regards,

    Yvonne

  3. #3
    Member
    Join Date
    Oct 2012
    Location
    México city
    Posts
    67
    Ok , yes I think to reload the items like old sort array system to do in the memory, , but I talk with my users maybe the sort column is more than enough.

    Thanks again.


  4. #4
    Member
    Join Date
    Oct 2012
    Location
    México city
    Posts
    67
    Hello I try to use the Setlistitem but I have a Data type mismatch in parameter list.

    here is :
    m_gridrow = Lianja.getelementByID("productos_cot")
    m_gridrow.setListItem(1, 1,"fdsdfs|232|23|34|34|34")

    results:

    **** Lianja error ****
    m_gridrow.setListItem(1, 1,"fdsdfs|232|23|34|34|34")
    ^
    Data type mismatch in parameter list

    Any idea?

    Thanks again

  5. #5
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Hi Gontran,

    The parameter order is:

    caption as Character[, row as Numeric[, column as Numeric]]

    Regards,

    Yvonne

Tags for this Thread

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