useNativeScrolling on particular view

4 posts, 0 answers
  1. Robby Parker
    Robby Parker avatar
    18 posts
    Member since:
    Jul 2012

    Posted 23 Nov 2015 Link to this post

    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.

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 26 Nov 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Robby Parker
    Robby Parker avatar
    18 posts
    Member since:
    Jul 2012

    Posted 30 Nov 2015 in reply to Petyo Link to this post

    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?
  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 01 Dec 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready