Telerik Forums
Kendo UI for jQuery Forum
1 answer
112 views
I need help on the Add / Edit buttons in toolbar of grid which is bound using local data. Once we add or edit next time when I hit cancel grid is bound with duplicate records except for newly added or updated data. I am sharing the code here http://jsfiddle.net/cE3uM/11/ Its not functioning in fiddle, but in my project its working fine except for this bug. Could please help me find a solution?

Thanks
Vladimir Iliev
Telerik team
 answered on 17 Apr 2013
6 answers
980 views
Hello Kendo,

With your latest 2013Q1 release, we just encountered an error every time when trying to add a new row on ui.Grid, which a templated column was involved. A simple code sample shows as below:

    <script>
        $(function() {
            $('#grid').kendoGrid({
                dataSource: {
                    data: [
                        { a: "dafdsf" }
                    ]
                },
                columns: [
                    {
                        field: "a",
                        width: 120,
                        template: 'template: #= a #'
                    }
                ]
            });

            $('#add').click(function() {
                $('#grid').data('kendoGrid').addRow();
            });
        });
    </script>
</head>
<body>
    <div id="grid"></div>
    <button id="add">add</button>
</body>

When the add button was clicked, an error "Uncaught ReferenceError: a is not defined " went out.

Can you please take a look at this, as this is so much urgent for us. Or could you suggest any other work around?

Thanks,
Wenhao
Wenhao
Top achievements
Rank 1
 answered on 17 Apr 2013
1 answer
99 views
How do you make an area chart whose first x-axis data point is not aligned with the y-axis start the "area" from the y-axis (origin)?

In my specific example, January is our first x-axis data point, and since the January data point is not aligned with the y-axis, there is a space of "emptiness" that looks funny on the chart.  I would like the area chart to begin at the intersection of the x-axis and y-axis so that gap is filled (the January data point does not need to move, the area chart just needs to start at the origin and move to the first data point, which will be January).  The reason the area chart does not begin at the y-axis is because the exhibit includes both an area chart and line chart.

I've added a photo to help describe the problem.

Thanks in advance for the help.

 
Iliana Dyankova
Telerik team
 answered on 17 Apr 2013
1 answer
117 views
Hi,

I'm having an issue whereas if my data is in negatives, the categoryAxis still stays base at zero. Ideally, I would like it not to be zero-based. Coming from a Flex background, a simple solution would be "baseAtZero = false". Is there a property similar or perhaps another way that can fix the positioning of my categoryaxis?

Thanks,
Tonih
Iliana Dyankova
Telerik team
 answered on 17 Apr 2013
3 answers
274 views
We are using Kendo async upload across PC and Mobile platforms, and are encountering issues when trying to upload documents over the mobile-data (3G) network.  Pictures from the iPad (around 250KB) are only successfully uploaded about 25% of the time.  This issue is only occurring on the iPad, in the Safari browser, and when we are not using WiFi.  When using Google Chrome on the device, or when using WiFi, we are able to successfully upload documents without any issues.

This appears to be a network problem, since smaller files (14KB) can be consistently uploaded, while larger files cannot.

When checking the Status and StatusText returned in the onError method, the Status is 0 and the StatusText is empty.  We are able to successfully upload the same documents when attempted on the Kendo upload demo site.

Has anyone encountered similar problems, or have any ideas on what could be causing the inconsistency?
T. Tsonev
Telerik team
 answered on 17 Apr 2013
1 answer
94 views
Hello,

We need advice for 2 changes at kendoStockChart, see attachment:
- we don't know how to change the number of displayed (visible) labels. For example we have chart with date values from 2005 to 2012 and we want to show only 2004, 2009 and 2012 values. Not all years. Is it possible?

- we don't know how to change formatting of displayed labels. We have same chart as above with years formatted as 2005 and would like to change to '05 format. 

Any advice please?

Thank you
Iliana Dyankova
Telerik team
 answered on 17 Apr 2013
2 answers
227 views
Hi Everyone,

I have following very simple code that works as expected.

        $(document).ready(function () {
 
            var ds = null;
 
            ds = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "data.json", dataType: "json"
                    }
                },
                change: function () {
                    var data = this.data(); // or this.view();
                }
 
            });
 
 
            $("#grid").kendoGrid({
 
                dataSource: ds,
 
//                      dataSource: {
//                          data: ds,
//                          pageSize: 2
//                      },
 
                sortable: {
                    mode: "single",
                    allowUnsort: false
                },
 
                columns: [
                    {
                        field: "Product",
                        title: "Product Title"
                    },
                    {
                        field: "Manufacturer",
                        title: "Manufacturer Title"
                    },
                    {
                        field: "Description",
                        title: "Description Title"
                    },
                    {
                        field: "Property2",
                        title: "Property 2"
                    }
                ]
            });
 
 
        });
Why do I not need to call ds.read() in this scenario?

And 

If i replace the dataSource: ds with the commented block dataSource: {data: ds } no data is displayed at all. Any idea why?

Thanks for the help.
Umer
Top achievements
Rank 1
 answered on 17 Apr 2013
5 answers
101 views
Hi guys,
         Im currently having a project using a splitview..but Im having a difficult problem with the splitview. Because I want the split view hide first and call it in a button..Im paste the codes of splitview in a Page or View container but Its doesnt work. Can you help me guys.Thanks
Alexander Valchev
Telerik team
 answered on 17 Apr 2013
1 answer
170 views
How do I put an external  template into a grid column declaratively?

Here is what I am trying:
<script id="template" type='text/x-kendo-template'>
    #=Amount#
</script>
 
<div id="calledAndDefeasedDebt"
     data-role="grid"
     data-scrollable="false"
     data-bind="source: calledAndDefeasedDebt"
     data-columns="['Description', {'field':'Amount', 'title':'AMT', 'template':'kendo.template($(\'template\').html())'}]">
</div>
Nikolay Rusev
Telerik team
 answered on 17 Apr 2013
1 answer
81 views
I have
kendoGrid({
        dataSource : {
            transport : {
                read : "http://testsite/rest/receipts/_list_last/10.xml",
                create : {
                    url : "http://testsite/rest/receipts.xml",
                    dataType : "xml",
                    type : "POST",
                    contentType : "text/xml",
                    processData : false,
                    batch : false
                },
                parameterMap : function(data, type) {
                    if (type === "create") {
                        var postxml = '<reciept><id></id><tenant>';
                        postxml += data.tenant;
                        postxml += '</tenant>';
                        return postxml;
                    }
                }
            }

When I hit "add new record", every record in the grid including the new one is sent to the server.
Is there a way to prevent this and only allow the newly added record to get POST'ed to the server?
Kind Regards
Andrew
Daniel
Telerik team
 answered on 17 Apr 2013
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
Map
Drag and Drop
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?