Using Links in Colums with Responsive Expand Buttons
Using Links in Colums with Responsive Expand Buttons
Hi all,
I'm using the Responsive plugin with child rows. When the user clicks the little green + icon, the child row appears with the all the extra data. It works great.
I would like to use page links in that first column (when you click the link, it takes you to a different page). The issue is that the entire column that has the + icon can be clicked to expand the child row. So, when you click the link to go to a different page, it expands the child row just before redirecting to the new page (which looks rather ridiculous).
Is there a way to restrict it so that the user has to click the + icon to expand the child row, instead of being able to click anywhere in that column?
This question has an accepted answers - jump to answer
Answers
You can use the
responsive.details.target
option to specify the selector you want to use for the trigger (example), or move the Responsive control into its own column (example).Allan
[Post deleted, it was a stupid question]
Thanks for the help!
Hello,
I am trying to do as you suggested and move the Responsive control into its own column (example). What happens is that responsive works but the custom control that we have does not appear, and therefore the child row is not accessible.
I thought perhaps I needed an empty column so I added one:
This then provided the actual responsive control, but not our custom control we want. Even then, the control is 'unresponsive' (no pun intended), it does not show child row when clicked.
Any ideas would be greatly appreciated.
You probably need to use
responsive.details.target
to target the required column. However, I'd need a test case showing the issue to say for sure.Allan
Alright, Kurt was also able to help me.
I am also using the
rowReorder
ext and it was conflicting with the controls. So I added a selector to therowReorder
option:That fixed the first issue, the second issue I fixed by adding a new class
.dtr-column
to the css we are using for our custom responsive control..dtr-inline
was already defined for using default control but not the column control. Which of course is now fixed when adding the.dtr-column
to the appropriate css.Thank you for your help