Hello
I'm trying to display google maps into a KendoUI Mobile view. The map doesn't appear and there is also no error in the console. Do I have to consider something special?
My working code so far:
<!DOCTYPE html>
<html>
<head>
<title>My App</title>
<link href=
"https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.common.min.css"
rel=
"stylesheet"
/>
<link href=
"https://kendo.cdn.telerik.com/2018.2.516/styles/kendo.mobile.all.min.css"
rel=
"stylesheet"
/>
<script src=
"https://kendo.cdn.telerik.com/2018.2.516/js/jquery.min.js"
></script>
<script src=
"https://kendo.cdn.telerik.com/2018.2.516/js/kendo.all.min.js"
></script>
<script src=
"https://maps.googleapis.com/maps/api/js?key=YourAppKey"
></script>
</head>
<script>
function
initMap() {
var
location = {lat: -25.363, lng: 131.044};
var
map =
new
google.maps.Map(document.getElementById(
'showmap'
), {
zoom: 4,
center: location
});
}
$(document).ready(
function
() {
app =
new
kendo.mobile.Application($(document.body), {
skin:
'flat'
,
transition:
'slide'
,
initial:
"mapview"
,
init:
function
() {
initMap();
}
});
});
</script>
<body>
<!-- View map -->
<div id=
"mapview"
data-role=
"view"
data-layout=
"default"
>
<div>Some text</div>
<div id=
"showmap"
></div> // <-- Should display google maps
</div>
</body>
</html>
(Replace "YourAppKey" with your app key of google maps)
My project heavily depends on google maps. So I hope there is a solution to display google maps (in a view).
Regards
We've giving our users a list of items to pick from when reviewing previously submitted data. The statuses they can pick from are Pending, Approved and Rejected.
We're seeing very weird behavior when someone activates the pick list in the A column and displays the options but does not choose a value. They then visit another page on the site. Then when they return to the spreadsheet to select a value again, the button to open the pick list appears when the cell is selected, but when clicked, the button does not display the list of options. Actually, nothing happens when you click the dropdown button. The only way to remedy this issue is to logout of the application, log back in and then visit the table again.
We are not setting any login/account related criteria on the button, just providing the 3 options to choose from. I've tried replicating this using a DOJO on your site and wasn't able to get the same results.
Here is the JSON we're using to populate the spreadsheet. Is there something wrong with my configuration or do you think there might be a bug in your code?
spreadsheet.fromJSON({"sheets":[{"frozenRows":1,"name":"Lot Tracking","rows":[{"cells":[{"value":"Status"}]},{"cells":[{"value":"Rejected","color":"#D0021b","bold":true,"validation":{"allowNulls":false,"dataType":"list","comparerType":"list","from":"{ \"Pending\", \"Approve\", \"Reject\" }","showButton":true,"type":"reject"},"enable":true}]},{"cells":[{"value":"Rejected","color":"#D0021b","bold":true,"validation":{"allowNulls":false,"dataType":"list","comparerType":"list","from":"{ \"Pending\", \"Approve\", \"Reject\" }","showButton":true,"type":"reject"},"enable":true}]}]}]});
Thanks in advance for your help.
Greg
So I have provided a dojo of the problem in action. Not sure what is going wrong or how to fix it. http://dojo.telerik.com/aFiKaJEK
I have cut out the rest of the controls and limited it to a sortable list with some items.
What should happen:
When moving the items up/down the list it should reorder the datasource "Columns" so that the order reflects what is on the screen (as this will be saved back at some point)
When reordering the items the vm list is the correct size and in the correct order but the templating is adding a "phantom/duplicate" item on the screen. Is this by design or am I doing something wrong.
If you press the x to remove items from the datasource this again is updating correctly but as soon as there is an interaction with moving items around the collection it will add these duplicate items to the screen.
Any advice on how I can resolve this?
Hi,
I am trying to load 50k records on my Kendo UI grid in MVC application, but getting performance issues and sometimes error as well. I also need to provide drag and drop grouping feature with the total of few columns, according to grouping selected.
I also need the multi-select filter with all above functionality, need it to work like a magic too, without taking a lot of time
Your help is much appreciated.
Thanks
is it possible hide unselected items in filter popup dialogue of each column of spreadsheet control?
Basically, we need this works like Excel.
Please check link out to see what I need:
https://www.screencast.com/t/doeRvn0ayl8a
function
getData(data) {
var
person = data.Person;
return
$.ajax({
url : url + person,
type:
'GET'
,
headers: {
"Accept"
:
"application/json; odata=verbose"
},
});
}
function
handleData(data) {
var
ptoArray = [];
$.each(data.d.results,
function
(index, item) {
if
(item.PTOValue !=
null
) {
var
_item = item.PTOValue;
ptoArray.push(_item);
}
});
var
ptoRecorded = 0;
for
(
var
i = 0; i < ptoArray.length; i++) {
ptoRecorded += ptoArray[i] << 0;
return
ptoRecorded;
}
}
I'm trying to update my node_modules with the latest default theme .scss files but the most recent build on npmjs hasn't been updated to include styles for dropdowntree, chat, etc.
npm install @progress/kendo-theme-default
I know the kendo theme github moved to a monolith-repo. Is there an updated NPM package?