I have a dropdownlist that I want to update using values saved in a modal window. I'm using the following:
function
RebindOrganizations() {
var
ddl = $(
'#OrganizationName'
).data(
"kendoDropDownList"
);
ddl.dataSource.read();
if
(newOrganizationName != undefined) {
ddl.select(
function
(dataItem) {
return
dataItem.value === newOrganizationName;
});
//ddl.value(newOrganizationName);
}
ddl.focus();
}
and neither the ddl.select nor the ddl.value statements do the trick. My newOrganizationName value is set correctly. The ddl.dataSource.read() statement executes correctly (i.e., my new Organization is in the list). Any ideas?
I currently have a ListView that I'm using to update database entries. I'm not getting any of the ModelState errors to display upon update. This is my main issue.
After reviewing the related tickets here, the solution seemed fairly simply. However, I'm having some issues, here is my ListView
@(Html.Kendo().ListView<
OrderEntry.Models.OrderEntry.Product
>()
.Name("ListView")
.TagName("div")
.ClientTemplateId("template")
.DataSource(dataSource => dataSource
.Model(model => model.Id(p => p.OrderID))
.PageSize(1)
.Read(read => read.Action("ProductReadAll", "Order", new { associatedOrderID = ViewBag.AssociatedOrderID }))
.Create(create => create.Action("ProductCreate", "OpsOrder"))
.Update(update => update.Action("ProductUpdate", "OpsOrder"))
.Events(e => e.Error("error"))
)
.Pageable()
.Editable(edit => edit.TemplateName("ProductEdit"))
)
My issue with this, adding the Error Event is causing an error stating that "error" (the name of whatever js function I use) is not defined in /Order/ProductDetailsRead. ProductDetailsRead is a method in my controller that is called to show the page this ListView is on. Why is the ListView looking in my controller for a js function? Haven't run into anything similar to this anywhere else in our website.
Are there any alternatives to showing modelstate errors when updating an item? Something more similar to grids?
I have made a custom editor template for my scheduler and wish to be able to upload attachments to events.
I have added an upload control to the template and can successfully upload/delete files within one instance.
However, if I open the calendar event after creation, the previously uploaded files will not populate.
Is there a way to bind the upload control to the calendar event, as it contains all the attachments information?
Hello,
In my MVC grid I need to show a lot of columns (around 500) some of them are hidden others not. I'm using the InCell edit functionality to edit the data, on Chrome and Firefox everything works great but on IE after the cell loses the focus (after a value change) there's a huge delay. This delay is very annoying because the grid is unresponsive during this period.
Here is a demo with this behavior: http://dojo.telerik.com/oMUNo/5
I'm doing something wrong?
Thanks for the help!
Hi,
I want to have "Slide in windows" in my ASP.NET solution für editing, Report showing etc.
here in this Video you can see what I mean:http://www.screencast.com/t/9clutfLk3
how to implement such a functionality with Kendo window?
robert