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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U2F2dm91bGlkaXMgSW9yZGFuaXM=?=

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

    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


  • Michael Nemtsev [MVP]

    #2
    Re: Add child records in a collapsable DIV under every gridview or dat

    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 (ICallbackEvent Handler,
    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


    SSHi.
    SSI have a table that is a master table from which the user views ~300
    SSrows at
    SSa time (rarely changing rows in a day). What I want to do is, when
    SSthe user
    SSclicks on a row, to show related records from two tables, as 2 HTML
    SStables
    SSside by
    SSside, (I believe inside a DIV panel) under this row clicked. If the
    SSuser
    SSclicks
    SSthe row again, the DIV with the related data should hide.
    SSCan anyony give me a proper way to do this?
    SS>
    SSTIA
    SS>


    Comment

    Working...