Telerik Forums
Kendo UI for jQuery Forum
2 answers
58 views
When I try running the "customising templates" in Safari on the iPad the drop down appears but when I scroll the temple the drop down closes when I take my finger off it. -- Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 21 Jan 2012
2 answers
145 views
Should I expect the combo box to work in Safari on the iPad? When I try the demo when I click to open the drop down it immediately closes again. -- Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 21 Jan 2012
7 answers
700 views
Hi!

I'm trying to use kendoUpload through a Java servlet. Despite upload phase gets completed without a problem (that is, servlet receives and parses the input, and returns a successful JSON response with a page of type "text/plain") Kendo complains that unexpected server response. The strange thing is returned JSON response from the server looks ok, see below console output:

Server response: {"status":0,"data":[{"id":"4f11af83ccf2c8eb5e42afa8","text":"","type":"IMAGE","image":{"small":{"id":"4f11af83ccf2c8eb5e42afa7","width":100,"height":74},"large":{"id":"4f11af83ccf2c8eb5e42afa6","width":400,"height":296}}}]}

(I can also verify the above returned JSON from Firebug.) What might I be missing? How can I further diagnose the problem? (Using Kendo UI v2011.3.1129 GPL, Firefox 9.0.1) I reproduced the same error with "text/json" and "application/json" data types too.

BTW, I use kendoUpload as follows:

