new datagrid ONLY reorder

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

new datagrid ONLY reorder

Rick Harrison via use-livecode
Hi friends,

I just took a look at the new DG features as shown in the lesson:
<https://lessons.livecode.com/m/datagrid/l/1304860-how-do-i-reorder-rows-in-a-data-grid>

After setting -> set the dgEditMode of group "xxx" to true
we have an nice SVG on the left side to delete the row and a nice one on the right side to reorder
the lines in the datagrid.

Is ist possible to only have the REORDER SVG to be shown?
I only want my users to reorder the lines but not delete them!

The lessons says "No":
...................................................................................
These properties can be set to the long of of an object or empty.

Setting the "edit mode action select control" will change the control that appears on the left,
setting the "edit mode reorder control" will change the control on the right.

!!!!
Setting either of these properties to empty will result in the control not being displayed!
!!!!
...................................................................................
Possible? If yes, how?

I tried with some nifty solutions with a listfield and a nice script, but all is working fine on the Mac
and NOT on Windows. One time "the mosueline" is not recognized resulting in empty variable etc...
very annoying, so I want to try this with a datagrid.


Best

Klaus
--
Klaus Major
https://www.major-k.de
[hidden email]


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: new datagrid ONLY reorder

Rick Harrison via use-livecode
Hi all,

> Am 29.12.2020 um 18:32 schrieb Klaus major-k via use-livecode <[hidden email]>:
> ...
> !!!!
> Setting either of these properties to empty will result in the control not being displayed!
> !!!!

looks like I completely misunderstood the last line. 8-)

OK, so this is possible, but this:
-----------------------------------------------
on mouseUp
 set the dgProp["edit mode action control"] of group "Alphabet" to EMPTY
 send "refreshlist" to grp "Alphabet"
end mouseUp
-----------------------------------------------
does not remove the icon from the left side!?
What am I still missing?


Best

Klaus
--
Klaus Major
https://www.major-k.de
[hidden email]


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: new datagrid ONLY reorder

Rick Harrison via use-livecode


> Am 29.12.2020 um 19:44 schrieb Klaus major-k via use-livecode <[hidden email]>:
> Hi all,
> ...
> OK, so this is possible, but this:
> -----------------------------------------------
> on mouseUp
> set the dgProp["edit mode action control"] of group "Alphabet" to EMPTY
> send "refreshlist" to grp "Alphabet"
> end mouseUp
> -----------------------------------------------
> does not remove the icon from the left side!?
> What am I still missing?

this DOES in fact work, if I delete that CP entry manually in the inspector!?


--
Klaus Major
https://www.major-k.de
[hidden email]


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode