Telerik Forums
Kendo UI for jQuery Forum
1 answer
117 views
Is it possible to limit window drag to some div element?
Alex Gyoshev
Telerik team
 answered on 16 Jan 2012
1 answer
239 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
235 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
136 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
124 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
89 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
96 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
3 answers
343 views
I have just started to use the autocomplete and so far it looks pretty good.

Is there anyway to add watermark text to the textbox that has the autocomplete attached to?

Thank you
Shane P
Top achievements
Rank 1
 answered on 16 Jan 2012
1 answer
658 views
I'm having problems in binding a json data fetched from a php file to a grid. Here's what my php file looks like:
$studs = array();
$db->query("SET CHARACTER SET utf8");
$students = $db->get_results("SELECT * FROM tbl_participants");
if(!empty($students)){
    foreach($students as $k=>$v){
         
        $studs['participant'][] =  $v->participant;
    }
}
echo json_encode($studs);

And here's the file where I have the grid:
<script>
 $(document).ready(function() {
   var dataSource = new kendo.data.DataSource({
    transport: {
     read: {
      
      url: "fetch_data.php",
      dataType: "json"
     }
    },
    schema: {data: "participant"}
   });
  
   $("#grid").kendoGrid({
    dataSource: dataSource,
     height: 360,
     groupable: true,
     scrollable: true,
     sortable: true,
     pageable: true,
     autoBind:true,
     columns: [
         
        {field: 'participant', title: 'Name'}
         
     ]
      
   });
 });
</script>
<table id="grid"></table>
Andrew
Top achievements
Rank 1
 answered on 16 Jan 2012
2 answers
1.0K+ views
Instead of listing the filters in code like this:
dataSource.filter([    
{ field: "orderId", operator: "neq", value: 42 },    
{ field: "unitPrice", operator: "ge", value: 3.14 }
]);

I would like to add them from a JSON array. How would I go about this? When I try, all I get is one filter being appended to the query string not in the correct format, rather looking like this:
filter[filters][]

instead of:
filter[filters][0][field]
filter[filters][0][operator]
filter[filters][0][value]
Gabriel
Top achievements
Rank 1
 answered on 15 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
Drag and Drop
Application
Map
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
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
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?