Is there a bug with Kendo UI? The Kendo grid pager seems to be misaligned with the bottom

Recently, I've been experimenting with Kendo UI and encountered a specific issue: The pager for my Kendo grid is not aligning properly at the bottom of the grid. Although I've attempted to adjust the CSS styling for k-grid-pager, the issue persists. Initially, the pager was positioned in the upper left corner until I manually adjusted the top margin to 450px to shift it downwards. I am seeking a dynamic solution that can adapt to the overall height of the grid. Additionally, there seems to be a black border that is a part of the pager, giving me the impression that a certain class is being hidden from me. Here is an image illustrating the current state of my grid: Below is the CSS code snippet used to customize the grid and its appearance:

    #konTable2 {
        position: absolute;
        left: 150px;
        margin-right: -50%;
        background-color: rgba(0, 0, 0, 0);
        border: 0px solid rbga(0, 0, 0, 0);
    }
    .k-grid tr th {
        border-bottom: 1px solid black;
        text-align: center;
        height: 25px;
    }
    .k-grid tr td {
        background-color: #494949;
        border-bottom: 1px solid black;
        text-align: left;
        mix-blend-mode: hard-light;
    }
    .k-grid-pager {
        position: relative !important;
        float: left !important;
        background-color: lime;
        width: 900px;
        left: 50%;
        margin-right: -450px;
        margin-top: 450px;
    }

Now, let's take a look at the HTML/JavaScript code used to structure the grid:

    <div id="konTable2"></div>
    <script src="../json/Koncerts.jsonp"></script>
    <script type="text/javascript">
    var myConcerts = concerts;
    $(function() {

        var dataSource = new kendo.data.DataSource({
            data: myConcerts    
        });

      $('#konTable2').kendoGrid({
        columns: [{ title: "Artist", field: "artist", template: "<div class='name' style='width:200px'>#= artist #</div>"},
                {title: "Concert", field: "concert", template: "<div class='name' style='width:250px'>#= concert #</div>"},
                {title: "Date", field: "date", template: "<div class='date' style='width:150px'>#= date #</div>"},
                {title: "City", field: "location.city", template: "<div class='name' style='width:150px'>#= location.city #</div>"},
                {title: "State", field: "location.state",template: "<div class='name' style='width:150px'>#= location.state #</div>"}
                ],
        dataSource: {
            data: myConcerts,
            pageSize: 5
        },
        selectable: true,   
        sortable: true,
        scrollable: false,
        pageable: {
            refresh: true,
            pageSizes: true,
            buttonCount: 5
        },
    });
});
</script>

UPDATE

I have tweaked the CSS styling. I am now focused on modifying k-pager-wrap to reposition the pager, resulting in a slight improvement. Here's how it currently appears: Note: I have removed the vertical translation seen earlier. You can observe how the pager seems determined to remain at the upper left corner of the grid... Additionally, here is the updated relevant CSS:

    .k-pager-wrap {
        width: 900px;
        position: relative;
        float: right;
        left: 50%;
        margin-right: -450px;
        mix-blend-mode: normal !important;
    }
    .k-grid-pager {
        width: 900px;
    }

Answer №1

UPDATE:

After some troubleshooting, I discovered that there was a CSS styling affecting the HTML table element that I had completely forgotten about when integrating Kendo... Hooray!

Here's the snippet of code that slipped my mind:

            table, .gridStyle {
            font-size:2em !important;
            text-align:center !important;
            position:absolute;
            float:left !important;
            width:1200px !important;
            left:50% !important;
            margin-left:-600px;
            margin-top:20px !important;
            height:80px !important;
            background-color:lightgrey; 
            }
            .gridStyle {
            font-size:26px !important;
            height:290px;
            border:1px solid aliceblue;
            }
            th{
            background-color:lightgrey;
            border:2px solid grey !important;
            text-align:center;
            border-radius:0px;
            padding:4px;
            mix-blend-mode:normal;
            font-color:lightgrey !important;
            word-wrap:normal;
            }
            td{
            background-color:lightgrey;
            border:2px solid grey !important;
            text-align:center !important;
            border-radius:0px;
            padding:4px;
            mix-blend-mode:normal;
            word-wrap:normal;
            }
            tr{border-width:2px !important;}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Forming a space between borders

