Adding Hovertext on KendoUI Grid Column Headers

前端 未结 3 2102
野趣味
野趣味 2021-02-13 21:10

I\'m trying to add custom hovertext (like a tooltip), to the column headers in a KendoUI grid. The text should be specific to each column and ideally not displayed on anything b

3条回答
  •  梦如初夏
    2021-02-13 22:05

    For anyone attempting to do this with Kendo UI MVC it can be achieved by using the following logic:

    On the grids DataBound event create a JavaScript function to handle the databound.

    Within that JavaScript function add the following code (for my example I've named my function createToolTip()

    function createToolTip() {
    
        $("tr > th").kendoTooltip({
            position: "top"
        });
    }
    

    This will create a tool tip to display on the grids header with the position of the tool tip above the header.

提交回复
热议问题