Telerik Forums
Kendo UI for jQuery Forum
1 answer
698 views

Hi all,

I am successfully load datasource data from server and then i remove some items from the datasource then i bind it to the combobox. the problems is that the removed data still appear? 

 

// data from server works fine

comboData: kendo.data.DataSource = new kendo.data.DataSource({
transport: {
read: {
dataType: "jsonp",
url: `my url`
}
}
});

 

//combobox binding

this.comboBox = $("#elementid").kendoComboBox({
dataTextField: "DisplayName",
dataValueField: "SchemaName",
select: (e) => this.onSelectionChanged(e),
dataSource: this.comboData
}).data("kendoComboBox").focus();
$("#elementid").data("kendoComboBox").open();

 

// remove data from datasource

var rawData:any = this.comboData.data();

for(let dataItem of rawData){
if(my condition ) {
this.comboData.remove(dataItem);
}
}

Ivan Danchev
Telerik team
 answered on 18 May 2017
2 answers
147 views

Hello,

 

I have a Kendo Scheduler where in work weekview i am Setting workweekend to 5/6/7 depending on user Settings. When ist 7(monday-sunday) in workweekview when i click back button the Dates do not Change. Ist always current week. When i check e.date in navigate Event it always gives me todays date. But in week view it works fine. In workweekview Forward navigate works aswell .

if i remove workweekend(7) then in workview back Navigation also works fine.

 

Is it a bug? How can i fix this Situation. As i mentioned when workweekview is monday-friday or monday-saturday everything works fine. Only monday-sunday has Problem in back navigation

 

Thanks

 

Anamika

Anamika
Top achievements
Rank 1
 answered on 18 May 2017
7 answers
449 views
I am attempting to append some styles to the "Format" option in the Editor Toolbar as follows;

01.$scope.editorTools = [
02.    {
03.        name: "formatting",
04.        tooltip: "Built-in styles",
05.        items: [].concat(
06.            kendo.ui.Editor.prototype.options.formatting[0], [
07.            { text: "Section Header", value: "h2" },
08.            { text: "Sub-Section Header", value: "h3" },
09.            { text: "Paragraph", value: "p" }
10.            ])
11.    }
12.];

The Editor in the HTML is;

01.<textarea id="txtNarrative" name="txtNarrative"
02.          class="form-control"
03.          ng-model="rptSectionText.narrative"
04.          ng-required="true"
05.          kendo-editor
06.          k-encoded="false"
07.          k-tools="editorTools"
08.          style="height: 400px;"
09.          stylesheets="['/Content/KendoEditor.css']">
10.</textarea>

The problem is I get the error "TypeError: Cannot read property '0' of undefined at new rfController (rfController.js:40)" which is line 6 in the code example above.

I tried adapting the code from http://www.telerik.com/forums/minor-formatting-issue-(tool-bar) but obviously I am doing something wrong.

Thanks in advance.
Nikolay
Telerik team
 answered on 18 May 2017
2 answers
87 views

Hi there,

I am running into issues attempting to generate a custom theme using the Kendo UI Themebuilder - http://demos.telerik.com/kendo-ui/themebuilder/