I'm attempting to create a space within a div's border that can accommodate an image, much like so: Is there a method to achieve this using only CSS? The only solution I have found is: .box { background: url(img.png) bottom left; border ...

Make sure to have the list available while choosing an item

I want to design a unique CSS element with the following characteristics: Include a button. When the button is clicked, a list of items (like a dropdown list) should appear. We should be able to select items by clicking on them, and the parent component s ...

Tips for causing a single span tag within a group of multiple tags to overflow its parent element

Is there a way to make the highlight span sit just after the to without affecting the width of the parent, and without using absolute positioning? I would like the span to be aligned with the example "to" and overflow outside of the parent container. Thank ...

Using a `right: 0` value will not be effective when using absolute positioning

Currently, I am in the process of developing a website utilizing Bootstrap 3.3.6. After going through a tutorial on how to create a responsive banner slider, I found this resource helpful: http://www.jqueryscript.net/slider/Full-Width-Responsive-Carousel- ...

Scroll to the end of the main div's horizontal position instead of using offset().left

I'm struggling with an issue in my code. <script type="text/javascript"> $(function() { $('ul.nav a').bind('click',function(event){ var $anchor = $(this); /* ...

Tips for achieving a precise amount of boxes in each row

Is it possible to only have 5 boxes per line and then the next one goes to the next line using CSS? https://i.stack.imgur.com/L7vr4.png .box { border-color: #32ff00; border-width: 4px; border-style: dotted; width: 170px; height: 200px; fl ...

Combine and blur multiple background images using CSS blending techniques

I am currently working on a website, which is just a demo built in ReactJS: The issue I'm facing is related to the background. The idea behind the app is simple - it consists of 4 parts, with the top part displaying weather information without a bac ...

Tips on concealing the visibility of a table row using PHP

My HTML table structure is quite simple: <style> .demo { width:100%; border:1px solid #C0C0C0; border-collapse:collapse; padding:5px; } .demo th { border:1px sol ...

Obtain the text from an altered stylesheet in Firefox

I am currently programmatically updating stylesheets for a web page using JavaScript. My method involves having a local copy of the page and all associated assets stored on a server. After I finish making changes to the stylesheets, my goal is to save the ...

fa icons moving the elements aside

I'm attempting to design a navigation menu with tabs, but I'm facing an issue where the tabs containing "fa icons" are consuming too much space, causing other elements to be shifted to the right or below (if there were more lines). How can I pre ...

Having trouble with Jquery slide toggle and append functionality?

I'm struggling to get this code right. Could it be a syntax issue? jQuery is confusing me, as the alert works but not the functions. Is there something specific I need to do in order to make them work properly? How can I ensure that everything runs sm ...

The background image is not displaying correctly on mobile devices

I'm struggling to make the image fit the entire screen on a mobile device using the code below. Interestingly, it displays correctly on my personal computer. #topContainer { height:1048px; width: 100%; padding: 0; margin: 0; } #div1 { ...

When my contact form is viewed on mobile, an unexpected margin appears

On my main page, I have a contact form positioned on top of an image slider that appears like this: https://i.sstatic.net/aGnj1.png The contact form is nested inside the slider's div as shown below: <div class="img-slide"> <div c ...

Unusual marking on the navigation bar

Currently, I am making updates to a website that was created by a previous employee long before I joined the team. One of the requested changes is to eliminate the orange box surrounding the navigation links. The navigation appears to be generated using Ja ...

Styling Material UI height in select elements (React)

Currently, I am developing a react application that utilizes Material Dashboard. I am encountering an issue with the height of a Select (drop-down list) component. See image here On the right side of my app, there is a standard input field and I would li ...

Adapting CSS styles according to the height of the viewport

Goldman Sachs has an interesting webpage located here. One feature that caught my eye is the header that appears as you scroll down, with squares changing from white to blue based on the section of the page. I'm curious about how they achieved this ef ...

The CSS code designed to limit the display to only a two-line sentence is failing to work properly in Internet Explorer

I've implemented the following CSS code to ensure that the display sentence doesn't exceed 2 lines, with the remaining text being replaced by "...". .bell-notification-max-words-display { overflow: hidden; display: -webkit-box; ...

What is the best way to align my logo image and search field at the center of the page, similar to the layout of

Struggling with styling this webpage. I aim to have my logo and search bar centered on the page, surrounded by ample space above and below. You can check it out at NE1UP dot com. All I want is a Google-style layout for my page, but I'm facing difficu ...

Taming col-auto in Bootstrap to prevent it from being overly insatiable

In this simplistic example below, I have implemented two columns using the col-auto class, allowing each column to take up the necessary space. .row { background: #f8f9fa; margin-top: 20px; } .col { border: solid 1px #6c757d; padding: 10px; o ...

Strange Behavior When Floating Right in Chrome

There's a strange issue that I'm facing, only in Chrome. It seems to be adding some extra space on top of an element with float: right, but only when the browser window is resized (you can see how the name then shifts under the header): This pro ...