Telerik Forums
Kendo UI for jQuery Forum
3 answers
549 views
Hello,

I need some help connecting to a json file.

I have attached my html file and my json file.

I can't get the json data to show up in my grid.

Please help,

P
Atanas Korchev
Telerik team
 answered on 30 Dec 2011
1 answer
331 views
What do I target to set the width of the individual comboboxes?

I have one combobox which has longer text.   I tried targeting the <input> with a CSS class but it only makes the input area bigger.   The dropdown still remains skinny.  
Kamen Bundev
Telerik team
 answered on 30 Dec 2011
1 answer
122 views
Is there a way to pass multiple values for orderId.
filter: [ { field: "orderId", operation: "eq", value: 10248 }]

For example...

filter: [ { field: "orderId", operation: "in", value: 10248,10249 }]

It would be nice there were more examples of how to use this config.
Andrew
Top achievements
Rank 1
 answered on 30 Dec 2011
0 answers
77 views
The user will have better user experience, if the whole data is downloaded to the browser/client and update the view based on the user's selection. I have a large set of data having 5000 rows.  I'm looking at the alternate approach where I can make an ajax call based on the user's selection, and brings-in whatever necessary.

Any idea what is the maximum size of data the browser can hold in it's memory?

Varghese
Top achievements
Rank 1
 asked on 29 Dec 2011
4 answers
934 views
At least that is what I am assuming. I have a datasource bound to a grid. It is a delayed binding, so the url is set later, but I do get the expected data. When I select the filter item for price I get the following on the console: 
Thanks for your help.
Randy

Data Source:
var myQuotes = new kendo.data.DataSource({
    transport: {
        read: ""
    },
    schema: {
        data: "d",
        schema: {
            model: {
                fields: {
                    Carrier: { type: "number" },
                    ErroMsg: { type: "string" },
                    Key: { type: "string" },
                    Price: { type: "number" },
                    Service: { type: "number" },
                    Sig: { type: "number" },
                    WeightLbs: { type: "number" },
                    WeightOz: { type: "number" }
                }
            }
        }
    }
});

Grid:
    myQuotes.transport.options.read.data = "d";
    myQuotes.transport.options.read.url = 'ws/srvQuickQuote.svc/Quote';
    myQuotes.fetch(function () {
        $("#grid").kendoGrid({
            dataSource: myQuotes,
            height: 600,
            scrollable: true,
            sortable: true,
            filterable: true,
            pageable: true,
            columns: [
                {
                    field: "Carrier",
                    type: "number",
                    title: "Carrier"
                },{
                    field: "Service",
                    type: "number",
                    title: "Service"
                },{
                    field: "Sig",
                    type: "number",
                    title: "Signature"
                },{
                    field: "Price",
                    type: "number",
                    title: "Price"
                },{
                    field: "ErrorMsg",
                    type: "string",
                    title: "ErrorMsg"
                }
            ]
        }
 
        );
    });
Randy
Top achievements
Rank 1
 answered on 29 Dec 2011
4 answers
254 views
If I use below way to set Grid selection:
$(document).ready(function () {
}
$(document).ready(function () {
  $("#grid").kendoGrid(...);
  var grid = $("#grid").data("kendoGrid");
  //alert(1);
  var selection = grid.tbody.find(">tr").eq(1);
  grid.select(selection);
}

row selection will not succeed, if uncomment "alert()", row selection is working.
So I only can use below way to implement row selection in document.ready without "alert":
$(document).ready(function () {
  var grid = $("#grid").kendoGrid(...
    dataBound: function() {
        var selection = grid.tbody.find(">tr").eq(1);
        grid.select(selection);
    }
  ).data("kendoGrid");;
}


But for DropDownList, it is not so lucky.
DropDownList hasn't dataBound event, if I need to set its value during loading as below:
$(document).ready(function () {
  $("#DDL").kendoDropDownList(...);
  //alert(1)
  DDL.value(1);
}
It fails.
Could you figure out a way to implement setting DDL's value in loading?

btw: all these UI Widget are in Kendo Tab.
Todd
Top achievements
Rank 1
 answered on 29 Dec 2011
1 answer
121 views
I have a webservice that returns a list of objects. Most of the fields are enums, or rather integers when they show in the grid. Is there a way to process that field and display it as a more human readable format? I figure I will have to maintain a integer to string conversion function that matches the enums of the webservice, but how can I get that function to be called?

The only way I can see it working now is to create a new object and copy the rows over one by one translating as I go. I am hoping for something easier.

Thanks
Randy
Nikolay Rusev
Telerik team
 answered on 29 Dec 2011
0 answers
162 views
Hi,

I had quite some trouble to get the grid to bind to json data returned by a WCF service hosted on IIS 7. The following works for me:
                $.ajax({
                    dataType: 'json',
                    type: 'POST',
                    contentType: 'application/json; charset=utf-8',
                    data: '{}',
                    url: 'api/dsl',
                    success: function (data) {
                        $("#grid").kendoGrid({
                            dataSource: {
                                data: data,
                                pageSize: 10
                            },
                            height: 750,
                            groupable: true,
                            scrollable: true,
                            sortable: true,
                            filterable: true,
                            pageable: true,
                            autobind: true
                        });
                    },
                    error: function (jqXHR, textStatus, errorThrown) {
                        alert("error: " + textStatus + ": " + jqXHR.responseText);
                    }
                                });
It seems i need to specify contenttype and data in order to have jquery play nice with IIS 7 (this post helped me: http://encosia.com/3-mistakes-to-avoid-when-using-jquery-with-aspnet-ajax/). It all started to work for me then when I set those properties on the ajax call.

Now I would like to use the datasource property in the kendogrid rather than using the ajax success callback. Is there any way to achieve this?

Kind regards,

Roel Hans
Roel Hans Bethlehem
Top achievements
Rank 1
 asked on 29 Dec 2011
4 answers
192 views
Hi,

What reference do I use in this line of code to reference the content area of RadEditor?

Thanks, 

Donald
$("#autoCompleteInput").kendoAutoComplete({
Atanas Korchev
Telerik team
 answered on 29 Dec 2011
3 answers
306 views
hi all:
i want use other jsp page return json object  as follows ["Item1", "Item2", "Item3"];
,so i Should how to change the code?
$("#autocomplete").kendoAutoComplete({
   minLength
: 3,
   dataTextField
: "Name", //JSON property name to use
   dataSource
: new kendo.data.DataSource({
       type
: "odata", //Specifies data protocol
       pageSize
: 10, //Limits result set
       transport
: {
           read
: "http://odata.netflix.com/Catalog/Titles"
       
}
   
})
});
i want use json data,not odata,pls help me ,thanks.

Seaman
Top achievements
Rank 1
 answered on 29 Dec 2011
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
Drawer (Mobile)
Drawing API
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?