justinmind-logo
 
Upvote 1

Add linked button to datagrid

Answered Victor Conesa 11 years ago

I'm using DataMaster Action to modify a filtered attribute (just adding text for now).


What I'd like to do is add a linked button to the modified attribute. Ideally, each button would have a unique link that would be drawn from another attribute in the row.


Possible? I'm currently using the software on a fairly complicated project and plan to purchase it at the end of the trial. I've been very impressed thus far with its capabilities.

Replies (12)
photo
1

I'm sorry but I don't get what are you trying to accomplish. Do you mean you want to have a data grid that shows a button in some rows and no button in other rows?

photo
1

Yes. And regarding the buttons, how do I add a link. Thanks!

photo
1

First draw the button in the row. Then define an onpageload event on the button that hides it. Apply a condition to that event like this:


select(row, your attribute)= the criteria you want to apply to show it or not.

photo
1

Thanks. Got it to work!

photo
1

Cool!

photo
1

So, the onpageload event shows my buttons perfectly, but when additional filtering is done on the table, the buttons disappear. I tried adding the onpageload code to on Click and on Change events, but I can't get my buttons to show. I've attached a two screenshots. Thanks for your help.


468202e97f33a0e76822e3d9fae5b293


photo
1

Can you send the prototype (or an example) to us? It would be easier if we do it for you and then explain it using the example.

photo
1

I have a very similar issue. Using JP for the "Human-Computer Interaction" course.


Just added a very simple filter (OnPageLoad) to your example at this page:


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


When doing so, the icons disappear.


I sent the example prototype to the email address above, I attach a couple of screenshot here.


thanks!


cris


8298c022f136912d6a1b6d4f136e88a2


photo
1

Edit: if I invert the 2 actions (Filter first, then show icons) the icons appear but they are wrong! Both "active" - see screenshot


bba4d1ef56847c0592897e187bc0bf70

photo
1

Answered by email

photo
1

What was the answer?

photo
1

I don't have any Row_*s in my datagrid. I have Grid_cell_1 and that's it. Its a 1 column datagrid, with the datamaster's fields custom positioned inside. And I am trying to build interactive (clickable items that have interactions on them) and conditionally display them in each row. Based on some of the values of the fields in the datamaster's row. And it fails to change the UI at all, no error. Frustrating!


I am sharing an image of the page load interaction on a text input that is displayed in each row (1 column datagrid has a vertical row of cells)


33548720abe316d10b97c1489e7d05bb

Leave a Comment
 
Attach a file