Telerik Forums
Kendo UI for jQuery Forum
1 answer
90 views

Hello, I'm trying to add an kendo AutoComplete into a kendo DropDownList (and a lot more, but for simplification I'll only talk about AutoComplete since everything else I want to do works). I've tried straight up injecting the HTML and I've tried putting it in a headerTemplate. Some kendo components work this way, like adding another DropDownList. While others like AutoComplete do not. Some (MulitSelect) behave very slowly, but still work. I made a small example of this in a dojo http://dojo.telerik.com/ovEJe/4 .

Could you help me out with a solution to get AutoComplete to work in a DropDownList? Or point me to some way to use a kendo DropDown that allows the developer to put whatever they want in it without having to use a DropDownList, pass it no data, and use headerTemplate or JQuery to inject custom HTML.

Thanks

Nencho
Telerik team
 answered on 07 Mar 2017
1 answer
184 views

Hi,

From the Kendo documentation look at this dojo which demonstrates 100% height, and open in IE with a window height small enough to generate the grid scroll bar.  You get 2 vertical scroll bars when you only get one in other browsers, e.g. Edge.

http://dojo.telerik.com/iHugEV

Is something wrong?

 

--

Scott

Dimo
Telerik team
 answered on 07 Mar 2017
1 answer
507 views
We need to remove completely the tooltip on NumericTextBox. We tried to remove it from the element, but when the user changes the value, the new value becomes the tooltip.
Magdalena
Telerik team
 answered on 07 Mar 2017
3 answers
698 views

I have specific fields that users can customize their events with, if they add these fields, they dynamically show up in the event creation/edit popup... however, I am needing kendo autocomplete widgets for any lookup fields. What I am doing now is grabbing my event editor template, getting the html string of it, appending each field the user specified to it, thus dynamically adding fields. This places the items in the editor...  however, I try to instantiate a kendo autocomplete in the scheduler edit event as well as in the function that adds the html dynamically, and it doesn't work. All I get is a white text box instead of a kendo auto complete box and it has no data in it or any events bound to it. It is as if it simply cannot find these dynamically added elements in the editor html, even though a print of the html to the console shows they are very much there.

 

If I add an input element to my editor template in the template script, THEN instantiate a kendo autocomplete in the scheduler edit event, it will turn the input into an auto complete with all its events bound and everything and work fine, it is just it cannot properly set the dynamic html elements even though they should be in the editor template....

 

I am wondering if anyone has an idea on how to setup kendo widgets for dynamic elements in the event create/edit window, specifically an autocomplete box. My code creating dynamic elements is as follows:

 

function dynamicEditorTemplateLoad(fieldMap){
                    /*Dynamically creating editor fields -> Title, Owner, Start, End, Invite, and Descrip I think should all always be included*/
                    var editorTemplateString = $('#editor_template').html();
                    console.log(fieldMap);
                    var extraString = '';
                    var dynamicComponent = '';
                    var optString = '';
                    for(var i = 0; i < fieldMap.length; i++){
                    if(fieldMap[i].fieldType == 'PICKLIST'){
                            extraString = '<div class="k-edit-label"><label for="'+fieldMap[i].fieldName+'Input">'+fieldMap[i].fieldLabel+'</label></div>\n<div data-container-for="'+fieldMap[i].fieldName+'Input" class="k-edit-field" id="'+fieldMap[i].fieldName+'Container">\n';
                            dynamicComponent = '\t<select id="'+fieldMap[i].fieldName+'Input" type="text" data-role="dropdownlist">\n';
                            optString = '';
                            for(var k = 0; k < fieldMap[i].picklistVals.length; k++){
                                if(k == 0){
                                optString += '\t\t<option value="'+fieldMap[i].picklistVals[k]+'" selected>'+fieldMap[i].picklistVals[k]+'</option>\n';   
                                } else{
                                optString += '\t\t<option value="'+fieldMap[i].picklistVals[k]+'">'+fieldMap[i].picklistVals[k]+'</option>\n';   
                            }
                            }
                            optString += '\t</select>\n</div>\n\n';
                            dynamicComponent = dynamicComponent + optString;
                    }
                        if(fieldMap[i].fieldType == 'STRING'){
                            extraString = '<div class="k-edit-label"><label for="'+fieldMap[i].fieldName+'Input">'+fieldMap[i].fieldLabel+'</label></div>\n<div data-container-for="'+fieldMap[i].fieldName+'Input" class="k-edit-field" id="'+fieldMap[i].fieldName+'Container">\n';
                        dynamicComponent = '\t<input id="'+fieldMap[i].fieldName+'Input" type="text" class="k-input k-textbox"/>\n</div>\n\n';
                    }
                        if(fieldMap[i].fieldType == 'REFERENCE'){
                      extraString = '<div class="k-edit-label"><label for="'+fieldMap[i].fieldName+'Input">'+fieldMap[i].fieldLabel+'</label></div>\n<div data-container-for="'+fieldMap[i].fieldName+'Input" class="k-edit-field" id="'+fieldMap[i].fieldName+'Container">\n';
                            dynamicComponent = '\t<select id="'+fieldMap[i].fieldName+'Input" type="text" data-role="dropdownlist" style="width: 120px;">\n';
                            optString = '';
                            for(var k = 0; k < fieldMap[i].referenceList.length; k++){
                                if(k == 0){
                                optString += '\t\t<option value="'+fieldMap[i].referenceList[k]+'" selected>'+fieldMap[i].referenceList[k]+'</option>\n';   
                                } else{
                                optString += '\t\t<option value="'+fieldMap[i].referenceList[k]+'">'+fieldMap[i].referenceList[k]+'</option>\n';   
                            }
                            }
                            optString += '\t</select>\n';
                            var inputString = '\t<input id="'+fieldMap[i].fieldName+'SearchInput" style="width: 275px;"/>\n</div>\n\n';
                            dynamicComponent = dynamicComponent + optString + inputString;
                            
                        }
                    
                    extraString += dynamicComponent;
                        //editorTemplateString += extraString;
                    $('#editor_template').append(extraString);
                        extraString = '';
                        dynamicComponent = '';
                    }
                    console.log($('#editor_template').html());
                }

 

