Telerik Forums
Kendo UI for jQuery Forum
3 answers
108 views
Yey, just lost my bugreport... So once again

Hi there

I'm using the multiselect inside a form to allow the selection of persons. Where talking about 300 - 400 entries. In some cases it is needed, that all persons can be selected. So I added a Function which gets all dataSource entries and sets them as value.

Unfortunately this takes "ages" (about 2-3 sec) and on some workstations even leads to a script timeout. Running Firebug profile, I found out that this is caused by the _select() method of the multiselect widget. In particular by the "that._height(that._visibleItems);" which is, caused by the array loop, called for every data item. If I move this line to the value() method and insert it after the select loop, consumed time drops almost by half.

I don't see why the height needs to be calculated on every data item. I couldn't detect any side effects yet, but maybe there are. Still I would suggest to move the height calculation from the _select() method.
Kiril Nikolov
Telerik team
 answered on 08 Jan 2015
1 answer
573 views
Hi,

I've been using the Kendo Notification and I swear it automatically re-sizes the notification to fit the message or content. But suddenly that behavior just stopped. I'm not sure what I did wrong. Here's the some code snippet and a screenshot:

<span id="useAIbleGlobalNotification"></span>
<script type="text/javascript">
var useAIbleNotification;
$(document).ready(function(){
  useAIbleNotification = $("#useAIbleGlobalNotification").kendoNotification(
                {
                    position: {
                        top: null,                        
                        bottom: 20,
                        left: 20,
                        right: null,
                    }
                }).data("kendoNotification");
}
</script>


I call it like these:
useAIbleNotification.show("my message", "success");

As you can see I purposely positioned it to the lower left corner so that I won't worry about the content being too long. But now the notification is no longer re-sizing to fit the content. I tried manually putting a width but it doesn't re-size and just stays the same every time. What am I doing wrong?

Thank You



Dimo
Telerik team
 answered on 08 Jan 2015
1 answer
176 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
271 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
202 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
102 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
262 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
280 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
68 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
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
Drag and Drop
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?