I do apologize in advance for the bad post
I am implementing a kendo grid for filtering information, My first filter is giving me so much issues and i now have to ask forum because nothing works that i try.
Issues:
1. When selecting filter on the column below, I can not focus on the numericTextBox to input values I am forced to use spinners only.
2. When using spinners its history is always off by 1, Example: I click it twice (Up) and the value = 2. When I filter the row returns No: 1 and when inspecting the filter it is now 1 and not 2.
Code Grid:
@(Html.Kendo().Grid<DeBeers.Seals.Web.Models.SearchSealsModel>()
.HtmlAttributes(new { @style = "-ms-overflow-x: scroll !important" })
.Name("grid")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Read", "SearchSeals"))
)
.Columns(columns =>
{
columns.Bound(b => b.SealNum).Filterable(filterable => filterable.UI("sealNumFilter"));
})
.Pageable()
.Sortable()
.Filterable(ftb => ftb.Mode(GridFilterMode.Menu))
Code Script:
function sealNumFilter(element) {
debugger;
element.kendoNumericTextBox({
decimals: 0,
format: "n0",
//spinners: false,
})
// .focus(function () {
// var input = $(this);
// setTimeout(function () {
// input.select();
// });
//});
}
I am implementing a kendo grid for filtering information, My first filter is giving me so much issues and i now have to ask forum because nothing works that i try.
Issues:
1. When selecting filter on the column below, I can not focus on the numericTextBox to input values I am forced to use spinners only.
2. When using spinners its history is always off by 1, Example: I click it twice (Up) and the value = 2. When I filter the row returns No: 1 and when inspecting the filter it is now 1 and not 2.
Code Grid:
@(Html.Kendo().Grid<DeBeers.Seals.Web.Models.SearchSealsModel>()
.HtmlAttributes(new { @style = "-ms-overflow-x: scroll !important" })
.Name("grid")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Read", "SearchSeals"))
)
.Columns(columns =>
{
columns.Bound(b => b.SealNum).Filterable(filterable => filterable.UI("sealNumFilter"));
})
.Pageable()
.Sortable()
.Filterable(ftb => ftb.Mode(GridFilterMode.Menu))
Code Script:
function sealNumFilter(element) {
debugger;
element.kendoNumericTextBox({
decimals: 0,
format: "n0",
//spinners: false,
})
// .focus(function () {
// var input = $(this);
// setTimeout(function () {
// input.select();
// });
//});
}