jeudi 20 août 2015

Hi I want to add tool-tip to kendo grid row

Hi I want to add tool-tip to kendo grid row I used following code but it is not working........

<div id="clientsDb">
        @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.CustomerViewModel>()
            .Name("grid")
            .Columns(columns =>
            {
                columns.Bound(c => c.ContactName).Width(140).HtmlAttributes(new { title = "##" });
                columns.Bound(c => c.ContactTitle).Width(190);
                columns.Bound(c => c.CompanyName);
                columns.Bound(c => c.Country).Width(110);
            })
            .HtmlAttributes(new { style = "height: 380px;" })
            .Scrollable()
            .Groupable()
            .Sortable()
            .Pageable(pageable => pageable
                .Refresh(true)
                .PageSizes(true)
                .ButtonCount(5))
            .DataSource(dataSource => dataSource
                .Ajax()
                .Read(read => read.Action("Customers_Read", "Grid"))
            )
        )
    </div>

This part is used for tool tip

 @(Html.Kendo().Tooltip()
                    .For("#clientsDb")
                        .Filter("grid")
                .Position(TooltipPosition.Top)
                .Width(120)
        )

Aucun commentaire:

Enregistrer un commentaire