View Full Version : 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
yvonne.milne
2015-10-14, 10:32
Hi Gontran,
The TreeGrid (http://www.lianja.com/doc/index.php/Tree) does not currently have the option to move the TreeItems (http://www.lianja.com/doc/index.php/Treeitem) 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
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.
:)
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
yvonne.milne
2015-10-15, 12:42
Hi Gontran,
The parameter order is:
caption as Character[, row as Numeric[, column as Numeric]]
Regards,
Yvonne