Telerik Forums
Kendo UI for jQuery Forum
1 answer
275 views
Just to let you know that the documentation for kendo.init() seems to be missing at http://docs.kendoui.com/api/framework/kendo#init. even though it is referenced from http://docs.kendoui.com/getting-started/data-attribute-initialization.

Thanks,
Gary
Petyo
Telerik team
 answered on 03 May 2013
4 answers
115 views
Hello, I have the autoFilter set to false, but when I hit the enter key the search is not executed.

_searchDS = new kendo.data.DataSource({
        serverFiltering: true,
        transport: {
            read: function (options) {
                var filter = options.filter ? options.filter.filters[0].value : '';
                $.ajax({
                    url: _serviceConst + '/Search?q=' + filter,
                    type: 'GET',
                    success: function (result) {
                        console.log('result came back: ' + result.Object.length);
                        options.success(result);
                    },
                    error: function (xhr, sts, msg) {
 
                    }
                });
            }
        },
        schema: { data: "Object", errors: "Error" }
    });
    if (_searchMV == null) {
        _searchMV = $("#searchresults").kendoMobileListView({
            dataSource: _searchDS,
            template: $("#searchresults-template").text(),
            filterable: true,
            filterable: { autoFilter: false },
            click: function (e) {
            }
        }).data("kendoMobileListView");
    } else {
        _searchMV.setDataSource(_searchDS);
    }
I have also tried the read statement as:
read: {
                url: _serviceConst + '/Search',
                dataType: 'json'
            },
            parameterMap: function (options) {
                var filter = options.filter ? options.filter.filters[0].value : '';
                var parameters = {
                    q: filter
                }
                return parameters;
            }
Both do not execute the search on Enter key.
Thanks.
Barry
Top achievements
Rank 1
 answered on 03 May 2013
1 answer
488 views
I have the code below to bind data to my grid on the client.  The grid is bound to the data, but I am having trouble getting the paging working.  Here is my code"

$("#btnSearch").click(function () {           
            $.ajax({
                url: "/Booking/GetBookingLookupData",
                type: "POST",
                data: null,
                contentType: "application/json"
            }).success(function (data) {
                
                var d = data;
                var gdata = $("#grid").data("kendoGrid");

                var ds = new kendo.data.DataSource({

                    data: d,
                    pageSize: 10,                    
                    serverPaging: false

                });             
               
                ds.fetch(function () {    
                    ds.serverPaging = false;
                });               
                gdata.dataSource = ds;
                gdata.refresh();
               
            });

        });

All of the data gets bound to the datasource.  I see all of the rows if I do not make it pageable, but the paging is not working.  What am I missing?

Thanks,

Wayne
Wayne
Top achievements
Rank 1
 answered on 02 May 2013
1 answer
97 views
i woul dlike to know how you would apply this kendo UI stuff in Xamarin
SwanB
Top achievements
Rank 1
 answered on 02 May 2013
5 answers
413 views
Is there a way to make the slices in a pie chart explode onClick event?
Jim
Top achievements
Rank 1
 answered on 02 May 2013
1 answer
206 views
Hello

My grid has navigatable set to false, and editable set to true, I am controlling the cell navigation through my own code. The reasons I am doing this are
  • InCell editing - turn on cell editing when a cell is selected, data is saved when the user navigates away from the cell. 
  • Keyboard support - allow the user to navigate using Enter key (to go down the column) and Tab key (to go across the row) to immediately start editing the next cell. Also using the arrow keys to navigate.
  • Additional information in popup form - to complicate the matter even more, some cells may require additional information which the user can enter using a pop form triggered by the grid.save event. This took away the focus on the grid and therefore has to be programmatically restored back to the grid once the popup form is closed.
I would like to separate saving from grid navigation. Ie. the user can continue editing cells while the data source update itself in the background. One particular problem I ran into is after a cell content is saved, the grid reset its edit cell and lose focus of the current cell.

Is it possible for the grid to not control the navigation, and not control the edit mode toggleing? 
Petur Subev
Telerik team
 answered on 02 May 2013
6 answers
304 views
Hello.

When there is more than one chart on the same page the lines in the ( on all other charts) will be painted only in the width length of the first chart of the page.

As you can see in my attached print screen the first chart goes from 26 december to 24 of january, and is smaller than the charts in below, and the lines on the 2 graphs below is just painted until the width of the first chart. ( and i confirmed that there is values on the other charts until 24 January)

To overcome this i had put a dummy chart on a div, and set absolute position to outside of the screen, because if i set the div to hidden, all the other charts will not be painted.

Hope you can solve this bug.

Best regards
Pedro

Carel du Toit
Top achievements
Rank 1
 answered on 02 May 2013
5 answers
346 views
Hi everyone,

I have a Chart that receives data using a DataSource. Depending on a users selection in a drop down box the data should come from a different url. The structure of the data from those different url's is identically.

I tried to set the url in the drop downs change event using this syntax

$('#Chart').data('kendoChart').dataSource.transport.options.read.url = 'new url';
$('#Chart').data('kendoChart').dataSource.read();
Unfortunately this is not working and I hope you can help me.

Best regards,

Pascal
Atanas Korchev
Telerik team
 answered on 02 May 2013
1 answer
143 views
I have an issue with all of my bar charts that when I call refresh for window resizing etc, the entire series and data get duplicated.  This has been happening for a while with older versions of Kendo, but I had a fix which was to clear the series array and then add it back in prior to calling refresh, but as of the latest version this no longer works and is causing issues.

I have created a JSBin to demonstrate the issue, I have put a counter on the refresh event to prevent to many series from being created due to JSBin firing window resize events too many times, just resize the pane to see:

http://jsbin.com/izixay/7/edit

Basically calling refresh() chart bound to a grouped datasource causes duplicate series for every refresh.

Thank you,
Bobby Ross
Atanas Korchev
Telerik team
 answered on 02 May 2013
1 answer
82 views
When i drop a draggable element with a grid in it the footer controls (paging and row selection etc) are duplicated. They still work but there are two footer rows.
function panelDropped(e) {
        var droppedOrigParent = e.draggable.element.parent();
        droppedOrigParent.height(this.element.children(0).outerHeight());
        droppedOrigParent.prepend(this.element.children(0));
        e.draggable.element.show();
        this.element.prepend(e.draggable.element).height(e.draggable.element.outerHeight());
    }

    function panelDragStart(e) {
        e.currentTarget.hide();
        e.currentTarget.parent().height(e.currentTarget.outerHeight());
    }
$("#dropTarget1").kendoDropTarget({
        drop: panelDropped
    });
    $("#dropTarget2").kendoDropTarget({
        drop: panelDropped
    });
    $("#dropTarget3").kendoDropTarget({
        drop: panelDropped
    });

$("#SavedWorkDrag").kendoDraggable({
        container: $('#rightColumn'),
        hint: function () {
            return $('#SavedWorkDrag').clone();
        },
        dragstart: panelDragStart,
        dragend: function (e) {
            e.currentTarget.show();
        }
    });


I also am having a problem with another draggable element which has a radiobuttongroup in it. When it is dropped the selection is removed. This has something to do with the jquery clone() function being used as the hint. thanks!
Atanas Korchev
Telerik team
 answered on 02 May 2013
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?