According to the example http://demos.telerik.com/kendo-ui/grid/editing-custom I implemented a dropdown editor in a Grid popup editor with Kendo Grid version 2014.3.1411.
Now, with version 2015.2.624 it does not set the dropdown list to the value the item already has. Wasted 2 hours to find out :-((
Does anyone have an idea why and for what reason we have this degradation of code with the new version? Thanks in advance!
Martin
Here is the code that works in the old version:
function mt_measurandDropDownEditor(container, options) { $('<input id=\"dde_mt_measurand\" name=\"MT_MEASURAND\" data-text-field=\"TY_LONGNAME\" data-value-field=\"TY_ID\" data-bind=\"value:' + options.field + '\" />') .appendTo(container) .kendoDropDownList({dataTextField: \"TY_LONGNAME\", dataValueField: \"TY_ID\", name: 'MT_MEASURAND', autoBind: false, optionLabel: '--- bitte wählen ---', dataSource: { type: \"odata\", transport: { read: { url: function (data) { return odataServiceName + 'Codes'; }, dataType: 'json' }, parameterMap: function (data, action) { if (action === 'read') { var domainFilter = \"TY_DOMAIN eq guid'1e68ffd6-aaaa-4558-94e1-23df53e5a6c6'\"; var d = kendo.data.transports.odata.parameterMap(data); if (d.$filter) { d.$filter = domainFilter + \" and \" + d.$filter ; } else { d.$filter = domainFilter; } return d; } else { return data; } } }, schema: { data: function(data) { return data; }, total: function(data) { return data.length; }, model: { id: \"TY_ID\", fields: { TY_ID: { type: 'string' }, TY_NAME: { type: 'string' }, TY_LONGNAME: { type: 'string' } } } }, change: function(data) { kendo.bind($('#dde_mt_measurand'), data.items); $('#dde_mt_measurand').attr('dataloaded', 'true'); } } })};
I'm working on adding collision detection so there can only be one event per time slot... getOccurrencesInRange(start, end) doesn't seem to account for all day events that fall within the given range.
Is this a known/unknown issue, or a design decision?
Hi,
I'm have a remote view which I'll name here "multiplelocalviews.html" with multiple local views...example below:
<div data-role="view" id="LocalView1" data-layout="default" data-reload="false">
Local View 1
</div>
<div data-role="view" id="LocalView2" data-layout="default" data-reload="false">
Local View 2
</div>
<div data-role="view" id="LocalView3" data-layout="default" data-reload="false">
Local View 3
</div>
When I try and navgiate to a particular local view in this remote view from a different page the app seems to navigate to the correct view then change to Local View 1.
I've tried to navigate using both the following methods:
<a href="multiplelocalviews.html#LocalView1" data-role="button" data-ajax="false" style="width: 100%">Local View 1</a>
<a href="multiplelocalviews.html#LocalView2" data-role="button" data-ajax="false" style="width: 100%">Local View 2</a>
<a data-click="localViewThree" data-role="button" data-ajax="false" style="width: 100%">Local View 3</a>
function localViewThree() {
app.navigate("multiplelocalviews.html#LocalView3");
}
But neither seems to work.
Any advice?
Thanks
I have a site where I am mixing mobile and desktop widgets, in some cases I show a mobile widget if viewed on a mobile device. I am trying to use the mobileListView with the below code.
01.<script id="tmp" type="text/x-kendo-template">02. 03. <p>#: name # <span>Age: #: age #</span></p>04.</script>05.<script>06. 07. var dataSource = new kendo.data.DataSource({08. data: [09. { name: "Jane Doe", age: 30 },10. { name: "John Doe", age: 33 }11. ]12. });13. 14. $("#lv-detail").kendoMobileListView({15. dataSource: dataSource,16. pullToRefresh: true,17. template: kendo.template($("#tmp").html())18. });19.</script>I get an error stating Cannot read property 'setOptions' of undefined. I have followed the instructions here on using mobile widgets with desktop:
http://docs.telerik.com/kendo-ui/mobile/regular-usage
I have version v2015.2.624 of the components.
You can see the issue here:
http://dojo.telerik.com/oQAtO
If you remove the pullToRefresh attribute the list view renders
I have a grid with the data and when i scroll in the middle of the grid and filter one of the column(for existing data), the position of the bottom scroll bar doesn't change and it shows the filtered data. However if i filter the column with the data that doesn't exist in the column, the position of the bottom scroll bar moves to starting position on left. Is there any way to keep the position of scroll bar at the same position where the filter was made?
Thanks
Sanjeev
I faced a problem about dirty indicator(the red triangle on the top left of a cell).
You could reproduce it by the following step by using the attached sample.
1.Focus a cell in "Product Name" column, and change the value.
2.Click the space area out of the grid.
You may notice that the dirty indicator on "Product Name" and "Unit Price" cell twinkled and disappeared soon. This is not expected.Because I have changed the values of them.
But with the next scenario, dirty indicator will be displayed with a expected behavior.
1.Focus a cell in "Product Name" column, and change the value.
2.Click other cell in the grid.
You may find that the the dirty indicator will be displayed in the top left of the edited cell and a cell in "Unit Price".
In my sample, I created a handler to process the changed event for "Product Name".
And in the handler, a ajax request is posted. In the success method for the request, I change the value of "Unit Price" property of the same entity.
I think this is a familiar scenario, and will be used in my application.
I want to know if there is any way to keep displaying Dirty Indicator when I changed some value and click out of the grid.
Hey all,
I know this is probably super simple, but I have not been able to find how to enable/disable tabs from within the angular controller (not jquery) for a tabstrip in angular.
Can someone point me to a sample on how to do this?
Thanks
Hi,
We are working with the Context Menu. The problem we are dealin with is an unwanted 'flash' of content because of a delay between the menu's click event and its deactivate event.
A simplified example can be found here: http://dojo.telerik.com/IpOXI/3
Basically, the deactivate event is not fired until the animation of the menu is complete. We would prefer if there was not such a delay between the events.
What are the best ways of handling this problem?