Moving from one to another - Datagrids?

Don Roach shared this question 5 years ago
Answered

How do I get rows from Datagrid A to show up in Datagrid B when checked?


62595a722ef0425bdeb97ba6413d14cb


I followed this tutorial but it works with multiselect lists.


http://www.justinmind.com/usernote/te...


How could I use datagrids and checkboxes?

Comments (9)

photo
1

More or less the same as explained in the tutorial but to get all the selected elements in the first data grid you need to build an expression like this:


filter(1st data grid, checbox)


1st data grid and checkbox must be dragged from the screen to the expression

photo
1

Thanks, Victor,


Works perfectly as described.


One more question:


How can I UNCHECK the box on the left when a corresponding row is removed from the right? (see image)


f5a207dedde779151afa89cab1fd4d43

photo
1

That's more hard to do. I'd define a boolean attribute on the data master to control which rows are selected. Then I'd link the check box with that attribute. Next I'd create an event that when you remove a row executes a modify action over that value in the data master and refreshes the data grid.

photo
1

Thanks, Victor,


This is helpful. Can you show me how to assign a boolean attribute to the datamaster? Then I'll take a stab at the rest of it.


Thanks!


D

photo
1

You create a new attribute on the data master and, as type, you set 'yes/no'. Then, you just need to select the check box in your data grid and select that attribute in Properties.

photo
1

Got it - Thanks, Victor!

photo
1

Glad to be helpful! Are you enjoying Justinmind so far?

photo
1

I love it! I'm very impressed with the depth of possible interactions, and the speed with which you guys address questions on this forum is unbelievable.

photo
1

How would you do this if Datagrid A was on a separate screen than Datagrid B?