I have scoured the forums and following all of the instructions to try to get the DropDownlist to properly behave. What I am doing is using a wizard (in Jquery) form and each time the next button is called the following code is hit:
if (wizardForm.valid()) {// validate the form
wizardForm.validate().focusInvalid();
.............}
The problem is when I change the ignore option to "", from ignore: ":hidden" the validation looks like it is successful and without validation errors however the next button does not advance to the next page.
I have also tried the example from the "KendoInputs_Validation" project but that does not work at all in Visual Studio.
Hi,
Is there a way to use Kendo().Menu() with complex
ItemDataBound ?
While creating simple menu with several menu option &
several children’s is ok, I did not managed to understand how to implement menu
item with several children & images & dropdown list & buttons.
In the attached image you will find the best explanation in
order to understand what I want I've attached an image
Thanks
Hello,
I have a grid with the filterMenuInit event set up to fire a custom function. However, the event is not firing when I open the filter menu. Here is some of the code for the grid:
@(Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu()
.Columns(columns =>
{
columns.Bound(m => m.Number)
.Title("Number")
.Width(140)
.Filterable(ftb => ftb.Cell(cell => cell.ShowOperators(true).Template("NumberFilter")));
columns.Bound(m => m.FirstName)
.Title("First Name")
.Width(140)
.Filterable(ftb => ftb.Cell(cell => cell.Delay(@serverSideDelay).ShowOperators(true)));
columns.Bound(m => m.LastName)
.Title("Last Name")
.Width(140)
.Filterable(ftb => ftb.Cell(cell => cell.Delay(@serverSideDelay).ShowOperators(true));
})
.Pageable(pageable => pageable
.Refresh(true)
.ButtonCount(10))
.ColumnMenu(menu =>
{
menu.Filterable(false);
menu.Columns(false);
})
.Sortable(s => s
.AllowUnsort(false)
.SortMode(GridSortMode.SingleColumn))
.Selectable()
.EnableCustomBinding(true)
.Events(e => e.FilterMenuInit("hideFilter"))
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(m => m.ID))
.Sort(s =>
{
s.Add("LastName").Ascending();
})
.PageSize(10)
.ServerOperation((bool)@ViewBag.IsServerSide)
.Read(read => read.Action("ReadAction"))
.Total((int)ViewBag.Count)
.Events(events => events.Error("onKendoDataSourceError").RequestStart("checkFilter"))
)
.Events(e => e.Change("selectObject").DataBound("checkFilter"))
)
I'm using version 2014.3.1316. Can you please help with this? Thanks.
Hi,
I have a custom class with a few strings and a list My grid is bound to a collection of my custom class and one of the columns is for the list.count. When the Grid renders, the column is empty. When reviewing the html code for the Grid, I discovered that the object type of list.count is now "object", see below:
{"Provider":{"type":"string"},"Type":{"type":"string"},"Bills":{"type":"object"}
Where bills is a List<>.
Hi everyone,I've created a Grid Hierarchy here..I was able to get the column values from my Parent Grid(CustomerGrid) to use it on a ClientTemplate for example
(@Html.ActionLink("Add Order", "AddOrder", "Customer", new { customerId = "#= CustomerId#" }, null).ToHtmlString()).
But when I'm trying to adapt this kind of code, now getting the customerOrderId field from my Child Grid and use it on my ClientTemplate for example
(@Html.ActionLink(AmsStrings.LabelEditAmendment, "EditOrder", "CustomerOrder", new { orderId = "#= OrderId#" }, null).ToHtmlString())
@(Html.Kendo().Grid<customerviewmodel>().Name("CustomerGrid").Columns(columns =>{columns.Bound(item => item.CustomerId).Hidden(true);columns.Bound(item => item.Name);columns.Template(t => { }).Title("").Width(120).ClientTemplate("<div class='btn-group'> " + "<a class='btn btn-default btn-sm dropdown-toggle' data-toggle='dropdown'> Action <span class='caret'></span></a>" + "<ul class='dropdown-menu'> " + " <li>" + (@Html.ActionLink("Add Order", "AddOrder", "Customer", new { customerId = "#= CustomerId#" }, null).ToHtmlString()) + "</li>" + " </ul></div>");}).Selectable(selectable =>{selectable.Enabled(true);selectable.Mode(GridSelectionMode.Single);}).ClientDetailTemplateId("template").DataSource(datasource => datasource.Ajax().Model(model =>{model.Id(m => m.CustomerId);}).Read(read => read.Action("CustomerDataSource", "Customer"))).Sortable())<script id="template" type="text/x-kendo-template"> @(Html.Kendo().Grid <CustomerOrderViewModel> () .Name("grid_#=CustomerId#") .Columns(columns => { columns.Bound(item => item.OrderId).Hidden(true); columns.Bound(item => item.OrderName); columns.Template(@<text></text>) .Title("") .Width(100) .ClientTemplate("<div class='btn-group'> " + "<a class='btn btn-default btn-sm dropdown-toggle' data-toggle='dropdown'>Action<span class='caret'></span></a>" + "<ul class='dropdown-menu'> " + " <li>" + (@Html.ActionLink("Edit", "EditOrder", "CustomerOrder", new { orderId = "#= OrderId#" }, null).ToHtmlString()) + "</li>" + " <li>" + (@Html.ActionLink("View", "ViewOrder", "CustomerOrder", new { orderId = "#= OrderId#" }, null).ToHtmlString()) + "</li>" + " </ul> </div>"); }) .Editable(editable => editable.Enabled(false)) .Sortable() .Selectable(selectable => { selectable.Enabled(true); selectable.Mode(GridSelectionMode.Single); }) .DataSource(datasource => datasource .Ajax() .ServerOperation(false) .PageSize(5) .Model(model => model.Id(p => p.OrderId)) .Read(read => read.Action("CustomerOrderDataSource", "CustomerOrder", new { customerOrderId = "#=customerId#" }))) .ToClientTemplate())</script>I found out that defining "Editable(false)" for a model field doesn't seem to work when I've chosen GridEditMode.PopUp:
@(Html.Kendo().Grid<Pharmacy>() .Columns(columns => ...) .Editable(editable => editable.Mode(GridEditMode.PopUp)) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(p => p.Id); model.Field(p => p.Id).Editable(false); model.Field(p => p.MyReadOnlyField).Editable(false); })))In this case, the "Id" field and the "MyReadOnlyField" field will be shown in the popup as editable - which obviously is not the expected behavior.
Is this done intentional or is it a bug that Model definition doesn't work correctly with PopUp edit mode? Of course I can define a custom template, but that's not what I really want... from my view it's a bug or missing feature.
Thanks in advance,
Dimitrij
Does ASP.NET MVC scheduler support integration with google calender or outlook?
Thank you..