Close All Details Rows
Close All Details Rows
notyou61
Posts: 21Questions: 8Answers: 0
I have a variety of grids separated by tabs on a single page. Many of these grid are using the "Row Details" table to show additional information. If one row is left open when clicking to another tab it remains open when returning to that tab. I would like to close all rows when exiting the tab so they are closed when returning. Any help is appreciated.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You would need to trigger an action to have the rows in the target table 'closed'. Something like:
Allan
I attempted to use the code on the focusout function of the tab as follows:
It seems to close the open row however it reopens immediately. Thanks for any help.
Can you link to the page so I can tae a look please? The code above looks fine, it there something else also running that would cause the row to reopen?
Allan
My datagrid is as follows:
Please let me know if needing any additional information. Thanks for all the help. :)
At the end of the code block above you have an listener on the
draw
event which is opening the row on every draw. I would imagine that is causing the issue. Try commenting it out.It sounds like the
detailsRows
isn't being correctly updated - which it isn't from the code in your second post.Allan
Worked! Thanks Allan