Telerik Forums
Kendo UI for jQuery Forum
1 answer
171 views
Hello,

My question is fairly simple.  I just would like to know if there is a way to make the Kendo UI Calendar widget readonly, or if there is a way to disabled it.  There were a couple fairly old posts about this that were never answered.  Also, the API documentation for this widget does not seem to show an 'enable' configuration item that is common for other controls.

Any help would be appreciated.  Thanks.
Georgi Krustev
Telerik team
 answered on 08 Jan 2015
2 answers
266 views
Hi,

I need to use the Scheduler with declarative initialization (data-* attributes). I have a datasource called myDataSource, which is of type SchedulerDataSource(), initialized like this in a TypeScript file:

var myDataSource = new kendo.data.SchedulerDataSource();

I am using the following code snippet in the *.cshtml file. The
data-date, data-editable and data-views attributes work as expected:

<div id="scheduler" data-role="scheduler" data-date="2015/1/7" data-editable="true"

                 data-views=["day","week","month"] data-bind="myDataSource"

/>


My schema should look like this:

          schema: {
            model: {
                id: "projectId",
                fields: {
                    projectId: { from: "ProjectId", type: "number" },
                    title: { from: "QuoterName", defaultValue: "No title"},
                    start: { type: "date", from: "BidDate", defaultValue: "2015/1/7" },
                    end: { type: "date", from "BidDate", defaultValue: "2015/1/7" },
                    description: { from: "JobName" }
                }
            }
        }


The "from" above contains the exact field names in the class that retrieves from the database. Questions:

1. How would I declare the model attribute in the scheduler "div" tag above? Your online documentation shows
examples in a <script/> tag, but I need to use it declaratively (using data-* attributes).

2. What formats do the start and end (dates) need to be in? Our BidDate column returns 2015-01-08 12:00:00.0000000, for example. How should it be formatted for the start and end? For example, we have a standard 30-minute duration,
so 2015-01-08 12:00:00.0000000 would start at 12:00 pm and end at 12:30 pm on 2015-01-08. What date formats should be passed in?

3. Do all fields that are being returned need to be declared in the schema or only the ones that are being displayed?

Thanks!
Georgi Krustev
Telerik team
 answered on 08 Jan 2015
1 answer
196 views
i have a combobox that is populated from a websocket.  The value for the combobox contains a SPARQL query that needs to retain formatting including white space and new lines.  When I populate the the data source, I explicitly escape the newline characters, but when the value is extracted with combobox.value(), I still lose all the white space and newline characters.  How can I fix this?
Kiril Nikolov
Telerik team
 answered on 08 Jan 2015
1 answer
101 views
Hi,

The chart selection api seems to have no effect on bar charts and other chart types, except for column charts. I couldn't find this described as a limitation anywhere in the documentation. Can you please describe what the intended support for chart selection is for the available chart types?

Thanks,
Gary
T. Tsonev
Telerik team
 answered on 08 Jan 2015
4 answers
248 views
Using Kendo UI v2014.2.716, I'm seeing the following error in the latest Chrome dev build (38.0.2125.0 dev-m) when support.input is set in kendo.web.js. 

The specified value 'test' does not conform to the required format, 'yyyy-MM-dd'.

This doesn't fail when the type is number, but fails for all other types in the array. I also don't see this error in the latest Firefox Aurora (33.0a2 2014-08-19) or Internet Explorer 11, so I'm guessing it's related to the way the latest Chrome is validating input fields. I'm not sure if there's a way Kendo UI can modify the way it's testing for input support, but I just wanted to mention it to see if anyone else has seen this and ask what the best way forward is.
Georgi Krustev
Telerik team
 answered on 08 Jan 2015
3 answers
270 views
Hi,

We are using latest kendo UI. Where we are using Multi column options. In parent column how to use filter options?
Nikolay Rusev
Telerik team
 answered on 08 Jan 2015
1 answer
66 views
I have used knockout to bind data to kendo grid, but the events on the column template are not fired when navigated to another page of the grid

Can anyone please suggest
Alexander Valchev
Telerik team
 answered on 08 Jan 2015
1 answer
1.3K+ views
I have an ASP.NET Kendo/MVC DateTimePicker:

@(Html.Kendo()
                .DateTimePickerFor(m => m.ResponseRequiredBy)
                .Events(e =>
                {
                    e.Change("ResponseRequiredBy_OnChange");
                }))

We have a requirement that when a user selects a day, we set a default time within the day if not already selected. I use this code to achieve this:

function ResponseRequiredBy_OnChange() {
    if (this.value().getHours() == 0 &&
        this.value().getMinutes() == 0) {
        var newDate = new Date(this.value().getFullYear(), this.value().getMonth(), this.value().getDate(), 16, 0, 0, 0);
        $("#ResponseRequiredBy").kendoDateTimePicker({
            value: newDate,
            format: "dd/MM/yyyy h:mm tt"
        });
 
        // overcomes bug whereby Kendo expands field to full width
        $("#ResponseRequiredBy").attr("style", "");
        $(".k-widget.k-datetimepicker.k-header.k-input").attr("style", "");
    }      
}

BUT when I set the new value, the width of the picker expands to 100% for some reason (see attachments).

I have to add the commented code to fix the issue.

Why would this be happening?

Thanks

Nathan
​
Kiril Nikolov
Telerik team
 answered on 08 Jan 2015
2 answers
223 views
Hi,

We are using a MVVM ListView with the edditing feature, following your example in the demo section. We've also added an "Add record" button in order to insert new records. Everything works fine, we can add and update items. But if we try to cancel the editing the item vanishes from the list.

This is how the add method looks like:

01.addRecord: function (e)
02. {
03.         console.log("addRecord");
04.         var listView = $("#myTestList").data("kendoListView");
05.         listView.dataSource.insert(0, {
06.             "ProductID": Math.floor(Math.random()*100),
07.             "ProductName": "test",
08.             "UnitPrice": 2,
09.             "UnitsInStock": 39,
10.             "Discontinued": false
11.         });
12.   }

It was not possible to use the listView.add() method. When we tried this, Kendo always throws an exception "ProductName is not defined".

While debugging the kendo.web.js we've noticed that the "_pristineData" value is undefined / empty when iterating through the original items

1._eachPristineItem: function(callback)
2. {
3.    this._eachItem(this._pristineData, callback);
4.}

Based on your demo we've created a fiddle in order to reproduce it.

How can we add the new items to the _pristineData? Are we missing something?

Thanks in advance,
Patrick
Alexander Valchev
Telerik team
 answered on 08 Jan 2015
1 answer
180 views
Hello gantt has very good control but we need every task to be with different color. For example: like we set: start, end, title  and etc. we need to set and color if this is possible or how can we set color ? 

Thank you previously !
Bozhidar
Telerik team
 answered on 08 Jan 2015
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?