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

Can i group items in a listview without a datasource?

1 Answer 37 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Orlando
Top achievements
Rank 1
Orlando asked on 01 Mar 2014, 05:52 PM
Hi,

I need your help with some special requirement.
I'm building a theme for a popular ecommerce engine using TPL files and vqmod. I have not access to modify the query, need to by clean.

And i need to fill the list view some like this:

<?php if ($customers) { ?>
<?php foreach ($customers as $customer) { ?>
<li>
   <h3 class="time"><?php echo $customer['date_added']; ?></h3>
   <h3><?php echo $customer['name']; ?></h3>
   <a data-role="button" data-rel="external" style="float: right;" href="mailto:<?php echo $customer['email']; ?>" data-icon="compose">Email</a>
   <p><small><?php echo $column_email; ?>: <?php echo $customer['email']; ?></small></p>
   <p><span><b><?php echo $customer['status']; ?></b></span></p>
</li>
<?php } ?>
<?php } else { ?>
<li>
   <h2><?php echo $text_no_results; ?></h2>
</li>
<?php } ?>


So, my problem is: Can i group items in a listview without a datasource?

My example is here, please advise...

http://jsbin.com/toxuyate/4/edit

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 03 Mar 2014, 08:52 AM
Hi Orlando,

Grouping items in a Kendo UI Mobile ListView is not supported without a dataSource. For grouping items, the filter property of the Kendo UI DataSource is used, and there is not a viable workaround that we can offer at the moment.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView (Mobile)
Asked by
Orlando
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or