Telerik Forums
Kendo UI for jQuery Forum
1 answer
262 views

I'm using the editor for AngularJS. The tools array is passed to the kendo-editor directive by the k-tools property.
I want to change the tools displayed in the toolbar at runtime. I tried to change the tools array and calling the editor.toolbar.refreshTools() method, but it didn't work.

Is it possible to change the value of the tools array passed and then call some method to re-render the toolbar?
Or is there some other way to change the displayed tools at runtime?

Ianko
Telerik team
 answered on 30 Aug 2017
1 answer
491 views

After I select an item from Dropdownlist and hit save, Grid is not displaying the description corresponding to the Id value returned from the service.

Here is the code snippet...

$("#grid").kendoGrid({
            dataSource: dataSource,
            pageable: false,
            columns: [
                {
                    field: "TransferTypeId",
                    title: "Transfer Type",
                    template: "#:TransferType#",
                    width: 150,
                    editor: function (container, options) {
                        $('<input data-bind="value:' + options.field + '" required/>')
                             .appendTo(container)
                             .kendoDropDownList({
                                 autoBind: true,
                                 dataTextField: "Value",
                                 dataValueField: "Key",
                                 valuePrimitive: true,
                                 dataSource: {
                                     transport: {
                                         read: {
                                             url: THIS_APP_PATH + "Api/Lookup/TransferType"
                                         }
                                     }
                                 }
                             });
                    }
                }] });

         What am I missing here?

         Appreciated for your help.

 

Stefan
Telerik team
 answered on 30 Aug 2017
1 answer
248 views

Hi there

I have a grid bound to a data source. It is an ajax grid. I am trying to use a Popup editor template for adding new items. In the template, I have a simple

regular HTML listbox.

@Html.ListBoxFor(x => x.DropdownListOptions, new SelectList(Model.DropdownListOptions), new {id = "dropdownlistBox", @class = "form-control", multiple= "multiple" })</div>

The postback returns all the data in the listbox if they are selected. If none are selected, the model binding field is null. (This is normal behaviour)

 

Now usually in ASP.NET MVC you just write a simple Jquery on postback to select all the listbox items before postback, like so:

$("#dropdownlistBox option").attr("selected", "selected");

This works just fine without using Telerik controls. However when I use this via Telerik Grid -> Popup -> Edit template. Even tho I visually see ALL fields being selected. The model field is still null.

I have confirmed that the values are not posted back from the browser using devtools.

I have even gone so far as to use jquery to fire off a grid event on .RequestStart('selectAllInListBox') like so:

 

var selectAllInListBox = function(e) {
        if (e.type === 'create') {
            debugger;
            var ddl = $('#dropdownlistBox option');
            if (ddl.length > 0)
            {
                var lastEl = e.sender._data[e.sender._data.length - 1];
                var optionsArray = ['test', 'test2', 'test3'];
                lastEl.DropdownListOptions = optionsArray;
            }
        }

 

Forcing the actual grid data source to update the values. By the time it gets back to my controller, it is still null.

 

Is there an easy way to do this? I have exhausted all options.

 

THANKS!

Chris

 

 

Stefan
Telerik team
 answered on 30 Aug 2017
1 answer
291 views

Hello,

I have a Kendo UI Grid that loads 5000+ records.  The data is local data on the page, and the grid is handling it ok, but we'd like to improve performance.  I'd like to try loading the local data in batches of 100 as the user scrolls down the grid results.  I've seen the examples, but have not seen very many examples of MVVM implementations and the best way to approach our situation.  Could someone recommend the way to get virtual scrolling working with row batches?

Thanks in advance!

Stefan
Telerik team
 answered on 30 Aug 2017
1 answer
115 views

Hi,

 

I am working on an angular4 application with Kendo UI widgets and trying to achieve tooltip in Kendo UI controls with the help of title attribute, is there any other way to get it done.

 

Thanks!!!

Veselin Tsvetanov
Telerik team
 answered on 30 Aug 2017
1 answer
1.1K+ views

 

Hello everyone,

I am trying to have a Server Paging for Kendo UI Grid. Here I am retrieving data from SharePoint, I am not getting any error and also grid is updated with data. But my paging shows 0 always and I do not have option to navigate. If i remove serverPaging: true then I can see all the data in the grid

<div kendo-grid="myGrid" options="mainGridOptions" class="k-alt ms-font-xs">
</div>

 

Here I provided the options for the grid.

01.$scope.mainGridOptions = {             
02.    dataSource: {                  
03.        type: "odata",
04.        transport: {
05.            parameterMap: function(data, type) {
06.                return kendo.data.transports["odata"].parameterMap.apply(this, arguments);
07.            },
08.            read: {
09.                dataType: "json",
10.                headers: {
11.                    "accept": "application/json; odata=verbose"
12.                },
13.                url: spSiteUrl
14.            }                       
15.        },                   
16.        serverPaging: true,                  
17.        schema: {                      
18.            total: "total"
19.        },
20.        pageSize: 10,                   
21.        serverSorting: true                                                
22.    },                         
23.    dataBound: function() {
24.        this.expandRow(this.tbody.find("tr.k-master-row").first());
25. 
26.        var data = this.dataSource.view();
27.        for (var i = 0; i < data.length; i++) {
28.            var uid = data[i].uid;
29.            var row = this.table.find("tr[data-uid='" + uid + "']");
30. 
31.            row.find(".k-grid-ViewDetails").contents().last()[0].textContent = data[i].Description;
32.        }
33.        $(".k-grid-ViewDetails").removeClass("k-button");
34.        $(".k-grid-ViewDetails").addClass("ms-font-m-plus ms-fontWeight-semibold align-right");
35.    },                                        
36.    sortable: true,
37.    pageable: true
38.    columns: [ .. ...
39.    ]
40.};

 

Please let me know what i am missing here to get the server pagination.

 

Stefan
Telerik team
 answered on 30 Aug 2017
1 answer
119 views

Hi,

I'm using Kendo UI widgets with Angular4. How can I make my application responsive. The flex wrap property does not take effect for any of the kendo widgets.

Thanks!!!

Ivan Zhekov
Telerik team
 answered on 30 Aug 2017
2 answers
3.2K+ views

Hi,

hope it's an easy one....

I have i DropDownList column in the details grid (hierarchy grid).
I want to get the row dataitem when a change event on the dropdownlist occurs.

How can achieve that?

Thanks

Roy
Top achievements
Rank 1
 answered on 29 Aug 2017
4 answers
692 views
I am having an issue with the Spreadsheet automatically changing text entered into a cell to a number. For example if you enter 0001 into a cell the value will be automatically converted to 1. I need to be able to preserve the text as is "0001". If there any way to do this?
Misho
Telerik team
 answered on 29 Aug 2017
1 answer
204 views
Here there, 
I attached a sample file that you can see, I got two items
only the second one shows the DropdownList selection properly, which is "Exemption A".
 However the first one, 
"Exemptions":["1","2"],  should have the "Exemption A" and "Exemption B" , but it is not. 


I am wondering if you can help me out. 


Thanks!
Veselin Tsvetanov
Telerik team
 answered on 29 Aug 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
ContextMenu
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
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?