I call this function right at the beginning of my $(document).ready() function, so it adds these elements to the editor template before the scheduler or its datasource are even created, yet it is still not properly initializing the autocomplete widgets.

Vladimir Iliev
Telerik team
 answered on 07 Mar 2017
1 answer
181 views

is there a limitation on the amount of data that can be exported using spreadSheet.saveAsExcel() ? I have a spreadsheet with 100 columns and 3500 rows. When I run this method the browser crashes? I am using Chrome Version 56.0.2924.87 (64-bit).

Thanks

Joana
Telerik team
 answered on 06 Mar 2017
2 answers
163 views

I have a map that has a concentration of markers on it, and the tooltips run together and sometimes don't disappear on their own. Is there a way to capture the tooltip event and hide all other tooltips when a new one is shown? 

Thanks! 

Jason
Top achievements
Rank 1
 answered on 06 Mar 2017
9 answers
659 views
Hi everybody, congrats on the new beta!
I'm trying to figure out if it's possible to cancel a tab selection, so when a user clicks a tab, if say the data is invalid, i force the user to remain in the same tab. Is this achievable in the current version? If not, is it planned for a future release?

Thanks
Andrés
Raul
Top achievements
Rank 1
 answered on 06 Mar 2017
2 answers
372 views

I want to either throw a popup saying "You are not the event owner!" or get rid of the delete 'x' icon altogether if a user is not the owner of the event and tries to delete it. Right now, I have an if statement wrapping the content of my delete operation in my scheduler dataSource, so if they are not the user, it does not go in and delete the event in the Database and pops open the window saying they can't do that... However, kendo goes ahead and removes the event from the calendar anyway.......... If you refresh, the event comes back because it wasn't deleted from database.

 

How do I prevent kendo from removing an event from the calendar if the delete key was pressed while the user was not the event owner? Or how can I hide the delete option from any user that is not the event owner?

Tyler
Top achievements
Rank 1
 answered on 06 Mar 2017
10 answers
412 views
How can you stretch the height for the resources so that the space is equally filled? 
Dimitar
Telerik team
 answered on 06 Mar 2017
3 answers
253 views

Hi,

 

I am trying to install a multi select editor in my grid. I am following this tutorial: http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/use-multiselect-as-custom-editor

 

I changed the implementation so that the widget takes and gives a string of values separated by a comma, rather than an array of strings. This is because the data of the column needing the multi-select editor comes in the form of a comma-separated list of 'Codes' that I then have to map to a human-friendly string representation to use in the muliselect widget

 

Now I have a bug where, if I type something into the input box, ie: "Rea", and leave the cell without selecting a value, and then try to edit another row, the editor won't clear out my previous input. The input field is blank, but behaves as if the previous "Rea" is still present.

How do i clear out the editor's value each time?

Boyan Dimitrov
Telerik team
 answered on 06 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?