Telerik Forums
Kendo UI for jQuery Forum
1 answer
46 views
As said in title, if I use something like this to style div to look like window ...

<div class="k-widget k-window panel">

... and call some window, window cannot be closed.
Error: Cannot read property 'options' of undefined
Alex Gyoshev
Telerik team
 answered on 17 Jan 2012
1 answer
154 views
Hi,

I'm newbie with js and HTML5. I have no idea how to pass value from QueryStringParameter (set in URL) and filter KendoDataSource ?

http://www.myapp.aspx?orderID=1234

example:

 $("#grid").kendoGrid({
                        dataSource: {
                            type: "odata",
                            serverFiltering: true,
                            filter: [{ field: "Order_ID", operator: "equals", value: 1234}
                            ]



BR
Marko
Atanas Korchev
Telerik team
 answered on 17 Jan 2012
3 answers
119 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
330 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
102 views
Is it possible to limit window drag to some div element?
Alex Gyoshev
Telerik team
 answered on 16 Jan 2012
1 answer
220 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
226 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
124 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
106 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
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
Dialog
Chat
DateRangePicker
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?