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

Listview with Item numbers

3 Answers 203 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Atik
Top achievements
Rank 1
Atik asked on 19 Jul 2013, 04:36 AM
Hello all,
     I have created list view  with data source consists of list of items..Suppose there are total 7 items in list.I want to display inside list view like "Item 1 of 7 , Item 2 of 7 and so on.."
So suggest the way to carry out this task...

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 22 Jul 2013, 02:19 PM
Hello,

The mobile listview widget does not support such feature out of the box. You may consider incrementing a global counter and displaying it in the template. 

Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Atik
Top achievements
Rank 1
answered on 25 Jul 2013, 01:34 PM
Ok..Thanks for the information..
I have maintained a global counter and used it accordingly. But the problem is I have set filterable=true to that kendo listview.
So the search box is there to filter the data.
When I provided a letter in that search box it gives me filtered data but I am not getting new count of filtered items..
So is there any way to get the count of listview items after filtering ?
0
Petyo
Telerik team
answered on 29 Jul 2013, 07:50 AM
Hi,

The listview does not have such method. You can look through the datasource methods and use its items length (using the view method) for this purpose, if I understand you correctly. 

Regards,
Petyo
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
Atik
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Atik
Top achievements
Rank 1
Share this question
or