Telerik Forums
Kendo UI for jQuery Forum
3 answers
109 views
I'm getting an error when I try to bind the grid to a XML datasource.

Line: 2844
Error: Unable to get value of the property 'ItemList': object is null or undefined

Seems to be at the function in kendo.all.js:
total: function(result) {
  
return this.data(result).length;

My XML:

My XML:
<?xml version="1.0" encoding="utf-8"?>
  <CreateDate>2010-09-28T01:43:50.6860364+02:00</CreateDate>
  <ItemList>
    <MovieItem>
      <Foldername>My.Family</Foldername>
....

My Datasource:

var ds = new kendo.data.DataSource({
                    transport: {
                        read: "Data/movies.xml"
                    },
                    schema: {
                        type: "xml",
                        data: "/CatalogOfMovieItem/ItemList/MovieItem",
                        model: {
                            fields: {
                                title: "Foldername/text()",
                                rootFolder: "Rootfolder/text()",
                                url: "ImdbUri/text()",
                                year: "Year/text()"
                            }
                        }
                    },
                    change: onMovieChange
                });

The datasourcce seems to be loaded correctly.
Where could be the problem?

Thanks
Eric





Rosen
Telerik team
 answered on 17 Jan 2012
2 answers
2.4K+ views
I have a series of cascading dropdownlists.  When the first one is changed, the second is updated based on the selection from the first list.  I would like for the 3rd and 4th to be reset to a blank list until the user selects a value from the second list (which will fire its change event and repopulate it).  I've tried to add the following in the change event for the 1st dropdown as I've seen on another forum post, but nothing is hidden when the event fires.  Is there a way to just clear out all of the entries in the list?  I didn't see a method in the doucmentation that appeared to do that.
$("#devType").closest("k-widget").hide();
Cyndie
Top achievements
Rank 1
 answered on 16 Jan 2012
0 answers
312 views

Hi!

I am using standard Kendo UI code from the slides withing Komodo Edit as ADE and Opera as browser.

Can anyone please tell me if it is possible and how to insert an image file .png .jpg etc icons into a column in Grid?

Thanks,

UPDATE: Since posting this issue I found the relevant video tutorial on Youtube which describes in intricate detail how to use templates to insert pictures into a grid, and I made it work. Great stuff!

http://youtu.be/gVu79Sh6Lpg

Andrew
Top achievements
Rank 1
 asked on 16 Jan 2012
1 answer
94 views
Is it possible to limit window drag to some div element?
Alex Gyoshev
Telerik team
 answered on 16 Jan 2012
1 answer
208 views
I do not have a legal background and sometimes struggle when deciphering the various license agreements that software is released under. It is my understanding that working on an Intranet for a company that you are a full time employee of is a grey area of the GPL and depends on the interpretation of the license issuer. I'm curious where Kendo UI Web and Kendo UI DataViz stand on the use of their frameworks for a small internal intranet with one developer that would accept the "As Is" condition that most Open Source software comes with. I'm just looking for some clarification.

Thanks for your time.
Emilia
Telerik team
 answered on 16 Jan 2012
2 answers
213 views
I'm having trouble getting a basic example to work in IE (9). It works fine in Chrome. Can't reproduce in jsfiddle with IE either.

Paste this into a .html page and navigate by opening via an IIS site or on your local C: drive. You should see that:

1. The tabs appear stacked vertically instead of horizontally
2. The tabs occupy 100% width
3. The static text for tabs 2 and 3 (People and Office) always displays at the bottom (not just when the People or Office is selected)


<html>
<head>
    <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>     
    <link rel="stylesheet" type="text/css" href="http://cdn.kendostatic.com/2011.3.1129/styles/kendo.common.min.css">   
    <link rel="stylesheet" type="text/css" href="http://cdn.kendostatic.com/2011.3.1129/styles/kendo.blueopal.min.css">   
    <script type='text/javascript' src="http://cdn.kendostatic.com/2011.3.1129/js/kendo.all.min.js"></script>   
    <script type="text/javascript">
        $(document).ready(function() {
            tabStrip = $("#tabStrip").kendoTabStrip({
                contentUrls: [
                    'Home.html', null, null
                ]
            });
        });
    </script>
</head>
<body>
 
    <div id="tabStrip">
        <ul>
            <li class="k-state-active" id="Home">Home</li>
            <li id="People">Meet Our People</li>
            <li id="Office">In The Office</li>
        </ul>              
        <div>
        </div>
        <div>Hello</div>
    </div>
 
</body>
</html>


Kamen Bundev
Telerik team
 answered on 16 Jan 2012
1 answer
108 views
I am trying to decipher the bing api results with datasource but not having success.

My datasource definiton:
        var dataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    type: "GET",
                    contentType: "applicatino/json; charset=utf-8",
                    url: "http://api.bing.net/json.aspx",
                    dataType: "jsonp",
                    data: {
                        AppId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        Query: function() { var search = $("#bingSuggest").val(); return search; },
                        Sources: "web",
                        JsonType: "raw",
}//data
}//read
                    }, //transport
                    schema: {
                        data: "SearchResponse"
                    },
                    change: function() {
                        alert(this.view());
                    }
                });

When the JsonType is used as "raw" as soon as the Bing returns results, a javascript error is displayed that the returned response has some syntax error. The reason I believe is - kendo (or jQuery?) tries to send the request with a callback=jquery211212... parameter. But Bing does not recognize this and needs different callback parameter.

2- I tried passing the json callback.

                        JsonType: "callback",
                        JsonCallback: "onBingSearch"

Now, bing returns results and no javascript error logged in console - but the callback is not called. 

Trying to figure out 1) either how to use the 'raw' data or 2) how to get this callback called with the response?

Thanks,
Piyush

Nikolay Rusev
Telerik team
 answered on 16 Jan 2012
1 answer
99 views
I'm trying to use a grid column template to add a third-party widget to the cells of that column. So far, my best idea has been to template the column like so:

columns: [{
field: 'SKUId',
width: 150,
title: 'SKU',
template: '<div id="skulookup_#= promotionskuId #" onreadystatechange="PromotionalSKUs.setupSKULookup(this)" />'
    }]

The PromotionalSKUs.setupSKULookup method creates the widget like so:

function setupSKULookup(element) {
    if (element.readyState == "complete")
        $(element).lookup({});
}

However. This method never gets called. Is there some way for me to call a method to initialize my widget when the template is converted to HTML and added to the DOM?


Rosen
Telerik team
 answered on 16 Jan 2012
0 answers
70 views
Grid component is worked on HTML page but when i paste same data to JSP page then unable to populate data in Grid in JSP page .

Please reply me.

Thanks in Advance.

Environment Details :
OS: Windows XP.
Kendo UI Version :  v2011.3.1129.
Browser : IE8, Fire Fox 9+.
JQuery version : 1.7.
Atit
Top achievements
Rank 1
 asked on 16 Jan 2012
2 answers
72 views
I've set up a datepicker like this...

    $(document).ready(function () {
        $("#timeshiftDatePicker").kendoDatePicker({
            max: "01/05/2012",
            min: "08/12/2011",
            value: "12/30/2011"
        });
    });

It displays the date correctly and limits the range correctly, but when I click on another date the value shown is something like "Tue Dec 27 2011 00:00:00 GMT+1000", not "12/27/2011". I originally thought it might have something to do with setting the culture to en-AU (I reversed my dates when that was set), but I've removed that and I still get the problem.
Adam Boddington
Top achievements
Rank 1
 answered on 16 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?