I have extended the Date Widget into my own implementation by following the online examples. All is working nicely pretty much.
The issue I have is when the Widget is initialized twice. We get this in production with some Anthem based controls which handle the postback and update (not Ajax).
But I can recreate this issue simply by having the date picker on a html page with a button that calls the initialize twice. I have created the following dojo example:
http://dojo.telerik.com/@andez2000/eHEZA/31
If you click the "Init Date Picker" button after you run the example, the width of the widget changes to 100% - not what I asked for... You can see this getting fired inside of kendo.
Is there a nice way not to reinitialize the date picker under these circumstances. Ideally if I could handle this inside of kendoExtendedDatePicker.init would be good.
Thanks
var viewModel = kendo.observable({
test: '123'
});
var
myFailedView =
new
kendo.View(
'<span data-bind="text: test"></span> #: location.href #'
, { model:viewModel, evalTemplate:
true
});
var mySucessfulView = new kendo.View('##<span data-bind="text: test"></span> #: location.href #', { model:viewModel, evalTemplate: true });
I would expect it to render a span with 123 followed by the current location of the browser. But it only renders the span. If I start with an empty template expression "##" it behaves as expected. Is that a bug or did I miss something in the documentation?
For reference see JsFiddle
Regards,
Kris
http://jsfiddle.net/9y36opsk/
I want to sort rows and columns by values (not fieldnames).
One way to do that is like it's done by DevExpress (https://demos.devexpress.com/ASPxPivotGridDemos/OLAP/Browser.aspx + see attached screenshot). By right clicking a field i can choose for with field, row, column and measurement i want to sort. But even this solution could be more userfriendly.
Another more direct solution would be to sort by clicking on a measurement field or if there is only one, on a fieldname.
Both are just suggestions. But the functionality of sorting by values is really relevant.
I couldn't find any solution for this build-in in Kendo UI. Therefor this is a feature request/suggestion.
Hi
I have a kendo grid that can be changed user method and I have and option that automatically sets the values from a certain column if have a certain conditions.
My problem actually is when I do the automatic option, I need to launch the save event, because it validates certain data via server, and I need to access to my custom editor (is a combobox) and change his value and then launch the save event. The problem is if I change the combobox via code, the save event never launches. What I do is:
1. Click the "td" that contains the combobox
2. Change the combobox value
3. Click in another place to launch the save event
4. Nothing happens, that column on the grid is actually empty
Any ideas what can I do?
01.
buildForm(form) {
02.
const tableLayout =
new
kendo.Layout(
'<table class="table table-bordered" id="tbl"></table>'
,{wrap:
false
});
03.
04.
for
(
var
i=0;i<form.rows.length;i++) {
05.
const trLayout =
new
kendo.Layout(
'<tr id="tbl_row_'
+i+
'"></tr>'
,{wrap:
false
});
06.
for
(
var
j=0;j<form.rows[i].cols.length;j++) {
07.
const tdLayout =
new
kendo.Layout(
'<td><a href="#" data-bind="click: alertme">'
+form.rows[i].cols[j].label+
'</a></td>'
,
08.
{
09.
wrap:
false
,
10.
evalTemplate:
true
,
11.
model: {
12.
alertme:
function
() {
13.
console.log(
'alert!'
);
14.
}
15.
}
16.
});
17.
trLayout.append(
'#tbl_row_'
+i+, tdLayout);
18.
}
19.
tableLayout.append(
'#tbl'
,trLayout);
20.
}
21.
return
tableLayout;
22.
}
01.
const form = {
02.
rows: [{
03.
cols: [{
04.
label:
'Row 1 Col 1'
05.
}, {
06.
label:
'Row 1 Col 2'
07.
}]
08.
},{
09.
cols: [{
10.
label:
'Row 2 Col 1'
11.
}, {
12.
label:
'Row 2 Col 2'
13.
}]
14.
}]
15.
};
My team recently upgraded from 2016.2.504 to 2017.1.118 and we noticed the following issue with formatting 7 (and 10) digit negative numbers, where-in the first group separator is missed.
kendo.toString(-1234567, "\#,0;(\#,0); ") -> "(1234,567)"
2016.2.504 (This works):
http://dojo.telerik.com/IqujA/2
2016.2.607 Slightly newer version breaks it.
http://dojo.telerik.com/IqujA/3
Current version still broken:
http://dojo.telerik.com/IqujA/4
Our issue appears to have introduced with this commit: https://github.com/telerik/kendo-ui-core/commit/17b08eab51d0761e187c849f77fe0db8180e7357
Is this the intentional behavior going forward or a bug?
Hi
We are creating a pdf using the drawing api which creates a open / save / cancel dialog in the browser allowing the user to open the pdf in Acrobat and then print it. Some users (senior managers) are complaining that this multi stage process is too long (they are used to our windows client app that outputs directly to their local printer). Is there any way we can bypass the first dialog and automatically open the pdf in Acrobat are display the print dialog?
I have see this: http://www.telerik.com/support/kb/reporting/details/print-a-report-directly-at-client-side-without-displaying-it-in-a-viewer
but I don't really understand whether we can use any of it?
Any help or suggestions would be gratefully received.
Thanks
James