Initial group when binding to a table

3 posts, 0 answers
  1. Richard Wilde
    Richard  Wilde avatar
    14 posts
    Member since:
    Jul 2009

    Posted 20 Aug 2012 Link to this post

    Is it possible to set an initial group when binding to an existing HTML table? I have tried setting the group field in the datasource.

    <asp:Repeater runat="server" ID="repList" EnableViewState="False">
        <HeaderTemplate><table id="grid">
        <thead>
        <tr>
            <th data-field="ShortName">Short Name</th>
            <th data-field="Site">Site</th>
        </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><%#Eval("ShortName")%></td>
                <td><%#Eval("tblSite.Site")%></td>
            </tr>
        </ItemTemplate>
        <FooterTemplate></tbody></table></FooterTemplate>
    </asp:Repeater>
     
     
    <script type="text/javascript">
        $(function () {
            $('#grid').kendoGrid({
                datasource : { group: {field: "Site"}},
                groupable: true,
                scrollable: true,
                sortable: true,
                pageable: true,
                filterable: true
            });
        });
    </script>
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 23 Aug 2012 Link to this post

    Hi Richard,

    Thank you for contacting us.

    I have tested grouping when binding to an existing HTML table, and on our side everything is working as expected. Please check this working JsFddle example. If you still have problems, it will be very helpful for us if you can reproduce your issue and send the updated fiddle back to us.

    Kind regards,
    Vladimir Iliev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Richard Wilde
    Richard  Wilde avatar
    14 posts
    Member since:
    Jul 2009

    Posted 23 Aug 2012 Link to this post

    Thanks, not sure why it didn't work for me first time! Fine now, thanks again for your help.
Back to Top