Hello everybody. I have a question. As I can run a tooltip in the following code grid? the idea is to show me where I positioned the field.
Thank you!
@(Html.Kendo().Grid<
ControlGAS.DataAccess.Entities.Customer
>()
.Name("GridCustomers")
.Columns(columns =>
{
columns.Bound(customer => customer.Id).Title("ID").Filterable(f => f.UI("filterById")).HtmlAttributes(new { @style = "white-space: nowrap;"});
columns.Bound(customer => customer.Denomination).Title("Nombre").Filterable(f => f.UI("filterByName")).HtmlAttributes(new { @style = "white-space: nowrap;"});
columns.Bound(customer => customer.Code).Title("Codigo").Filterable(f => f.UI("filterByCode")).HtmlAttributes(new { @style = "white-space: nowrap;"});
columns.Bound(customer => customer.Address).Title("Direccion").Filterable(f => f.UI("filterByAddress")).HtmlAttributes(new { @style = "white-space: nowrap;"});
columns.Bound(customer => customer.City).Title("Ciudad").Filterable(f => f.UI("filterByCity")).HtmlAttributes(new { @style = "white-space: nowrap;"});
columns.Bound(customer => customer.FiscalIdentification).Title("Identificacion Fiscal").Filterable(f => f.UI("filterByFiscalId")).HtmlAttributes(new { @style = "white-space: nowrap;"});
columns.Template(customer => { }).ClientTemplate(
"<
a
href
=
" + quote + @Url.Action("
Editing", "Customer", new {
customerId
=
"#=Id#"
}) + quote + "><
i
class
=
'font-size-20 icon md-edit margin-right-10'
aria-hidden
=
'true'
></
i
></
a
>" + "" +
"<
a
href
=
" + quote + @Url.Action("
Editing", "Customer", new {
customerId
=
"#=Id#"
}) + quote + "><
i
class
=
'font-size-20 icon md-delete margin-right-10'
aria-hidden
=
'true'
></
i
></
a
>")
.Title("Actions").Width(100);
})
.Scrollable()
.Sortable()
.Groupable()
.Pageable()
.DataSource(
dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetCustomers", "Customer"))
)
.Reorderable(r => r.Columns(true))
.ClientDetailTemplateId("master")
.Filterable(filter => filter.Mode(GridFilterMode.Row)
.Extra(false)
.Operators(operators => operators
.ForString(str => str.Clear()
.StartsWith("Empieza con")
.IsEqualTo("Igual a")
.IsNotEqualTo("No es igual a")
)
.ForNumber(num => num.Clear()
.IsEqualTo("Es igual a")
.IsNotEqualTo("Distindo de")
.IsNull("Vacio")
.IsLessThan("Menor a")
.IsGreaterThan("Mayor a"))
)
)
.Events(events => events.DataBound("dataBound"))
)