listview data in the parent-child relation format

2 posts, 0 answers
  1. Vadivel
    Vadivel avatar
    4 posts
    Member since:
    Jul 2015

    Posted 09 Sep 2015 Link to this post

    We have a scenario, where we have to show the listview data in the parent-child relation format. In the Parent row there should be a plus (+) symbol and on click of the plus symbol the child data should be opened. It’s basically group the data under the parent and show the child data on click of the plus symbol.

    Kindly suggest us the approach or the code to accomplish our requirement.

    Below sample code of my template for the listview without the parent-child relation and will have to modify the code to accommodate the new requirement.

    <script type="text/x-kendo-tmpl" id="template">
            <div class="left-body-container">
                <table id="doc-list" class="doc-list" width="100%">
                        # if (FolderName==null) { #
                        <tr id="tblRowFileItems" objectid="#:ObjectId#">
                                    <img src="#:ImagePath#" />

                                        <a data-role="button" href="GetDocumentContent?objId=#:ObjectId#" target="_blank" id="testa">#:DocumentName#</a>
                                    <br />

                                    <span class="details">
                                        #:DocumentSize# <span class="paddingLR10">|</span> #:DocumentCreatedDate# :
                                        # if (!(DocumentCreatedby==null)) { # <a href=""> #:DocumentCreatedby# </a> # } #

                        # } #

                            .DataSource(dataSource =>
                                dataSource.Read(read => read.Action("ReadDataonPaging", "Home").Data("additionalInfo").Type(HttpVerbs.Post));


                    .Pageable(pager => pager

  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 11 Sep 2015 Link to this post

    Hi Vadivel,

    At present Web ListView widget does not support grouping or hierarchy. Do you think that using grouped grid or grid with detail templates would fit in your scenario?

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top