Telerik Forums
Kendo UI for jQuery Forum
7 answers
514 views
Hi,

Maybe I missed something obvious but how can I know and handle change when user edit a cell ?

I have read that fire fires before the grid item is changed and change event in dataSource do not seem to be called.

For information I'm not using remote data but local.

var data = new Array();
data.push({Id: 'id'});
 
var grid = $("#grid").kendoGrid({
    dataSource: {
            data: data,
                schema: {
                    model: {
                            fields: { Id: { type: "string", validation: { required: true} },}
                        }
                },
        change: function() {console.log('dataSource change');},
        },
    editable: true,
        toolbar: ["create", "save", "cancel"],
        columns: [{field: "Id",},],
    save: function(data) {
        console.log('grid save');
        for(i in data)
            console.log(i + ' = ' + data.i);
    },
}).data("kendoGrid");

Thanks
Yvan
Nikolay Rusev
Telerik team
 answered on 30 Dec 2011
3 answers
562 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
335 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
125 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
80 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
959 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
260 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
127 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
163 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
198 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
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
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
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?