Telerik Forums
Kendo UI for jQuery Forum
1 answer
145 views
I get an error in kendo.all.min.js when I try to get locations from my server.
Using this code with version 2014.2.716:

@(Html.Kendo().Map()
    .Name("map")
    .Center(52.0364073866421, 5.08653521339329)
    .Zoom(17)
    .Layers(layers =>
    {
        layers.Add()
            .Type(MapLayerType.Tile)
            .UrlTemplateId("http://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png")
            .Subdomains("a", "b", "c")
            .Attribution("© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>");
 
        layers.Add()
            .Type(MapLayerType.Marker)
            .DataSource(dataSource => dataSource
                  .Read(read =>
                      read.Action("GetMapLocations", "Map")
 
                      )
            )
            .LocationField("LatLng")
            .TitleField("Name");
    })
)

I don't get any markers on the map, but just the error 'Uncaught TypeError: undefined is not a function ' in the kendo file.

The Data I get back from the GetMapLocations is:
{
    "Data": [
        {
            "Id": "193bfa30-ab5a-4752-9e9c-1d5187d49047",
            "Name": "1",
            "Position": {
                "Id": "4f0e020c-2e94-4761-93c7-eef076b348ce",
                "Latitude": 52.014538374454474,
                "Longitude": 5.114317642759112,
                "LatLng": [
                    52.014538374454474,
                    5.114317642759112
                ]
            },
            "LatLng": [
                52.014538374454474,
                5.114317642759112
            ]
        },
        {
            "Id": "8c85a22f-3c8e-4ccc-9470-f4b8af99db5c",
            "Name": "100",
            "Position": {
                "Id": "050d1479-74b3-45dc-8828-7dbecdd5c71b",
                "Latitude": 52.03355319309421,
                "Longitude": 5.084548511286869,
                "LatLng": [
                    52.03355319309421,
                    5.084548511286869
                ]
            },
            "LatLng": [
                52.03355319309421,
                5.084548511286869
            ]
        }
    ],
    "Total": 9360
}

Any idea what's wrong?





T. Tsonev
Telerik team
 answered on 24 Sep 2014
1 answer
121 views
Hi,

I would like to create dynamically( from a table with data) such diagramms/organigramms and I don't know, whether it is possible with the kendo ui:diagram element.
 
Please note that in this diagramm the shapes, have additional features like
  • the red and green dots in the lower right corner(similar with Visio DataShapes) --> see attached pic1, pic2 and pic3
  • the yellow diamond shape in the lower left corner -->  see attached  pic1, pic3
  • mouse over popup window which visualizes additional information -->  see attached  pic2, pic3
Pozdravi
Tihomir
T. Tsonev
Telerik team
 answered on 24 Sep 2014
2 answers
112 views
TLDR - see the issue at: http://dojo.telerik.com/ULemu

Explanation:
I am attempting to use the mobile listview within angularjs. This works fine for the basic case, but I am now attempting to add a detailbutton, as per demo (http://demos.telerik.com/kendo-ui/mobile-listview/detailbuttons) which I have attempted to translate to use angularjs directives.

However, this does not work. It seems that the listview does not like having more than one A element within an LI tag.

Any ideas what is going wrong here?

Many Thanks
Lewis
Lewis
Top achievements
Rank 1
 answered on 24 Sep 2014
1 answer
123 views
Is the toolbar widget only usable in conjunction with a grid? I would like to implement an iframe that has a toolbar above it, instead of just having floating buttons.
Alexander Valchev
Telerik team
 answered on 24 Sep 2014
3 answers
195 views
I've setup a scatterplot as in the documentation and I'm getting the above error when hovering in the chart area after having clicked one of the graph points.

Controller contains this:
​$scope.onSeriesHover = function (e) {
}

function getDataForGraph() {
    graphDataService.getData('issuer.sector', $scope.selectedSector).then(function (result) {
        $scope.data = result;
});
}
and the view this:
<div kendo-chart
k-series-defaults="{type: 'scatter'}"
k-series="[{xField:'duration', yField:'cost'}]"
k-x-axis="{
labels: { format: '{0}' },
title: { text: 'Duration' }
}"
k-y-axis="{
labels: { format: '{0}' },
title: { text: 'Cost }
}"
k-data-source="data"
k-series-click="onSeriesClick"
k-series-hover="onSeriesHover"></div>

After the controller is initialized the getDataForGraph method is called.
It displays data perfectly but I get this TypeError all the time after the first click on the graph.

I've attached a screenshot from the chrome dev tools if this could help. As I'm on the trial version I do not have access to the full code.
Iliana Dyankova
Telerik team
 answered on 24 Sep 2014
1 answer
210 views
Hi!
I want to use SplitButton from toolbar as a standalone component but there's no api reference for it...
The main reason is that i can't hide the "more" button from the toolbar. I don't need it because i only have a back button and the splitbutton...
Alexander Valchev
Telerik team
 answered on 24 Sep 2014
3 answers
122 views
I have a problem. I want to select a row in a table(grid) by pressing UP and DOWN button without pressing space bar.
Please help me..
Manikandan
Top achievements
Rank 1
 answered on 24 Sep 2014
3 answers
1.9K+ views
I'm trying to get custom validation working on a NumericTextBox. I've read the article on custom validation, but I can figure out to get the validator to validate the textbox.  This is a read only textbox that gets set by several other functions. I'm trying to check if it's greater than 0. 

@(Html.Kendo().NumericTextBox<decimal>().HtmlAttributes(new { style = "width: 80px"})
                 .Name("totalLTDandLife")
                 .Format("c2")
                 .Spinners(false)
               )
 
 
$(function () {
    $("form").kendoValidator({
        rules: {
            selectCoverage: function (input) {
                if (input.is("[name=totalLTDandLife]")) {
                    return input.val() > 0;
                }
                return true;
            }
        },
        messages: {             
            selectCoverage: "Please select either LTD coverage or Term Life coverage."
        }
    });
});


Daniel
Telerik team
 answered on 24 Sep 2014
3 answers
283 views
Hi,

In our application, we have a page with 1000+ items and this listview has also groups. We tried to implement virtual scroll for this listview but unfortunately it is not working when we activated the groups.

In the latest release of kendo listview, i couldn't find the virtual scroll property. it is not supported in the latest version?
Also i want to ask, is there way to initialize the listview without initializing mobile application because we only use mobile listview of kendo.

You could check it from below,
http://dojo.telerik.com/oGUMU

Thanks in advance.
Kiril Nikolov
Telerik team
 answered on 24 Sep 2014
3 answers
176 views
Hello there,

I'm using version 2014.1.318

I've got a web application where the content and widgets are loaded dynamically via ajax, so I need to be able to tidy the DOM as I go along.

I'm using Actionsheet as a menu for the KendoGrid table rows. When I unload my page, I call destroy methods on both KendoGrid and Actionsheet. However, if I destroy the Actionsheet, and init it again, the number of "Cancel" list items grows each time. Please see attachment.

I've been trying to replicate this error on your Dojo, however after destroying both the Grid and the Actionsheet, the grid doesn't initialise again...
http://dojo.telerik.com/OPAx

I did see that the destroy() method for Acitonsheet doesn't touch DOM - but shouldn't it at least remove the DOM elements that were created as part of initialisation? Otherwise, there'll be endlessly growing DOM!

Your advice appreciated, many thanks.
Petyo
Telerik team
 answered on 24 Sep 2014
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Drag and Drop
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?