Responsive mode auto close and open other views.
Responsive mode auto close and open other views.
classic12
Posts: 228Questions: 60Answers: 4
Is it possible to have a max of 1 row expanded.
ie row 1 is expanded.
When expand row2 , row closes.
Cheers
Steve Warby
This discussion has been closed.
Answers
Sure - on each click to expand a row, you'd check to see if any other rows are already expanded (
row().child.isShown()
) and close it if needed. You could do that in arows().every()
callback.Allan
Thanks allan,
not being lazy but I can't find the on expand event.
What is the syntax for that please.
I presume my code should be
But will this close the one I've just opened if so how do i say
close all other.
Cheers
Steve Warby
Sorry - I had missed that you were using Responsive here and it wasn't just about generic child rows.
responsive-display
is the event in question here.I'm mildly surprised I don't have an example demonstrating that already to be honest. I'll take a look into that if I get a chance next week.
Allan
Hi allan,
did you get round to this in your busy schedule ?
Not yet - sorry. Its been a bit bonkers recently!
Allan