Collapsible Panel in GridView

Last post 11-05-2006 5:27 PM by confusis. 1 replies.

Sort Posts:

  • Collapsible Panel in GridView

    11-04-2006, 9:56 AM
    • Loading...
    • confusis
    • Joined on 02-18-2006, 9:43 PM
    • Posts 20

    Hi folks. I have a gridview showing news articles. It's set up so that it only shows the article's title and not the content of the article. What I would like to do is using a collapsible panel in each of the gridview's rows so that when a title is clicked, the content appears below the title. I've tried several ways (that makes sense to me) but I can't seem to make this work. I don't know if it's even possible to use the collapsible panel this way. Any suggestions?

    My gridview is using itemtemplate and alternatingitemtemplate for layout purposes. In each row I have a table.

    Example:

    <ItemTemplate>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <%#Eval("ItemDate", "{0:d}")%>
                </td>
                <td>
                    <span class="bold">
                        <%#Eval("Title")%>
                    </span>
                </td>
            </tr>
        </table>
    </ItemTemplate>

    Can I make another table in the itemtemplate for the content and put an <asp:panel> around each table and toggle them with the collapsible panel? It's also worth mentioning that my gridview is inside an ajax updatepanel (which works great).
     

  • Re: Collapsible Panel in GridView

    11-05-2006, 5:27 PM
    Answer
    • Loading...
    • confusis
    • Joined on 02-18-2006, 9:43 PM
    • Posts 20

    I actually solved my problem using another server control made by Dan Cimpoiesu. His server controls can be found here:
    http://www12.asphost4free.com/DanMaster/
     

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter