This is a migrated thread and some comments may be shown as answers.

Hiding columns in ListView

1 Answer 259 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Shabtai
Top achievements
Rank 1
Shabtai asked on 01 Jan 2013, 06:47 PM
How can I hide columns in Listview?

<script id="list-view-template" type="text/x-kendo-template">
        <div class="product-view">
                <dl>
                    <dd style='visibility:hidden'>${InterfaceId}</dd>
                    <dd>${InterfaceName}</dd>
                    <dd>${ViewName}</dd>
                </dl>
        </div>
    </script>

Worked

But when I try to hide via JS:
      $("#listView").kendoListView({
            dataBound: function (e) {
$(".product-view dd:first").hide();
});

didn't work.

Any help would be appreciated. Thanks
Shabby

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 02 Jan 2013, 08:40 AM
Hello Shabby,

Kendo ListView does not have notion for "columns", thus there is not functionality for hiding them.

The selector that you are using hides only the first "dd" element in the entire listview. You should find another selector that fits your needs.
http://api.jquery.com/category/selectors/

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView
Asked by
Shabtai
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or