As subject says, we load the combobox in a kendo window by demand.
Hence the combobox and window are not visible by default.
I wrote a short function to preselect either the entry with ID -1 if it exists - else I want the first entry to be displayed.
My problem is the dynamic loading of all that - my commands are executed in the databound event of the combobox - but it seems not to work as expected .. when I manually enter the needed command AFTER that kendo window with the combobox is displayed it works to a 'T' but not during regular execution ..
Can you give me some hints ?
onComboBoxDataBound: function (evt) {
var widget = evt.sender;
if (this.dataSource.total() > 0) {
// delete preselection then try to select entry with id -1
$('#modComboBox').data('kendoComboBox').input.select();
$('#modComboBox').data('kendoComboBox').input.val('');
$('#modComboBox').data('kendoComboBox').select(function (data) {
return data.id == -1;
});
// no selection then select first entry
if (widget.select() === -1) { // hint I found in stackoverflow
$('#modComboBox').data('kendoComboBox').select(0);
}
}
},
Hi
How I can make cascade drop downlist inside a grid like in this example :
https://demos.telerik.com/kendo-ui/grid/editing-custom
Hi,
I have a combbox where the choices are driven by a remote datasource as follows:
main.php
-----------------------
<script>
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "select_data3.php?type=123",
dataType: "json"
}
}
});
<select id="event_id" style="width: 450px;">
</select>
select_data3.php
-----------------
<?php header('Content-Type: application/json');?>
[{"Text":"AUT","Value":"Austria"}, {"Text":"BEL","Value":"Belgium"}, {"Text":"BGR","Value":"Bulgaria"}]
It's unable to load remote data into combobox
And i had tried to
1. copy http://dojo.telerik.com/IzAWU to my localhost
2. download //demos.telerik.com/kendo-ui/service/Products to local folder
3. It's good for execute step1 directly
4. Show nothing, when i modify params to "//localhost/test/Products" and "json"
I have Asp.net website , and telerik controls on it. On page load I get ConvertFontToSpanfilter error as a alert. On clicking few times 'OK' on alert i am able to process normal.
I am not able to figure it out why it's happening . As i know we can disable the filter but is there any specific reason it's happening?