Telerik Forums
Kendo UI for jQuery Forum
1 answer
691 views
Hi,

We are trying to bind the JSON data to grid using "Read" transport datasource. but somehow the grid does not show any record. The JSON data is valid and returned by ASP.NET Web API. If the JSON data is copied to ".JSON" file and provided to datasource, it works.

One of the strange part noticed, when the result is binding internally (guess), the grid throws an error. The error is "ParserError". Below is the code snippet. Please let me know any work around.

If the dataSource type is changed to "JSON", the error message is "No Transport".

<!DOCTYPE html>
<head>
    <title>Test Page</title>
    <script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="Scripts/kendo.all.min.js" type="text/javascript"></script>
    <link href="styles/kendo.common.min.css" rel="stylesheet" />
    <link href="styles/kendo.default.min.css" rel="stylesheet" />
    <script src="js/json2.js"></script>
</head>
<body>
    <div id="example" class="k-content">
            <div id="grid"></div>
            <input id="btnView" type="button" value="view" onclick="JavaScript: rebind();" />
            <script>
                function rebind() {
                    var gridDS = $("#grid").data("kendoGrid").dataSource;
                    gridDS.read();
                }
 
                $(document).ready(function () {
                    $("#grid").kendoGrid({
                        dataSource: {
                            type: "odata",
                            transport: {
                                read:"http://XYZ/JSON/Data",
                                    contentType: "application/json; charset=utf-8",
                                    type: "GET", 
                                    dataType: "json"
                            },
                            success: function (e) {
                                alert("Error: " + e.error);
                            },
                            schema: {
                                data: "Result"
                            },
                            error: function (e) {
                                debugger;
                                alert("Error: " + e.errorThrown);
                            },
                            change: function (e) {
                                alert("Change");
                            },
                            requestStart: function (e) {
                                //alert("Request Start");
                            },
                            pageSize: 10,
                            serverPaging: true,
                            serverFiltering: true,
                            serverSorting: true
                        },
                        height: 250,
                        filterable: true,
                        sortable: true,
                        pageable: true
                    });
                });
            </script>
        </div>
</body>
</html>



Regards,
Maulik
Gerald
Top achievements
Rank 2
 answered on 26 Sep 2012
1 answer
1.9K+ views
I cannot seem to find the CSS for the background color of the selected item in the Kendo ComboBox. Could anyone suggest how I could customize it? I'm attempting to change the Metro pallet and this is the only item that still shows green. Thanks!
Robert Kaucher
Top achievements
Rank 2
 answered on 26 Sep 2012
0 answers
54 views
I am using mysql.

After
grid refresh
:

A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

Line Number: 346

server log:
Query error: Unknown column 'down.gif' in 'where clause'
Leonardo
Top achievements
Rank 1
 asked on 26 Sep 2012
0 answers
46 views

Hello guys,

I think I’ve found a bug in kendo’s donut chart in IE 7.
The problem occurs when the chart has a category whose value is less than 1 (e.g. 0.1). In that case the category appears in the middle of the donut chart.

Repro:
http://jsfiddle.net/ebD8M/2/

Do you know of any workaround?

Best regards,
ilo

Bela
Top achievements
Rank 1
 asked on 26 Sep 2012
0 answers
487 views
Why would I get this on one of my grids with the same syntax, but another works fine.

Compiler Error Message:
CS1061: 'Kendo.Mvc.UI.Fluent.CrudOperationBuilder' does not contain a definition for 'Update' and no extension method 'Update' accepting a first argument of type 'Kendo.Mvc.UI.Fluent.CrudOperationBuilder' could be found (are you missing a using directive or an assembly reference?)



Both grids specify:

.DataSource(dataSource => dataSource
                    .Ajax()


Marc
Top achievements
Rank 1
 asked on 26 Sep 2012
1 answer
104 views
Hi guys,

I'm using the colorField property to define different colors for each bar in my bar chart.
Is there any way to use the same custom colors as the series labels' text color.

e.g.
bar is red    ==> the label next to it is red
bar is blue  ==>  the label next to it is blue

Kind regards,
ilo
Bela
Top achievements
Rank 1
 answered on 26 Sep 2012
4 answers
363 views
Hello guys,

I have a problem with series border color when series color is defined as RGBA color.
In general border color is matching with series color. However if you use RGBA colors the border will be black no matter what color you used.

Repro:
http://jsfiddle.net/3v24W/1/

Any opinion?

Cheers,
ilo
Bela
Top achievements
Rank 1
 answered on 26 Sep 2012
1 answer
118 views
hi,
I am using kendoui editor.I want to make the data in the editor as readable only.can u tell me how to make the data in the editor as non-editable(readable)only.
Daniel
Top achievements
Rank 1
 answered on 26 Sep 2012
1 answer
95 views
I'm using the "Editing custom editor" example to create a grid with multiple columns, few of which have dropdownlists for edits.

On Firefox, i can edit any of the columns that I have fine. However, with IE8, after editing a dropdown value once the column value shows up as "undefined".

has anyone else experienced this? And perhaps has a workaround?
Dave
Top achievements
Rank 1
 answered on 26 Sep 2012
0 answers
120 views
Hi,
I'd like to let my visitor download a file directly from the menu but i've no idea how i can code this.
I tried it with WebClient (namespace = System.Web)...

WebClient client = new WebClient();
d.Add().Text(name).HtmlAttributes(
client.DownloadFile(file, name + ".zip")
);

...but without any success. So how can I get a download link in my menu?
Oughs
Top achievements
Rank 1
 asked on 26 Sep 2012
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?