Hi,
I want to fire the event on update button click of listview without changing the values of the textboxes defined under the datasource/model of the same listview.
Hint: I have noticed that k-state-focused and k-state-selected activates on <div id="listview_lv_active">
I want to change this manually. Is it possible to achieve this?
When you deselect an item, this element is removed from the value.
So from 28 steps to 27 elements.
But in the multiselect does not display any element.
But if I join the viewmodel, that variable is made up of 27 elements.
The selected items are not displayed when you deselect one of them.
This happens if only the selected ones are the same as the datasource.
it's possible ? has it ever happened to you?
<
select
id
=
"a"
data-role
=
"multiselect"
data-value-primitive
=
"true"
data-text-field
=
"name"
data-value-field
=
"id"
data-bind="value: doc.Value,
enabled: doc.S,
source: doc.Source,
events: {
dataBound: doc.onDataBound,
select: doc.onSelect,
deselect: doc.onDeselect,
change: doc.onChange
}">
</
select
>
Guys, please help urgently, otherwise we will use another library from Telerik.
The DatePicker is giving me unexpected token {
var
popup = $(
"#tableMenu"
).kendoPopup({
origin:
"bottom left"
,
position:
"top left"
,
collision:
"fit"
,
}).data(
"kendoPopup"
);
$(
".sk-showhide-icon"
).on(
"click"
,
function
(e) {
e.preventDefault();
e.stopPropagation();
popup.close();
popup.setOptions({ anchor: $(
this
) });
popup.open();
});
Hi,
Am using multiselect with Angular2. As part of our automation suite, am trying to set values programmatically. I can't find any documentation around testing it with '@angular/core/testing'. Are there any events/attributes which will make it set the values (with debugElement/nativeElement)?
I have a kendoDropDownList, and want the option label to be "[Please Select]", but the brackets are causing binding issues. I was able to get the first bracket to appear by escaping it with "\[Please Select", but I can't get the 2nd one to escape. I tried a one and two backslashes before "]". What is the trick that I'm missing? Thanks!
My full element markup:
<input id="OpportunityType"
data-role="dropdownlist"
data-auto-bind="false"
data-text-field="name"
data-value-field="opportunityTypeKey"
data-option-label="\[Please Select\]"
data-bind="value: selectedOpportunityType, source: opportunityTypes, events: { change: onOpportunityTypeChange }" />
I am attempting to load a local JSON data source to the Kendo grid. I have confirmed the data is available at the time the grid function is called, and there are no errors in the console. I've confirmed in the debugger that the data is present in the grid function as well.
My HTML:
<div id="grid"></div>
My scripting:
function buildGrid() {
$("#grid").kendoGrid({
dataSource: {
data: kendoGridData,
pageSize: 20,
schema: {
data: "ExecutesqlJSON",
model: {
fields: {
"CHILD__POSTN_KEY": {type: "number"},
"REGION_CD": {type: "string"},
"TERR_CD": {type: "string"},
"MKT_CD": {type: "string"},
"NAME": {type: "string"},
"RNT_AUTO_QUOTE_CNT": {type: "string"},
"RNT_PROPERTY_QUOTE_CNT": {type: "string"},
"RNT_AUTO_WITH_PROPERTY_QUOTE_PCT": {type: "string"},
"RNT_PROPERTY_BOUND_QUOTE_CNT": {type: "string"},
"RNT_PROPERTY_BOUND_QUOTE_PCT": {type: "string"},
"OWN_AUTO_QUOTE_CNT": {type: "string"},
"OWN_PROPERTY_QUOTE_CNT": {type: "string"},
"OWN_AUTO_WITH_PROPERTY_QUOTE_PCT": {type: "string"},
"OWN_PROPERTY_BOUND_QUOTE_CNT": {type: "string"},
"OWN_PROPERTY_BOUND_QUOTE_PCT": {type: "string"},
"TOT_AUTO_QUOTE_CNT": {type: "string"},
"TOT_PROPERTY_QUOTE_CNT": {type: "string"},
"TOT_AUTO_WITH_PROPERTY_QUOTE_PCT": {type: "string"},
"TOT_PROPERTY_BOUND_QUOTE_CNT": {type: "string"},
"TOT_PROPERTY_BOUND_QUOTE_PCT": {type: "string"},
}
}
}
},
height: 550,
groupable: false,
sortable: true,
pageable: {
refresh: true,
pageSizes: true,
buttonCount: 5
},
columns: [ {
title: "Hierarchy Information",
columns: [
{field: "REGION_CD", title: "Region"},
{field: "TERR_CD", title: "Territory"},
{field: "MKT_CD", title: "Market"},
{field: "NAME", title: "Agency Name", width: 200}
]
},
{
title: "Prospects Who Rent",
columns: [
{field: "RNT_AUTO_QUOTE_CNT", title: "Auto Quotes"},
{field: "RNT_PROPERTY_QUOTE_CNT", title: "Bundled Renters Quotes"},
{field: "RNT_AUTO_WITH_PROPERTY_QUOTE_PCT",title: "Bundled %"},
{field: "RNT_PROPERTY_BOUND_QUOTE_CNT", title: "Renters Policies Bound"},
{field: "RNT_PROPERTY_BOUND_QUOTE_PCT",title: "Bound Renters %"}
]
},
{
title: "Prospects Who Own",
columns: [
{field: "OWN_AUTO_QUOTE_CNT",title: "Auto Quotes"},
{field: "OWN_PROPERTY_QUOTE_CNT",title: "Bundled Home/Condo Quotes"},
{field: "OWN_AUTO_WITH_PROPERTY_QUOTE_PCT", title: "Bundled %"},
{field: "OWN_PROPERTY_BOUND_QUOTE_CNT", title: "Home/Condo Policies Bound"},
{field: "OWN_PROPERTY_BOUND_QUOTE_PCT", title: "Bundled %"},
]
},
{
title: "Total",
columns: [
{field: "TOT_AUTO_QUOTE_CNT", title: "Auto Quotes"},
{field: "TOT_PROPERTY_QUOTE_CNT", title: "Bundled Property Quotes"},
{field: "TOT_AUTO_WITH_PROPERTY_QUOTE_PCT", title: "Bundled %"},
{field: "TOT_PROPERTY_BOUND_QUOTE_CNT", title: "Property Policies Bound"},
{field: "TOT_PROPERTY_BOUND_QUOTE_PCT", title: "Bundled %"}
]
}
]
});
}
Sample of JSON data:
{
"ExecutesqlJSON":[
{
"CHILD__POSTN_KEY":60000048485051,
"REGION_CD":"002",
"TERR_CD":"3",
"MKT_CD":null,
"NAME":"JANE DOE",
"LSP_NAME":null,
"EMP_CD":"JDOE",
"CHILD_POSTN_LEVEL__OPTION_CD":"TAM",
"REPORT_DATE":"\/Date(1499832000000)\/",
"RNT_AUTO_QUOTE_CNT":489,
"RNT_PROPERTY_QUOTE_CNT":153,
"RNT_AUTO_WITH_PROPERTY_QUOTE_PCT":31.2883,
"RNT_PROPERTY_BOUND_QUOTE_CNT":39,
"RNT_PROPERTY_BOUND_QUOTE_PCT":25,
"OWN_AUTO_QUOTE_CNT":773,
"OWN_PROPERTY_QUOTE_CNT":490,
"OWN_AUTO_WITH_PROPERTY_QUOTE_PCT":63.3894,
"OWN_PROPERTY_BOUND_QUOTE_CNT":106,
"OWN_PROPERTY_BOUND_QUOTE_PCT":21,
"TOT_AUTO_QUOTE_CNT":1262,
"TOT_PROPERTY_QUOTE_CNT":643,
"TOT_AUTO_WITH_PROPERTY_QUOTE_PCT":50.9509,
"TOT_PROPERTY_BOUND_QUOTE_CNT":145,
"TOT_PROPERTY_BOUND_QUOTE_PCT":22
}
]
}