$("#serviceTypes").kendoDropDownList({ height: 300, optionLabel: "select...", index: 0, dataValueField: "ServiceId", dataTextField: "ServiceName", dataSource: { transport: { read: { type: "POST", url: "../Services/Js/ServiceCommonService_Js.svc/GetServiceTypes" } }, schema: { data: "d" } }, change: function(e) { getSearchTerms(); } })Hi,
I was trying the MediaPlayer with playlist just like the demo here
http://demos.telerik.com/kendo-ui/mediaplayer/playlist
but I noticed that when I select another video from the list the timing and slider does not change, it keeps the duration of the first selected video
see the attached image and notice the current time exceeds the duration which is not the video actual
Here's what I've done:
<!DOCTYPE html><html> <head> <title>Welcome to Kendo UI!</title> <link href="../telerik/styles/kendo.common.min.css" rel="stylesheet" /> <link href="../telerik/styles/kendo.default.min.css" rel="stylesheet" /> <script src="../telerik/js/jquery.min.js"></script> <script src="../telerik/js/kendo.all.min.js"></script> </head> <body> <input id="datepicker" /> <script> $(function() { $("#datepicker").kendoDatePicker(); }); </script> </body></html>
However, when I run the app, I get a text box on the page; not the datepicker.
Is there something else I need to do?

Hi
I have a mvc view called "index" with a table of rows each with "Edit" button and on the top i have a "Create New" button.
On "Edit" button click, I load a partial view with the details of row item. some of the controls are kendo datepickers.
if i either click "Save" or "cancel" and then click another "Edit" button everything loads fine.
But if i don't cancel or save but simply click on another row, my kendo datepicker controls disappear. I suspect it might be the way i am loading my scripts?!
I followed the tutorial and included
@Styles.Render("~/Content/kendo/css")
and @Scripts.Render("~/bundles/kendo")
in my layout.cshtml.
and triggered my datepicker with class 'datepicker' and script
$('.datepicker').kendoDatePicker();
It might not be the problem with datepicker but may be the way load/unload should happen? I appreciate any help.
Thanks
It appears setting the Expanded property in the ItemDataBound event doesn't work. Is that correct? What options do I have?
For example: Setting item.Expanded doesn't appear to do anything. (I verified IsExpanded is true in my models)
@(Html.Kendo().TreeView() .Name("TestTree") .ExpandAll(false) .BindTo(Model.Items, mappings => { mappings.For<MyModelClass>(binding => binding.ItemDataBound((item, child) => { item.Text = child.Name; item.Selected = child.IsSelected; item.Expanded = child.IsExpanded; }) .Children(x => x.ChildItems) ); }) )All of our CRUD via inline grid / popups are being are being followed by a full read of the datasource to keep things in synch (please see sample transport code).
I know this full refresh of the datasource is not necessary. I am trying to understand what is required :
1) Following a successful deletion do I need to delete a row from the grid and datasource and how?
2) Following a successful update do I need to set reset dirty flags to false? Anything else?
3) Following a successful insert how do return extract new key id value and use to synch grid and datasource ?
transport:
{
read: function (options) {
$.ajax({
url: siteUrlRel + "/Handlers/GenericHandler.aspx?sp=sp_getAddresses",
dataType: "json",
type: "GET",
cache: false,
contentType: "application/json; charset=utf-8",
success: function (result) {
options.success(result);
}
});
},
create: function (options) {
$.ajax({
url: siteUrlRel + "/Handlers/GenericCRUDHandler.aspx?sp=sp_addAddress",
data: encodePlus(kendo.stringify(options.data)),
dataType: "json",
async: false,
type: "POST",
success: function (response) {
addressesDataSource.read();
},
error: function (response) {
alert(response);
addressesDataSource.cancelChanges();
}
});
},
update: function (options) {
$.ajax({
url: siteUrlRel + "/Handlers/GenericCRUDHandler.aspx?sp=sp_updateAddress",
data: encodePlus(kendo.stringify(options.data)),
async: false,
dataType: "json",
type: "POST",
success: function (response) {
addressesDataSource.read();
UpdateMessage("Addresses changes applied");
}
});
},
destroy: function (options) {
$.ajax({
url: siteUrlRel + "/Handlers/GenericCRUDHandler.aspx?sp=sp_deladdresses",
data:encodePlus(kendo.stringify(options.data)),
async: false,
type: "POST",
success: function (response) {
addressesDataSource.read();
},
error: function (response) {
alert(response.responseText);
addressesDataSource.cancelChanges();
}
});
},
parameterMap: function (options, operation) {
if (operation !== "read" && options.models) {
return { models: kendo.stringify(options.models) };
}
}
},

I am trying the following code to change the border bottom color of an 'li' element in a list-view
http://dojo.telerik.com/ApIp/27
It does not work
Could you please let me know what's the issue ?
There's probably a simple way to do this but I'm darned if I can figure out what.
I want to build a stacked bar chart roughly similar to the example at http://demos.telerik.com/kendo-ui/bar-charts/stacked-bar. The chart will show the top-N user activity per day. So for today, let's say that Alice did 100 units of work, Bob did 75, and Carole did 82. I want the stack to reflect that. Yesterday Mike did 75, Alice did 84, and Eve did 84.
I'm having a hard time figuring out how to get the stacks to reflect my data. Basically what I want is a stack for each day, with each "slice" of the stack showing activity. All of the Kendo chart types seem to assume that you'll have the same stacks every day, e.g. that every day I want to show what Alice, Bob, and Carole did. What I actually want is to show a stack per day where the components of the stack show (and the tooltip reflects) whatever the most active users for that day did. The same users may be most-active on multiple days but they may not.
Is there a straightforward way to do this with the built-in chart types?