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

2 issues with fixed height

5 Answers 212 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Claude asked on 29 Jan 2015, 07:48 PM
The smaller issue : When I use the "height" parameter when initializing the TreeList, it is ignored on my iPad on Safari with iOS 8. If I use the "height" css style instead, it works fine.


The bigger issue : The TreeList sometimes stops displaying it's content. Here is how it happens :

It happens only on my iPad and my Android tablet. I have a TreeList with a fixed height. I bind it to a dataSource containing a list long enough for the TreeList to have a scrollbar. I scroll down the list a little. Then, I change the content of the dataSource to something shorter. The TreeList refreshes and display an empty list. The TreeList knows it's not really empty because it doesn't show the usual "No records to display" message, and I can interact with the dataSource to check it's content.

If I do not scroll before changing the dataSource's content, it works fine.

Is that a bug or I'm doing something wrong?

5 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 02 Feb 2015, 02:33 PM

Hello Claude,

I could not reproduce the issues in this Dojo snippet. Please adjust it so that it shows the issue, so that we can determine what causes it.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Claude
Top achievements
Rank 1
answered on 02 Feb 2015, 04:04 PM

http://dojo.telerik.com/@Claude%20Mercier/IsabE

Here it is. I only bothered with the biggest issue. The problematic interaction seems to be when the treelist is within a window. I had to fake the "read" of the datasource to get the behavior I needed. The first time it loads your example list, the second time (when you press the "refresh" button) it loads an other array. This way, the treelist is forced to redraw the whole list.

Thanks for the help!
0
Alex Gyoshev
Telerik team
answered on 03 Feb 2015, 09:32 AM

Hello Claude,

Thank you for the sample. You can resolve the issue by adding the following style to the page:

.k-grid-content { zoom: initial }

We have added this bug fix for the next internal build. Here is the updated Dojo.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Claude
Top achievements
Rank 1
answered on 03 Feb 2015, 02:01 PM
I'm sorry, but that didn't resolve the problem. I run the dojo on both my tablets and the weird behavior is the same.I scroll down the first list, hit refresh, and I get an empty list instead of the second list.

My first tablet is an iPad on iOS 8.1.2, using Safari.
My second tablet is a Samsung on Android 4.4.2, using Chrome.

Is there any other information I can provide to help?
0
Accepted
Alex Gyoshev
Telerik team
answered on 05 Feb 2015, 11:35 AM

Hello Claude,

Indeed, it appears that I have misguided you. The problem lies with the touch scroller that is used on mobile -- we have fixed it for the internal build that will be available later this week.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeList
Asked by
Claude
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Claude
Top achievements
Rank 1
Share this question
or