Telerik Forums
Kendo UI for jQuery Forum
4 answers
454 views
All -

I have included    
     <script type="text/javascript" src="Scripts/jquery_1.9.1.js"></script>
    <script type="text/javascript" src="Scripts/Kendo/kendo.web.min.js"></script>
    <script type="text/javascript" src="Scripts/Kendo/kendo.scheduler.min.js"></script>

but still, the following code would throw error saying the KendoScheduler is not found..
(JavaScript runtime error: Object doesn't support property or method 'kendoScheduler')

All kendo files are from kendoui.web.2013.2.716.open-source release...

Could any one tell me what am i missing?

<div id="scheduler"></div>
$(document).ready(function () {
            $("#scheduler").kendoScheduler({
                date: new Date(),
                dataSource: [
                                {
                                    id: 1,
                                    start: new Date("2013/6/6 08:00 AM"),
                                    end: new Date("2013/6/6 09:00 AM"),
                                    title: "Interview"
                                },
                                {
                                    id: 2,
                                    start: new Date("2013/6/6 08:00 AM"),
                                    end: new Date("2013/6/6 09:00 AM"),
                                    title: "Meeting"
                                }
                           ]
            });
        });
Dimo
Telerik team
 answered on 31 Jul 2013
1 answer
127 views
hi guys.
i use kendo mobile and kendo web in my apps.
i have noticed that loading animations are disappeared when loading ajax contents. can someone point me why is that happens? 
i tried to put app.showLoading() in request start of the datasource and app.hideLoading() in the requestEnd event but it is ignore my commands.
regards maor
Petyo
Telerik team
 answered on 31 Jul 2013
1 answer
298 views
I'm trying to use box-shadow inside a KendoUI Mobile view, but I'm unable to make it work. Below is the code, but no shadow is shown underneath the "shadowClass" paragraph as long as it's followed by a content div or a listView that's not inset. If I remove the listView and the content-div the shadow is shown.

Is it possible to achieve the bottom shadow effect together with a listView? 

The view:
<div data-role="view" data-layout="app" data-title="test" id="pageTest">
    <div class="shadowClass">
        <p style="font-weight: normal;">
            Some explanation text goes here.
        </p>
    </div>
    <div data-role="content">
        <ul id="listview-program"></ul>
    </div>
</div>

The CSS:
.shadowClass {
background-color: yellow;
-moz-box-shadow: 1px 5px 9px #000000;
-webkit-box-shadow: 1px 5px 9px #000000;
box-shadow: 1px 5px 9px #000000;
}
A jsFiddle: http://jsfiddle.net/zsRFL/1/
Petyo
Telerik team
 answered on 31 Jul 2013
1 answer
91 views
im using php to access data in mysql database but i would like to store form data into my database using php and how do i select username and password using php in a form created kendoui...thanks in advance.

<?php
 $link = mysql_pconnect("localhost", "root", "") or die("Unable To Connect To Database Server");
     mysql_select_db("db") or die("Unable To Connect To ebusticket");
   
    $request_vars = Array();
    parse_str(file_get_contents('php://input'), $request_vars);

    $arr = array();
   $fname = $request_vars["fname"];
   $lname = $request_vars["lname"];
    
    $rs = mysql_query("insert into table (Pass_Surname, Pass_Fname) values ('" .$lname. "' , '" .$fname. "'");

   if ($rs) {
        echo json_encode($rs);
    }
    else {
        header("HTTP/1.1 500 Internal Server Error");
        echo "Insert Failed";
        
    }
    
     // add the header line to specify that the content type is JSON
    header("Content-type: application/json");
?>
Petur Subev
Telerik team
 answered on 31 Jul 2013
3 answers
81 views
The latest kendo update has changed jquery and now it errors in IE10 when trying to parse regex of the form /*anything*/x

Where x is a var
Sebastian
Telerik team
 answered on 31 Jul 2013
1 answer
79 views
I need to Set 3 drop downs with different widths, they all have common css, how do we go about doing this?? Kind of urgent any help will be much appreciated.
Diljeet
Top achievements
Rank 1
 answered on 31 Jul 2013
1 answer
888 views
I just have a simple needs, building intellisense feature for my app, got everything working but the KendoUI autocomplete doesn't have open method to manually open the popup when the user type ".",

see the sample code, see line 41 (where I need to manually open the autocomplete)  and line 51 , replace the suggestion list
 
01.var tree = GetTheListOfSuggestionFromSomewhere();
02.var data = _.chain(tree)
03.    .map(function (t) {
04.        if (t.parent === "")
05.            return t.name;
06.        return undefined;
07.    })
08.    .filter(function (t) {
09.        return typeof t !== "undefined";
10.    })
11.    .value();
12. 
13.console.log(data);// this log out  array of string
14. 
15.var dataSource = new kendo.data.DataSource({
16.    data: data
17.});
18.var input = $(element).data("kendoAutoComplete") ||
19.   $(element).kendoAutoComplete({
20.       dataSource: tree,
21.       dataTextField: "path",
22.       change: function () {
23.           var path = this.value();
24.           console.log("selected path ", path);
25. 
26.       },
27.       filter: "startswith",
28.       placeholder: "Select path...",
29.       separator: ""
30.   }).data("kendoAutoComplete");
31. 
32.$(element)
33.        .change(function () {
34.            value($(this).val());
35.            console.log("new value", value());
36.        })
37.       .val(value())
38.    .on("keydown", function (e) {
39.        if (e.which === 110 || e.which === 190) {
40.            var path = $(this).val() + ".";
41.            console.log("show the auto complete", path);
42.            var filtered = _.chain(tree)
43.                .filter(function (t) {
44.                    return t.parent === path;
45.                })
46.                .map(function (t) {
47.                    return t.name;
48.                })
49.                .value();
50.            console.log(filtered);
51.            //input.setDataSource(dataSource);
52.            dataSource.data(filtered);
53.            input.refresh();
54.        }
55.    });
Atanas Korchev
Telerik team
 answered on 31 Jul 2013
3 answers
4.2K+ views
Guys,

I want to set DatePicker a new value in a different function from where I define the DatePicker. Right now, I do like this:

function A() {
    $("#Date").kendoDatePicker({ min: new Date($('#TodaysDate').val())});
}

function B() {
    var NewDate = kendo.toString(this.value(), 'MM/dd/yyyy');
    $("#Date").val(NewDate);
}

It turns out that the date appears in the dialog is correct, but the date highlighted in the calendar is wrong. It's just like enter a new date in the dialog but doesn't press the Enter. Anyone has any idea how to fix it?

Thanks!
Kiril Nikolov
Telerik team
 answered on 31 Jul 2013
1 answer
110 views
Hi,

I'm trying to use the Combobox on a very simple form and it works fine in Firefox. However, if I try and view the page in IE, I get the following error:

Unhandled exception at line 3, column 23238 in http://cdn.kendostatic.com/2013.1.514/js/jquery.min.js
0x80020003 - JavaScript runtime error: Member not found.

I'd be grateful if someone might help me understand how to troubleshoot.

Thanks!
Kiril Nikolov
Telerik team
 answered on 31 Jul 2013
0 answers
126 views
Starting with Kendo and coming from base MVC 4.  There doesn't seem to be a Kendo checkbox available.  How do people account for consistent styling with checkboxes, radio buttons, etc... that Kendo does not provide?
Matt
Top achievements
Rank 1
 asked on 30 Jul 2013
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
Drawing API
Drawer (Mobile)
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?