Add child records in a collapsable DIV under every gridview or dat

  • Thread starter Thread starter Savvoulidis Iordanis
  • Start date Start date
S

Savvoulidis Iordanis

Hi.
I have a table that is a master table from which the user views ~300 rows at
a time (rarely changing rows in a day). What I want to do is, when the user
clicks on a row, to show related records from two tables, as 2 HTML tables
side by
side, (I believe inside a DIV panel) under this row clicked. If the user
clicks
the row again, the DIV with the related data should hide.

Can anyony give me a proper way to do this?

TIA
 
Hello Savvoulidis,

just create the separate div where u are going to show your data (I'd use
collapsible panels from AJAX Toolkit)
then, when u click on the row u get the id of the records (in the grid row
handler) and then u make the async call to the server side (ICallbackEventHandler,
or PageMethods, or WebService call) to get the necessary data to show in
your div

That's all

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


SS> Hi.
SS> I have a table that is a master table from which the user views ~300
SS> rows at
SS> a time (rarely changing rows in a day). What I want to do is, when
SS> the user
SS> clicks on a row, to show related records from two tables, as 2 HTML
SS> tables
SS> side by
SS> side, (I believe inside a DIV panel) under this row clicked. If the
SS> user
SS> clicks
SS> the row again, the DIV with the related data should hide.
SS> Can anyony give me a proper way to do this?
SS>
SS> TIA
SS>
 
Back
Top