I tried to set the cascadeFrom option like this: $("#itemQty").data("kendoDropDownList").setOptions({ cascadeFrom: "category" });
setOptions() is woking for other options like template but not for cascadeFrom. Anything else that i need to perform except refresh(). See the example at jsfiddle.net. Here I tried to bind the third kendo dropdown with the first one.
It seems that
$("#itemQty").data("kendoDropDownList")._cascade();
works as you want after you set cascadeFrom by setOptions() method. However it's private method and can stop working in futher versions of Kendo.
Updated fiddle: http://jsfiddle.net/1v76Lg9f/5/
Related
I have a KendoUI Grid that holds records. One of the values in a record is a boolean that I am using to show/hide a command (delete). I was trying to follow the instructions here:
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.command.visible
I then realized, if you click on the "Preview" it doesn't even work for them. I know I can use a template to set the class of the div tag and then hide it with some jQuery, but would rather do it with their built in feature...if it even work. Has anyone had any luck with the command visible command?
The link is working as expected now. I am also pasting a Dojo just in case:
Example
It is very easy to get bootstrap multiselect listbox's selected values using javascript like this
$('listbox1').val();
But I want to access it from code behind.
You could probably get more/better assistance by posting some of your code or what you have tried.
However, this might put you in the right direction?:
Bootstrap Multiselect Get Selected values on HttpPost
Is there an example using kendo offline other than a data-bound grid. Specifically, I would like to call the add method to add data to the dataset.
For example, where $scope.dsPatients is a kendo datasource, I would like to
$scope.dsPatients.add($scope.patient);
I currently get a message that the add method is invalid.
I was able to get this to work in dojo:
http://dojo.telerik.com/#jcbowyer/OviXI
I'm trying to do very simple thing: when user changes the value of the dropdown list I'd like to display the confirmation. I've tried doing this:
change: function () {
return confirm("Czy chcesz zapisać tę zmianę?");
}
and the same thing using e.preventDefault() but the value still gets updated.
Any ideas how can I do this?
Use the select event instead. Select happens before the change, and change happens after the value has already been changed.
Example here.
I'm using a custom popup editor in a detail grid (several fields are using data attribute initialization).
One of the fields is a Kendo DropDownList, but I need the options in the list to be filtered based on the value of one of the fields in the currently expanded master row.
I've managed a buggy workaround by setting a global variable when a master row is expanded and then filtering the dropdownlist's datasource using a function call on the open event.
I'm sure there must be a better way to do this. Is it possible to specify a datasource filter using data attribute initialization -- I can't see anything in the docs for this.
Thanks
Missed the obvious...
I just needed to filter the datasource for the drop down list in the grid's edit event.