Overflow not showing until window is resized

5 posts, 1 answers
  1. Kyle Smith
    Kyle Smith avatar
    42 posts
    Member since:
    Feb 2012

    Posted 17 Dec 2015 Link to this post

    Hi,

     I have a kendo toolbar that has one static button. The rest are added via javascript that calls to web service to determine what buttons are to be made available. If the code adds too many buttons, I expect the overflow to appear, but it does not. The window must be resized and then the overflow appears.

    I've made a demo to show the issue: http://dojo.telerik.com/OXUpA

    Please let me know what I can do to get the overflow to appear immediately when it is needed.

  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2594 posts

    Posted 21 Dec 2015 Link to this post

    Hi Kyle,

    To achieve the expected result you should call the resize method. For your convenience here is the modified dojo.

    Regards,
    Iliana Nikolova
    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. Aleksandar
    Aleksandar avatar
    4 posts
    Member since:
    Nov 2015

    Posted 30 Jun in reply to Iliana Nikolova Link to this post

    I have the same issues with the toolbar.

    I have static items, I use AngularJS so in my case the toolbar is configured thought the options in Angular Controller.

    And overflow content is not visible untill I resize the page.

     

    Any ideas why?

     

    P.S. I pass following configuration:

    {
        template: "<select-all-rows-directive />",
    attributes: { class: "toolbar-button" }
    },
    {
    template: "<reset-all-grid-filters />",
    attributes: { class: "toolbar-button" }
    }

  5. Aleksandar
    Aleksandar avatar
    4 posts
    Member since:
    Nov 2015

    Posted 30 Jun in reply to Aleksandar Link to this post

    It means that my items are directives.

    Maybe it's because of the render order?

    Maybe kendo renders toolbar before all my directives are rendered?

  6. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2594 posts

    Posted 04 Jul Link to this post

    Hi Aleksandar,

    I am not quite sure what causes the problem in your application. Could you please provide a dojo which I will be able to test on my side - this way I would be able to provide concrete recommendations? 

    Regards,
    Iliana Nikolova
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready