Telerik Forums
Kendo UI for jQuery Forum
3 answers
231 views
I wasn't able to find a chart title option for a gauge as with the other charts. If this isn't an option are there any recommendations on how to match and overlay the existing style of a chart title onto a gauge?
Iliana Dyankova
Telerik team
 answered on 22 Jul 2013
4 answers
105 views
I have several sparklines in my HTML and they're being populated by a web service. It seems that they don't always fill out; I refresh and a few fill out, I refresh again and others fill out. The only way I've been able to fill them all out is by displaying an 'ALERT' for every function called. It seems it's a problem with a refresh.

Is it possible that I'm calling the web service too many times and it has become erratic?
Here's the code:
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link href="styles/kendo.common.min.css" rel="stylesheet" />
    <link href="styles/kendo.rtl.min.css" rel="stylesheet" />
    <link href="styles/kendo.default.min.css" rel="stylesheet" />
    <link href="styles/kendo.dataviz.min.css" rel="stylesheet" />
    <link href="styles/kendo.dataviz.default.min.css" rel="stylesheet" />
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
    </head>
<body>
    <div>
            <table class="history" >
                <tr>
                    <td class="style7">Department C 1</td>
                    <td class="spark" style="width: 210px;"><span id="hum-log"></span></td>
                    <td class="style6">Department  C 1</td>
                    <td class="spark" style="width: 210px;"><span id="press-log" style="line-height: 60px"></span></td>
                </tr>
                <tr>
                    <td class="style7">Department C 2</td>
                    <td class="spark" style="width: 210px;"><span id="2c-log" style="line-height: 60px"></span></td>
                    <td class="style6">Department C 2</td>
                    <td class="spark" style="width: 210px;"><span id="temp-log" style="line-height: 60px"></span></td>
                </tr>
                <tr>
                    <td class="style7">Department C 3</td>
                    <td class="spark" style="width: 210px;"><span id="3c-log" style="line-height: 60px"></span></td>
                </tr>
                <tr>
                    <td class="style7">Department C 4</td>
                    <td class="spark" style="width: 210px;"><span id="4c-log" style="line-height: 60px"></span></td>
                </tr>
                <tr>
                    <td class="style7">Department C 5</td>
                    <td class="spark" style="width: 210px;"><span id="5c-log" style="line-height: 60px"></span></td>
                </tr>
            </table>
    </div>
    <script>
        function createSparklinesDepartment1C() {
            // Binding directly to an array
            alert('Entered');
            var rowDataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "http://localhost:3118/Service1.svc/GetDataTypes?Technology=Department&carrier=1",
                        type: 'GET',
                        jsonpCallback: 'callback',
                        dataType: "jsonp"
                    }
                }
            });
            $("#press-log").kendoSparkline({
                    dataSource: rowDataSource,
                    series: [{
                        type: "area",
                        field: "count",
                        color: "Green"
                    }]
                });
                //second one
                // Third one
            // Binding directly to an array
        }          
        $(document).ready(createSparklinesDepartment1C);
        $("#example").bind("kendo:skinChange", createSparklinesDepartment1C);
    </script>
  
 <script>
        function createSparklinesDepartment2C() {
            alert('Entered 2c');
            var rowDataSource2 = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "http://localhost:3118/Service1.svc/GetDataTypes?Technology=Department&carrier=2",
                        type: 'GET',
                        jsonpCallback: 'callback',
                        dataType: "jsonp"
                    }
                }
            });
            $("#temp-log").kendoSparkline({
                    dataSource: rowDataSource2,
                    series: [{
                        type: "area",
                        field: "count",
                        color: "Red"
                    }]
                });
        }
        $(document).ready(createSparklinesDepartment2C);
        $("#example").bind("kendo:skinChange", createSparklinesDepartment2C);      
 
    </script>
 
 <script>
        function createSparklinesDepartment1C() {
            alert('Entered 3c');
                var rowDataSource3 = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "http://localhost:3118/Service1.svc/GetDataTypes?Technology=Department&carrier=1",
                            type: 'GET',
                            jsonpCallback: 'callback',
                            dataType: "jsonp"
                        }
                    }
                });
            $("#hum-log").kendoSparkline({
                    dataSource: rowDataSource3,
                    series: [{
                        type: "area",
                        field: "count",
                        color: "Black"
                    }]
                });                    
        }
        $(document).ready(createSparklinesDepartment1C);
        $("#example").bind("kendo:skinChange", createSparklinesDepartment1C);      
 
    </script>
<!-- The new ones -->
 <script>
        function createSparklinesDepartment2C() {
            alert('Entered 3c');
                var rowDataSource3 = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "http://localhost:3118/Service1.svc/GetDataTypes?Technology=Department&carrier=2",
                            type: 'GET',
                            jsonpCallback: 'callback',
                            dataType: "jsonp"
                        }
                    }
                });
            $("#2c-log").kendoSparkline({
                    dataSource: rowDataSource3,
                    series: [{
                        type: "area",
                        field: "count",
                        color: "Blue"
                    }]
                });                    
        }
        $(document).ready(createSparklinesDepartment2C);
        $("#example").bind("kendo:skinChange", createSparklinesDepartment2C);      
 
    </script>
 <script>
        function createSparklinesDepartment3C() {
            alert('Entered 3c');
                var rowDataSource3 = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "http://localhost:3118/Service1.svc/GetDataTypes?Technology=Department&carrier=3",
                            type: 'GET',
                            jsonpCallback: 'callback',
                            dataType: "jsonp"
                        }
                    }
                });
            $("#3c-log").kendoSparkline({
                    dataSource: rowDataSource3,
                    series: [{
                        type: "area",
                        field: "count",
                        color: "Purple"
                    }]
                });                    
        }
        $(document).ready(createSparklinesDepartment3C);
        $("#example").bind("kendo:skinChange", createSparklinesDepartment3C);      
 
    </script>
 <script>
        function createSparklinesDepartment4C() {
            alert('Entered 3c');
                var rowDataSource3 = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "http://localhost:3118/Service1.svc/GetDataTypes?Technology=Department&carrier=4",
                            type: 'GET',
                            jsonpCallback: 'callback',
                            dataType: "jsonp"
                        }
                    }
                });
            $("#4c-log").kendoSparkline({
                    dataSource: rowDataSource3,
                    series: [{
                        type: "area",
                        field: "count",
                        color: "Orange"
                    }]
                });                    
        }
        $(document).ready(createSparklinesDepartment4C);
        $("#example").bind("kendo:skinChange", createSparklinesDepartment4C);      
 
    </script>  
 <script>
        function createSparklinesDepartment5C() {
            alert('Entered 3c');
                var rowDataSource3 = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: "http://localhost:3118/Service1.svc/GetDataTypes?Technology=Department&carrier=5",
                            type: 'GET',
                            jsonpCallback: 'callback',
                            dataType: "jsonp"
                        }
                    }
                });
            $("#5c-log").kendoSparkline({
                    dataSource: rowDataSource3,
                    series: [{
                        type: "area",
                        field: "count",
                        color: "Magenta"
                    }]
                });                    
        }
        $(document).ready(createSparklinesDepartment5C);
        $("#example").bind("kendo:skinChange", createSparklinesDepartment5C);      
 
    </script>  
    <style scoped>
        .chart-wrapper {
            width: 200px;
            height: 100%;
            margin: 0 auto 30px auto;
            padding: 0 0 30px 0;
            font-weight: bold;
            text-transform: uppercase;
        }
        .climate, .temperature, .conditioner {
            margin: 0 30px;
            padding: 30px 0 0 0;
        }
        h1 {
            margin-bottom: 20px;
            font-size: 1.2em;
        }
        .history {
            border-collapse: collapse;
            width: 480px;
            height: 248px;
        }
        .history td {
            padding: 0;
        }
        .history td.item {
            text-align: right;
            line-height: normal;
            vertical-align: bottom;
        }
        .history td.spark {
            text-align: left;
            line-height: 50px;
            padding: 0 5px;
        }
        .history td.value {
            font-size: 2em;
            font-weight: normal;
            line-height: normal;
            vertical-align: bottom;
        }
        .history td.value span {
            font-size: .5em;
            vertical-align: top;
        }
        .stats {
            text-align: center;
        }
        #temp-range {
            width: 400px;
            line-height: 50px;
        }
        .style6
        {
            width: 59px;
            font-family: Calibri;
        }
        .style7
        {
            width: 100px;
            font-family: Calibri;
        }
    </style>
 
 
</body>
</html>
Vaughn Myers
Top achievements
Rank 1
 answered on 22 Jul 2013
1 answer
240 views
I have a simple grid that contains a column designated to allowing the user to browse to a directory using the default file chooser. This column is instantiated by the following command, and appears properly when the page is rendered:

(note: this grid has been isolated down to just the problem column. testData is just an array of a few rows of example data.)
$("#grid").kendoGrid({
    dataSource: {
        data: testData,
        pageSize: 10
    },
    groupable: false,
    sortable: false,
    pageable: {
        refresh: true,
        pageSizes: true
    },
    columns:
    [
 
       {
           field: "FileName",
           title: "File Name",
           template: "<input id='f', type='file' />"
       }
    ]
});
As shown in the code, the input type of is "file," which defaults to a textbox/browse button that opens a file picker window. I decided to use this instead of writing one on my own. The menu button that generates a new row is created with this code:
<div id="menuTest">
    <ul id="menu">
        <li onclick="javascript:$('#grid').data('kendoGrid').addRow()"><img src="Images/help_videos_16x16.png"/>New</li>
    </ul>
</div>

 When the button is clicked, a new row is successfully generated. All of the columns show up properly, but the FileName column shows up with a large white textbox instead of the gray box/browse button that is shown on the initial render. It also will not allow me to spam the new button, because in order for another new row to be generated, some sort of data has to be entered into the blank textbox (it can be a string, int, char, whatever). This data then disappears, and it defaults to the gray textbox/browse button after the new button is hit again. 

Attached is a series of screenshots of me stepping through the UI. The screenshots show:
1) The column on the initial render
2) The column after "new" is hit once (showing the large blank textbox)
3) The column after hitting "new" again (without entering anything into the textbox)
4) The column after entering a string into the white textbox and then hitting "new" again. Note that this brings us back to image 1, only with a new viable row added.

Is there a way to alter my code to prevent the white text box from appearing? Perhaps I need to assign some sort of default value, or should I scrap this approach?
Vladimir Iliev
Telerik team
 answered on 22 Jul 2013
5 answers
215 views
I have chart that all values are integers. It display labels well when value is quite big. e.g. it display 2,4,6,8,10. So it calculates vaues nicely. But with small values on report e.g. 1, 2, chart display also values like 0.5, 1.5, 2.5
I would like to ask how to set chart to set minimal possible gap would be e.g 1.
Iliana Dyankova
Telerik team
 answered on 22 Jul 2013
1 answer
130 views
I need to show confidence intervals on a chart that is showing some forecasts (80% and 95% intervals). Something like what can be done with the Percentiles plugin for Flotcharts (http://www.flotcharts.org/flot/examples/percentiles/index.html).

Is there any way to do this using DataViz (aside from drawing 5 separate line series)?

Cheers,
James
Iliana Dyankova
Telerik team
 answered on 22 Jul 2013
1 answer
266 views
The Kendo Mobile Q2  2013.2.716 release includes drastic changes to the km-loader for iOS. There is no longer the translucent, black rounded-corner box with a white spinner KendoUI font. Now the entire screen is slightly dimmed with a gray progress indicator and is not very visible when an app uses dark styles. The markup has also changed from previous versions.
<div class="km-loader" data-role="loader" style="display: none;">
  <span class="km-loading km-spin"></span>
  <span class="km-loading-left"></span>
  <span class="km-loading-right"></span>
  <h1>Loading...</h1>
</div>
Here are my style overrides for the new classes to display a white spinner and text. Is there a setting to do this otherwise or better yet use the previous loader styles in the new release?
.km-ios .km-loading { background-color:#FFF }
.km-ios .km-loader .km-loading-left { background-color:rgba(255,255,255,0.55) }
.km-ios .km-loader .km-loading-right { background-color:rgba(255,255,255,0.2) }
.km-ios .km-loader h1 { color:#FFF; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8); }
Kamen Bundev
Telerik team
 answered on 22 Jul 2013
1 answer
39 views
Go to the demo site http://demos.kendoui.com/web/grid/index.html, drag two columns for grouping and collapse all items.
The second group shifts to the right in IE9. Have to put it in compatibility mode for it to work.
Please provide a workaround or a fix for this.
Thank you.
Petur Subev
Telerik team
 answered on 22 Jul 2013
2 answers
273 views
So for those of us like me who might want to just try this thing out as a FullCalendar.js replacement (just viewing a month of events at a time, no edit feature, purely just displaying information

Umm seems that the scheduler doesnt actually let you turn editable off.

I didnt set any update/remove transport paths, etc. but I would assume that by turning editable off the user would lose the ability:

 to delete the item
drag items around the calendar
open the edit window (maybe theres a secondary window that just lets you view the information)

my assumption of course is, if we have the ability (at least in writing) to turn off the editability of the controller, that it should show that and not let people try and delete items?
James Hood
Top achievements
Rank 1
 answered on 22 Jul 2013
1 answer
260 views
I currently have a grid that is bound via an Ajax call. The model is a List<Objects> for the view. I have a button that on click I would like to pass the selected data grid object to a different controller/action. 

I have tried to do a Ajax Post however the response is HTML but it does not get rendered to the browser.

Is there an easier way to do this? 

Thanks,
Nav
Petur Subev
Telerik team
 answered on 22 Jul 2013
3 answers
363 views
We're using KendoUI v2013.1.514 and Twitter Bootstrap, and this issue seems to be noticeable in Chrome 27 (couldn't duplicate behavior in IE10). The behavior is also noticeable on your demo page at http://demos.kendoui.com/web/numerictextbox/index.html .

I have a NumericTextBox in a Kendo Window. Everything works great, except I noticed that it was difficult to click on the down arrow of the NumericTextBox. I started clicking to find where the boundary was, and as you can see from my image attachment, the pointer was many pixels above the down arrow but was still registering the click on the down arrow. What is causing the down arrow to take up so much more clickable area than the up arrow? Do I need to fix something, or is this a Kendo issue?
Dimo
Telerik team
 answered on 22 Jul 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?