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

useNativeScrolling on particular view

3 Answers 67 Views
View
This is a migrated thread and some comments may be shown as answers.
Robby Parker
Top achievements
Rank 1
Robby Parker asked on 23 Nov 2015, 10:04 PM

I need to set useNativeScrolling = true on a particular view (for Android only) and can't seem to figure it out. I assumed it would be as easy as:

if (device.platform === "iOS")
//        {
console.log("ios");
    app.view().useNativeScrolling = false;
}

But that doesn't seem to do anything. I'm sure it's simple.

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 26 Nov 2015, 07:41 AM

Hello Robby,

 

the useNativeScrolling configuration option is applied when the view is initialized, and cannot be changed during runtime. 

 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Robby Parker
Top achievements
Rank 1
answered on 01 Dec 2015, 12:11 AM
Thanks. I'm attempting to set it in the Init method of the view rather than using the data-use-native-scrolling=true directive in the HTML. Is that not supported?
0
Petyo
Telerik team
answered on 01 Dec 2015, 11:48 AM

Hello Robby,

 

no; the only means to configure native scrolling is through the data attribute. 

 

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