We have recently upgraded to Kendo Q1 2017. We still had a custom theme in place which was built in an earlier version of Kendo. Due to the change in approach to icons (http://docs.telerik.com/kendo-ui/backwards-compatibility/2017-backward-compatibility), I expected to have to rebuild the theme. We are using Metro as the theme base.

However, when I've done this using the themebuilder, the downloaded CSS file appears to be very different from what I would expect - it still has references to the sprite.png file. This is leading to both approaches being applied - the k-icon class applies a sprite image, and the new approach applies an icon.

I then ran the themebuilder and just downloaded an unmodified version of the Metro theme and compared that to the theme shipped in 2017.1.223 - again, the same differences were present and we ended up with both images applied.

Am I doing something wrong here or is there an issue - it seems to be the themebuilder is not able to produce CSS compliant with Q1 2017?

Thanks,

Paul McKay

Alex Gyoshev
Telerik team
 answered on 18 May 2017
1 answer
720 views

Hello,

I have a chart with multiple series and different types. When I am using a rangeColumn and the value is'nt defined, the label shows undefined or null.

Is it possible to filter the labels and to hide or to overwrite only the labels for undefined or null values? If I am seeing it correctly, the label visibility is connected to the whole series, but I need to control the visibility for each value.

 

Thank you for your help.

Best regards

Harald

Iliana Dyankova
Telerik team
 answered on 18 May 2017
3 answers
617 views

Im trying to change the height of a highlighted event in the monthview scheduler calendar

Its an inline style according to Chrome dev tools. If I change it there I get the desired result but I cannot find where to make that change in source code.

Ive tried adding the following to my view to no avail:

<style>
.k-scheduler-monthview .k-event
{
height: 75px;
}
</style>

Here is the rendered code

<div role="gridcell" aria-selected="false" data-uid="ab5621fd-4c0a-436f-9056-39bac061d6b9" class="k-event" style="top: 115px; width: 73px; left: 2px; height: 25px;"><span class="k-event-actions"></span><div title="Maratona Dles Dolomites 2017"><div class="k-event-template">Maratona Dles Dolomites 2017</div></div><span class="k-event-actions"></span></div>

Where and how can I change 'height: 25px' to a different value?

Full rendered code:

<table class="k-scheduler-layout k-scheduler-monthview k-scrollbar-h"><tbody><tr><td><div class="k-scheduler-header k-state-default"><div class="k-scheduler-header-wrap"><table class="k-scheduler-table"><tbody><tr><th colspan="1" class="">Sunday</th><th colspan="1" class="">Monday</th><th colspan="1" class="">Tuesday</th><th colspan="1" class="">Wednesday</th><th colspan="1" class="">Thursday</th><th colspan="1" class="">Friday</th><th colspan="1" class="">Saturday</th></tr></tbody></table></div></div></td></tr><tr><td><div class="k-scheduler-content" style="height: 576px;"><table class="k-scheduler-table"><tbody><tr role="row"><td class="k-other-month k-state-selected" role="gridcell" aria-selected="true"><span class="k-link k-nav-day">25</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">26</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">27</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">28</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">29</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">30</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">01</span></td></tr><tr role="row"><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">02</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">03</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">04</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">05</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">06</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">07</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">08</span></td></tr><tr role="row"><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">09</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">10</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">11</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">12</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">13</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">14</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">15</span></td></tr><tr role="row"><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">16</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">17</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">18</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">19</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">20</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">21</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">22</span></td></tr><tr role="row"><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">23</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">24</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">25</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">26</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">27</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">28</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">29</span></td></tr><tr role="row"><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">30</span></td><td role="gridcell" aria-selected="false"><span class="k-link k-nav-day">31</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">01</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">02</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">03</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">04</span></td><td class=" k-other-month" role="gridcell" aria-selected="false"><span class="k-link k-nav-day">05</span></td></tr></tbody></table><div role="gridcell" aria-selected="false" data-uid="ab5621fd-4c0a-436f-9056-39bac061d6b9" class="k-event" style="top: 115px; width: 73px; left: 2px; height: 25px;"><span class="k-event-actions"></span><div title="Maratona Dles Dolomites 2017"><div class="k-event-template">Maratona Dles Dolomites 2017</div></div><span class="k-event-actions"></span></div></div></td></tr></tbody></table>
Thank you.
Terry
Top achievements
Rank 1
 answered on 18 May 2017
1 answer
249 views

Im using a kendo schduler to display an event calender. When an event is added, it displays on the calendar with height 25px
Rendered code -

 

<div role="gridcell" aria-selected="false" data-uid="ab5621fd-4c0a-436f-9056-39bac061d6b9" class="k-event" style="top: 115px; width: 73px; left: 2px; height: 25px;"><span class="k-event-actions"></span><div title="Maratona Dles Dolomites 2017"><div class="k-event-template">Maratona Dles Dolomites 2017</div></div><span class="k-event-actions"></span></div>     
Ivan Danchev
Telerik team
 answered on 18 May 2017
3 answers
678 views

I'm building a Kendo Scheduler using the MVVM methodology. I find that a lot of the configuration options, listed here: http://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler#methods-view, are difficult to achieve via the MVVM way. One of the things I'm attempting to achieve is change the scheduler view from week to month when a button is clicked. Yes, I know this support comes out of the box when a Kendo scheduler is initialized, but due to design and requirements, customization is needed. This is what I have:

 

HTML:

<div id="scheduler-container">
    <div class="scheduler-toolbar">
        <div class="button-container" data-bind="events: { click: onClick }">
            <button class="btn btn-default view-btn" value="month">Month</button>
            <button class="btn btn-default view-btn" value="week">Week</button>
        </div>
    </div>
    <div class="scheduler"
         data-role="scheduler"
         data-views="['month', 'week']"
    ></div>
</div>

 

 

JS:

var schedulerModel = kendo.observable({
    onClick: function(e) {
        /*  change view here. is it possible?  */
    }
});
 
$(document).ready(function() {
    kendo.bind($("#scheduler-container"), schedulerModel);
});

 

Any help would be greatly appreciated! Thanks!

Sayer
Top achievements
Rank 1
 answered on 17 May 2017
1 answer
554 views

Hi,

I'm try to show ellipsis at the end of long texts inside the table cell, and I'm doing by setting "table-layout: fixed", but I run into unwanted behavior when the columns are being resized. The column can be shirked completely, and an horizontal scroll bar appears. 

Code:

http://jsfiddle.net/nxLvryxb/

Screenshots:

(Attached)

 

Preslav
Telerik team
 answered on 17 May 2017
9 answers
605 views
Upload multiple files - in async mode.
A)
When an upload did not complete due to a server error, the uploaded file is being displayed in the file list with the "Retry" button.
When multiple files are uploaded, it is very easy to overlook the file that has not been uploaded yet.

is there a way to provide different styling for unfinished vs finished files?

B)
When number of files to be uploaded is limited to a predefined number MAX_FILES 
(I use the following code from the forum: ($(id).parent().children('input[type=file]:not(' + id + ')').length >= MAX_FILES)
to determine the number of files in the list)

The files that are in the list but not yet uploaded get counted as well.
Is there a way to provide the user an option to remove the entry (the entry waiting for "retry") from the list?

Thanks
Andrew.
Dimitar
Telerik team
 answered on 17 May 2017
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?