Telerik Forums
Kendo UI for jQuery Forum
1 answer
232 views

Hello,

How can I filter and group by field type date, excluding time, only by day/month/year ?

Thanks

 

Stefan
Telerik team
 answered on 02 Mar 2017
1 answer
635 views

I am trying to use a ClientTemplate containing a DropDownListFor in a grid. My ClientTemplate code is as follows: 

@(Html.Kendo().DropDownListFor(m => m)
        .DataValueField("Value")
        .DataTextField("Text")
        .Name("PurchaseAgreementType")
        .BindTo(new List<SelectListItem>() {
            new SelectListItem() {
                Text = "PO Only",
                Value = "PO Only"
            },
            new SelectListItem() {
                Text = "Contract Based",
                Value = "Contract Based"
            }
    }))

the column in the grid is shown here: 

                    columns.Bound(l => l.PurchaseAgreementType).ClientTemplate("#=PurchaseAgreementType.Value#").Width(150);

This results in the following error: Uncaught TypeError: Cannot read property 'Value' of null

However if I copy/paste the code in the client template directly onto my form, it works perfectly.  
How can I get this to work in my grid? It seems that the DDL is not populating. 

Thanks. 

 

Nencho
Telerik team
 answered on 02 Mar 2017
1 answer
88 views

Why setting up column's aggregates are disabling column's title?

Example in attached image.

Dimitar
Telerik team
 answered on 02 Mar 2017
1 answer
214 views

Using the following:
Kendo UI: 2016.3.1202
Angular: 1.5.8
Chrome: 56.0.2924.87

I  added a dropdownlist as specified in https://demos.telerik.com/kendo-ui/dropdownlist/addnewitem with the exception of adding the addNew function into the kendo template.

<script id="noDataTemplate" type="text/x-kendo-tmpl">
    <div>
        No data found. Do you want to add new item - '#: instance.filterInput.val() #' ?
    </div>
    <br/>
    <button class="k-button" onClick="addNew('#: instance.element[0].id #', '#: encodeURI(instance.filterInput.val()) #');">Add new item</button>
    <script>
        function addNew(widgetId, value) {
            debugger;
 
            var widget = $("\\#" + widgetId).getKendoDropDownList();
            var dataSource = widget.dataSource;
            dataSource.add({
                categoryID: 0,
                categoryName: value
            });
            dataSource.one("sync", function() {
                widget.select(dataSource.view().length - 1);
            });
            dataSource.sync();
        };
    </script>
</script>

 

I’m having two issues:

1) When clicking the add new button, the drop down shrinks to be just the 'test' item forcing the user to manual select test. This is not how the demo works, it automatically selects the new entry and closes the dropdown. (see adding_new_item(2-3) pngs) What am I doing wrong here?

2) When a user adds a leading backslash (e.g. \test ) to the ‘add new’ input the ‘add new’ flow breaks i.e. the ‘test’ gets added to the datasource but the UI just stops running; the ‘add new‘  prompt never closes.  (see adding_new_item_backslash.png) 

Adding the “debugger;” directly above ‘var widget’ allows me to break within the template and step through the code. Despite breaking in this code I can’t figure out why the UI stop running as the script seems to run to completion. Also of note once I’m stepping through the code I noticed that widget.select(dataSource.view().length - 1); always equals -1 

Ivan Danchev
Telerik team
 answered on 02 Mar 2017
1 answer
236 views

Using
Kendo UI: 2016.3.1202
Chrome: 56.0.2924.87
Angular: 1.5.8
Implemented a dropdownlist as specified in https://demos.telerik.com/kendo-ui/dropdownlist/addnewitem with the exception of placing my addNew() in the Kendo template.

<script id="noDataTemplate" type="text/x-kendo-tmpl">
    <div>
        No data found. Do you want to add new item - '#: instance.filterInput.val() #' ?
    </div>
    <br />
    <button class="k-button" onClick="addNew('#: instance.element[0].id #', '#: encodeURI(instance.filterInput.val()) #');">Add new item</button>
    <script>

debugger

        function addNew(widgetId, value) {
    var widget = $("\\#" + widgetId).getKendoDropDownList();
            var dataSource = widget.dataSource;
            dataSource.add({
                categoryID: 0,
                categoryName: value
            });
            dataSource.one("sync", function() {
                widget.select(dataSource.view().length - 1); //
            });
            dataSource.sync();
        };
    </script>
</script>

 

While using the new "add new item" feature, if a user types in a leading back slash (e.g. \test ) the flow of the add new functionality breaks. I can add the 'test' to the widget but the UI never sets the selected value to test, just appears blank. Adding a 'debugger;' directly above datasource.one allows me to break within this code

Ivan Danchev
Telerik team
 answered on 02 Mar 2017
1 answer
241 views

I need to disable completely the spinner and the step, so I did the following:

http://dojo.telerik.com/AMeli

It is working great except for one problem: when clicking on arrow down, zero is displayed which is incorrect. The user did not enter zero. Please help.

Stefan
Telerik team
 answered on 02 Mar 2017
2 answers
193 views

Hi

I have a stacked graph and am trying to get the stack->group appearing in the Axis label without success.

Here is a dojo example - http://dojo.telerik.com/UqiVo

I am trying to get 'person 1' and 'person 2' under the relevant column (similar to how the tool tip works) as these ill be in printed reports so tooltips don't help.  Best I have been able to do is put a coloured border to differentiate the series.

I have just hard coded into the label template in this example.

Thanks in advance

Dave

Dave
Top achievements
Rank 1
 answered on 02 Mar 2017
1 answer
90 views

I downloaded Kendo version v2017.1.223 in order to get the export to Excel working, since we were using v2016.3.1028+SP1, where an exception occurred in the function toDataURL (fixed in new version according to https://github.com/telerik/kendo-ui-core/issues/2239). However, I still get the same error with the custom build that I am using. If I switch to use kendo.all.min.js, the export works. 

I saw an older forum post (http://www.telerik.com/forums/what-needs-to-be-included-in-a-custom-script-to-export-to-excel) where the answer was to put ooxml before excel and treelist at end, so I did that, but the same exception still occurs.

This is the list of components that I am using with the custom build:

jquery,angular,calendar,columnmenu,columnsorter,combobox,core,data,datepicker,dom,draganddrop,ooxml,excel,filtermenu,fx,grid,groupable,list,menu,numerictextbox,pager,popup,reorderable,resizeable,selectable,sortable,splitter,tabstrip,treeview,userevents,userview,view,treelist

Please advise how to get the export to Excel to work.

 

Pavlina
Telerik team
 answered on 01 Mar 2017
1 answer
107 views

When viewing a donut chart with long labels and the browser width is very narrow (like on mobile), the label is cutting off and pushing some of the other labels in the legend off the screen.

Any ideas why this is happening?

 

Alex Hajigeorgieva
Telerik team
 answered on 01 Mar 2017
3 answers
570 views

I have a custom (based on one of your examples) TimelineMonthView with a list of rooms down the left side.  The top rows are the dates, and under that are the times, which all just say 12:00 AM.  How can I completely hide this row of times?

Thanks!

Ivan Danchev
Telerik team
 answered on 01 Mar 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?