$(divSelect).html("<input id='input-4f11af83ccf2c8eb5e42afa7' type='file'/>");
$("#input-4f11af83ccf2c8eb5e42afa7").kendoUpload({
  async: {
    saveUrl: "/image/add",
    saveField: "image"
  },
  upload: function(ev) { ev.data = {...}; },
  success: function(ev) { ...; }
};

To further detail the problem, I introduced an error handler function to kendoUpload and placed a breakpoint right in the function body. Below is the stack trace at the breakpoint.

  1. ev: Object
    1. XMLHttpRequest: XMLHttpRequest
      1. onabort: null
      2. onerror: null
      3. onload: null
      4. onloadstart: null
      5. onprogress: null
      6. onreadystatechange: null
      7. readyState: 4
      8. response: "{"status":0,"data":[{"id":"4f11e39cccf21c6288c10834","text":"","type":"IMAGE","image":{"small":{"id":"4f11e39cccf21c6288c10833","width":72,"height":100},"large":{"id":"4f11e39cccf21c6288c10832","width":400,"height":558}}}]}"
      9. responseText: "{"status":0,"data":[{"id":"4f11e39cccf21c6288c10834","text":"","type":"IMAGE","image":{"small":{"id":"4f11e39cccf21c6288c10833","width":72,"height":100},"large":{"id":"4f11e39cccf21c6288c10832","width":400,"height":558}}}]}"
      10. responseType: ""
      11. responseXML: null
      12. status: 200
      13. statusText: "OK"
      14. upload: XMLHttpRequestUpload
        1. onabort: null
        2. onerror: null
        3. onload: null
        4. onloadstart: null
        5. onprogress: null
        6. __proto__: XMLHttpRequestUpload
      15. withCredentials: false
      16. __proto__: XMLHttpRequest
    2. files: Array[1]
    3. isDefaultPrevented: function (){return f}
    4. operation: "upload"
    5. preventDefault: function (){f=!0}
    6. __proto__: Object
  2. this: d.extend.init

In the above output, I dunno what responseType actually corresponds to, but in the Firebug output I can verify that the server response is of type "text/plain".


Best.
Volkan
Top achievements
Rank 1
 answered on 21 Jan 2012
4 answers
120 views
I am using a DataSource to connect to a PHP script that returns an array of JSON data and have that bound to a Kendo Grid.   I am wondering what the best way to add column sums (or other functions) to the display is.     Example, I have a data column (say, 'SALARY') and I want to total up all values in the grid for that column and display at the bottom.    As a user filters the display, the total should update based on the displayed (filtered) records. 

Any guidance appreciated.

Andrew
Sebastian
Telerik team
 answered on 21 Jan 2012
1 answer
131 views
Hi,

I need to know how to rebind a datasource from a previously loaded JSon object.

Thanks in advance
mvbaffa
Top achievements
Rank 1
 answered on 21 Jan 2012
2 answers
102 views
Hi,

I have 2 small graphs in my page, each one has its own datasource. When I click on any small graph i want to load the same graph in a bigger container. Is there a way I can copy, or use the same datasource of the small graph in the big graph? This way I wouldn't have to read again the information from the server.  I haven't found anything similar to this in the forum yet.

Thanks for your attention
Alvaro
Top achievements
Rank 1
 answered on 20 Jan 2012
5 answers
362 views
I am using the Kendo Grid and I want to edit the rows inline. Everything works fine, but after clicking on the row I want to edit I get an error in kedon.edidtable.js at line 165: that.binder = new Binder(container, that.options.model, settings); It says that Binder is undefinde.

Here is my code:
var gridDataSource;

        $(document).ready(function ()
        {

            gridDataSource = SimulateRestCall();

            var dataSource = new kendo.data.DataSource({
                data: gridDataSource,
                schema:
                    {
                        model:
                            {
                                id: "Id",
                                fields:
                                    {
                                        ShortName: { type: "string", validation: {required: true} },
                                        Name: { stype: "string", validation: {required: true} }
                                    }
                            }
                    },
                pageSize: 5
            });

            $("#grid").kendoGrid(
                {
                    dataSource:dataSource,
                    height: 210,
                    editable: true,
                    navigatable: true,
                    pageable: true,
                    toolbar: ["create", "save", "cancel"],
                    columns: [
                        { field: "Name", width: "120px", title: "Account Name" },
                        { field: "ShortName", width: "80px", title: "Short Name", filterable: false}]

                });
        });

I have no idea what I do wrong, thanks for your help,
Cheers
Nikolay Rusev
Telerik team
 answered on 20 Jan 2012
4 answers
479 views
Hi,

we want to get datasource for grid through ODATA service operation using POST while passing additional arguments.
We are using .NET WCF DataService.
ServiceOperation itself works as well, but parameter is not passed (is always null) and request is always perfomed with GET.
We tried trial version as like as GPL, nothing works as supposed.

Please can you clarify correct using of data parameters passing to service operations using POST?
Thx

JS code:
$("#grid").kendoGrid({
dataSource: {
type: "odata",
serverPaging: true,
serverSorting: true,
pageSize: 10,
transport: {
read: 
{
type:"POST",
contentType: "application/json; charset=utf-8",
url:"http://localhost/Flexica_ODATA/product.svc/GetSamples",
datatype:"JSON",
data: { param: "testx" }
},
}
},
serverPaging: true,
height: 280,
pageable: true,
sortable: true,
columns: ["ProductName", "ProductCode"]
});

Karl
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
122 views
Hi,

Is it possible to allow drag-drop to only last level of tree?
Check out the below example, in this i just want to allow drag-drop to only "item 1.1.1 to item 1.1.4" and that should not be dragable outside of its own UL.

• Item 1
• Item 1.1
•  Item 1.1.1
•  Item 1.1.2
•  Item 1.1.3
•  Item 1.1.4
• Item 1.2
• Item 1.3
• Item 2

How could is this possible? Please suggest.

--
Thanks
Pratik Shah
  • pratik
    Top achievements
    Rank 1
     answered on 20 Jan 2012
    2 answers
    322 views
    Not sure if this question should be asked here or in the grid forum.

    I am trying to add a dropdownlist to a grid header template however its not working.

    I have moved the dropdownlist outside of the template and it works fine.

    Do I need to do something special to enable this to work?
    Shane P
    Top achievements
    Rank 1
     answered on 20 Jan 2012
    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?