As per the documentation, we can filter the datasource with only one logic: either "or" or "and". I need to filter as per the following logic:
(condition 1) and ((condition 2) or (condition 3))
Is it possible?
If not, is there in the operator something like "in" so that I can do the following logic:
(condition 1) and ( x in ("value 1", "value 2"))?
I have a grid
@(Html.Kendo().Grid<TaskViewModel>()
.Name("taskGrid")
.Deferred()
...
.Columns(columns =>
{
columns.Bound(e => e.CrmWorkflowStatusText).Title("WF Status").Filterable(x
=> x.UI("SomeFunction")
.Extra(false)
.Operators(k => k
.ForString(str => str.Clear()
.IsEqualTo("Is equal to")
.IsNotEqualTo("Is not equal
to")
)));
})
...
.DataSource(dataSource => dataSource
...
))
that has a dropdownlist to filter one of the columns
function SomeFunction(element) {
const checkBoxTemplate = '@(Html.Kendo().CheckBox().Name("#:Title#").HtmlAttributes(new { @class = "checkbox", onchange = "SomeOtherFunction(this)" }))';
element.kendoDropDownList({
dataSource: {
transport: {
read: "@Url.Action("SomeAction")"
}},
optionLabel: "Select Something",
dataTextField: "Title",
dataValueField: "Title",
open: adjustDropDownWidth,
template: "<span><label>" + checkBoxTemplate + "<span id='#= Title #'>#= Title #</span></label></span>"
});
}
My problem is setting the id of this dropdownlist. I tried
name: "somename"
and
htmlAttributes: { id: "somename" }
hmtlAttributes does nothing and name:
"somename" sets the data-role attribute to "somename"...
<input title="Value" style="display: none;" type="text" data-role="test123" data-bind="value:filters[0].value">
Is there a way to fix this?
Hello,
we use Kendo UI grid for Angular 2 and we found an issue with default kendo-string-filter. When text is entered into filtering cell the bound filter object is correctly updated,and reset filter button appears, thats fine.
When the text in filter is deleted one would expect filter reset button to disappear and given filter criteria (FilterDescriptor for that column) to be removed from filter object. That is not what happens however. When text is deleted (by backspace for example) he reset button stays visible and bound filter object still contains the FilterDescriptor for that column, just with value being '' (empty string).
Hello,
I want to use autocomplete with popup position on top of it, here's an example: https://dojo.telerik.com/UraZa
Everything works fine for the first suggestion (first screenshot). The issue occures when suggestion content is updated: popup position is broken after that (second screenshot). Looks like "position" property of configuration is ignored.
I get this behaviour in every browser I tried (Chrome, IE, FF) with different versions of framework.
Any suggestions?
Thanks.
Hello,
I have a scenario where want to load kendo grid in kendo window on button The button is in external template by . Please suggest something by which can close and exit/hide grid and window easily
Grid MVVM external Script:
<
script
id
=
"FeeGrid"
type
=
"text/x-kendo-template"
class
=
"KendoExtTemplate"
>
<
div
id
=
"feegridContainer"
>
<
div
data-role
=
"grid"
data-editable
=
"true"
data-toolbar
=
"['create', 'save']"
data-columns="[
{ 'field': 'FeeCurrency', 'width': 270 }
]"
data-bind
=
"source: FeeBreakup"
></
div
>
</
div
>
</
script
>
01.
<
script
id
=
"Heads"
type
=
"text/x-kendo-template"
class
=
"KendoExtTemplate"
>
02.
<
div
>
03.
<
input
data-role
=
"numerictextbox"
data-min
=
"0"
data-bind
=
"value: Gross_Fare"
>
04.
<
input
data-role
=
"numerictextbox"
data-min
=
"0"
data-bind
=
"value: TotalFee"
><
button
data-role
=
"button"
05.
data-icon
=
"edit"
06.
data-bind
=
"click: OpenFeeGrid"
07.
></
button
>
08.
</
div
>
09.
10.
</
script
>
the OpenFeeGrid , should trigger to show / hide kendo Window with Grid inside.