Helllo,
I'm trying to filter a set of tasks with summary tasks. My first try was to use the filter on the datasource, but then the summaries are getting filtered out.
What approach should I use?
Data set:
- Section 100 (=summary)
- Task A
- Task B
When I filter on "A" I hope to see:
- Section 100
- Task A
But since "Section 100" has no "A" I see nothing at all.
Kind regards,
Gert-Jan
I have this code on my jhtml page:
$("#myselect").kendoComboBox({
dataTextField: "Name",
dataValueField: "Id",
filter: "contains",
autoBind: false,
minLength: 3,
dataSource: {
serverFiltering: true,
type: "json",
transport: {
read: {
url: "/controller/retrivedata",
contentType: "application/json;",
dataType: "json",
data: function () {
return {
CustomId: data.MyCustomIdValue
}
}
}
}
},
select: function (e) {
if (e.dataItem) {
var dataItem = e.dataItem;
alert(selectedItem.Id);
alert(selectedItem.Name);
data.OtherComboId = parseInt(selectedItem.Id);
$('#otherCombo').data('kendoComboBox').dataSource.read();
}
}
});
The combo box load data correctly but on the select event I can not get the select object. I need the data value.
e.dataItem is undefined.
e.item contain the LI element but I never have found the value (onli the text)
How I can read the datavalue?
LSo
How can I change category axis label names.
For example in this example I want to keep months same just change the display name. IE: instead of "January" - "Month One" , just for january. and "Month 4" for April
Hi,
I am see an issue with the way the Editor component works inside a modal dialog. It seems that the resizing of the editor is wrong when in a dialog. I have attached a sample solution so you can see it for your self.
In the sample, you can see three different editors using pretty much the same MVC helper. One on the home page, one is in a Window component and one in a Dialog. All three have resizeable set to true.
The home page editor and the window editor resize consistently. The dialog editor resizes the component but not the text area of the component.
I need to use it in the dialog.
Thanks,
Ed
Hello,
to resample a large dataset on server side I need to know the width of the categoryaxis of a line chart.
As workaround I use now the width of the div: $("#chart").width().
How can I get the width of $("#chart").data("kendoChart").options.categoryAxis ?
Best regards,
Peter
Hi,
I have a scnario wher ei have used multiple custom telpmates to dsiplay dropdownlist on kendo grid Inline Edit. When i try to update ,its working fine in chrome but its not working with IE.
Could you please provide some suggestions.
Thank you,
Mani Teja
I am trying to add a menu to the Editor tools that populates based on a AJAX get call. The menu will add html to the editor.
<code>
$('#OptionTextReport').kendoEditor({
tools: [
"bold",
"italic",
"underline",
"strikethrough",
{
name: "insertFeature",
template: '<ul id="featureTool"></ul>'
}
],
resizable: {
content: true,
toolbar: true
}
});
var editor = $('#OptionTextReport').data("kendoEditor");
var updateFeatureList = function (featureList) {
var list = [];
$.each(featureList, function(index, value) {
list.push({
text: value.FeatureDescription,
attr:{ featureid: value.FeatureId, description: value.FeatureDescription },
select: function (e) {
var id = $(e.target).parent().attr("featureid");
var description = $(e.target).parent().attr("description");
var html = '<span class="feature" featureid="' + id + '">[' + description + ']</span>';
editor.exec("insertHtml", { value: html });
$('.k-animation-container').hide();
featureMenu.close();
}
});
});
var result = {
text: 'Insert Feature',
cssClass: "insert-feature",
items: list
}
featureMenu.remove(".insert-feature");
featureMenu.append([result]);
}
$.get(window.pulse.Category.Url.GetOptionFeatures + '?optionId=' + optionId, function (data) {
updateFeatureList(data.Data);
}, 'json');
</code>
The menu populates correctly but when selecting an item from the list the menu stops working. the style changes and clicking on the menu does nothing.
I am using Kendo version 2018.2.620 and JQuery version 3.31 and testing using chrome 69.0.3497.81.