Telerik Forums
Kendo UI for jQuery Forum
6 answers
994 views
When tabbing to the editor from another input field, the focus first goes to the buttons (bold, italic, etc) instead of giving focus to the actual editable area.

Is there a workaround to this?
Ivan Danchev
Telerik team
 answered on 13 Dec 2017
1 answer
3.1K+ views

I have a grid with columns name, status and updatedAt. Status column as editable and has dropdown values. When a user update status value, I have called the rest api for doing some business logic and returns response with an updated date. I want to update that date in updatedAt column.

Please help me to achieve this.

Preslav
Telerik team
 answered on 13 Dec 2017
1 answer
129 views
Hi,
we have a complex type like below.
Item1
Item2
      SubItem1
      SubItem2
Item3
I need to to bind this complex to Kendo spreadsheet for jquery and need the columns like this.
Item1 subItem1 SubItem2 Items
Below is my code

 sheet.setDataSource(dataSource, [
                                                   { field: "Item1", title: "Item1" },
                                                   { field: "Item2.SubItem1", title: "SubItem1" },
                                                   { field: "Item2.SubItem3", title: "SubItem3" },
                                                  { field: "Item3", title: "Item3" }
            ]);

The above code is not working ..
Please help me.
Veselin Tsvetanov
Telerik team
 answered on 13 Dec 2017
3 answers
222 views

When a chart has a title it is positioned a long way outside of the containing div on which the chart is created.

https://dojo.telerik.com/izARUQ

Stefan
Telerik team
 answered on 13 Dec 2017
9 answers
1.8K+ views
I've been building an an MVC 4.5 app in VS 2013 and checking it into my Visual Studio Online account.  I then set it up for automatic Windows Azure deployment after it builds.

This was all working fine until I had to create a controller used for Ajax calls to a Kendo ListView MVC Wrapper.

Here's the HTML:

@(Html.Kendo().ListView(Model.Top100ResortList)
                    .Name("Top100Resort")
                    .TagName("ul")
                    .ClientTemplateId("top100template")
                    .DataSource(ds =>
                    {
                        ds.Read(read => read.Action("_ResortCourses_Read", "Courses"));
                        ds.PageSize(10);
                    })
                    .Pageable()
                )

Here's the controller code initially.  It does not have the Kendo namespace in the method itself.  The namespace is in the class usings:

using Kendo.Mvc.UI;
public virtual ActionResult _ResortCourses_Read([DataSourceRequest] DataSourceRequest request)
{
    var json = _coursesService.GetTop100Courses(Top100Types.GolfWeekResort).ToDataSourceResult(request);

    return Json(json);
}

Here's the controller code after I saw the build fail, so I removed the class using, and added it directly to the method.  Everything still works, but the build still fails in VS Online.

public virtual ActionResult _ResortCourses_Read([Kendo.Mvc.UI.DataSourceRequest] Kendo.Mvc.UI.DataSourceRequest request)
{
    var json = _coursesService.GetTop100Courses(Top100Types.GolfWeekResort).ToDataSourceResult(request);

    return Json(json);
}

Any idea why my builds are failing and why VS Online tells me it cannot find the type or namespace for Kendo?

Petya
Telerik team
 answered on 12 Dec 2017
3 answers
181 views

I want to make a simple example where dragging the slider updates the pie chart.

How?

I don't understand how to makethe graph data depend on the value of the slider.

 

        var viewModel = kendo.observable({
            turnips: 35,
            coconuts: function() {
                data: [{
                    category: "Big",
                    value: this.get("turnips"),
                    color: "#9de219"
                }, {
                    category: "Small",
                    value: 100 - 10 - this.get("turnips"),
                    color: "#90cc38"
                }, {
                    category: "As big as your head",
                    value: 10,
                    color: "#068c35"
                }]
            }
        });

        $(document).ready(function () {
            var slider = $("#slider").kendoSlider({
                min: 30,
                max: 60,
                smallStep: 1,
                largeStep: 5,
                showButtons: false
            }).data("kendoSlider");

            $("#elt1").kendoChart({
                title: {
                    position: "bottom",
                    text: "Coconuts"
                },
                legend: {
                    visible: false
                },
                chartArea: {
                    background: ""
                },
                seriesDefaults: {
                    labels: {
                        visible: true,
                        background: "transparent",
                        template: "#= category #: \n #= value#%"
                    }
                },
                series: [{
                    type: "pie",
                    startAngle: 90,
                    data: viewModel.coconuts
                }],
                tooltip: {
                    visible: true,
                    format: "{0}%"
                }
            });


            kendo.bind($('#view'), viewModel);
        });

Dimitar
Telerik team
 answered on 12 Dec 2017
3 answers
583 views

Hi, I have a problem removing filter when i remove on filter item or all items with "X", my multiselect keep filtering and i don't have all my original datasource data. Here's my definition of my multiselect control :

 

 $("#searchFilter").kendoMultiSelect({
            placeholder: "Catégories de biens et services...",
            filter : "contains",
            dataTextField: "Name",
            dataValueField: "ServiceID",
            height: 400,
            dataSource: {
                data: @(New HtmlString(Json.Encode(Model.ServicesFilter))),
                group: { field: "ParentBreadcrumb" },
                },           
            change: function(){
                PMEL_SupplierSearch.triggerSearch();
            },




            filtering: function(ev){
                if(ev.filter) {     
                    var filterValue = ev.filter.value;                    
                    ev.preventDefault();
                    this.dataSource.filter({
                        logic: "or",
                        filters: [
                          {
                              field: "Name",
                              operator: "contains",
                              value: filterValue
                          },
                          {
                              field: "Keywords",
                              operator: "contains",
                              value: filterValue
                          }
                        ]
                    });
                    }                    
                }
            }


        });

Nencho
Telerik team
 answered on 12 Dec 2017
2 answers
7.5K+ views
Hi,

I am a newbie to Kendo so apologise in advance if my question is missing the bleeding obvious.

I have a custom command button in my grid which I have bound to a function (called uploadFile). My ultimate intention is to allow the user to click a button to bring up a modal window which will allow them to upload a file to the server. I am able to get the Upload button displaying and firing properly. However, I cannot find any information on how to derive the ID of the row from which the button was clicked.

Code is:

$(document).ready( function () {
     
     var crudServiceBaseUrl = "StudentProxyKendo.cfc?method=",
         
        dataSourcePEP = new kendo.data.DataSource({
            transport: {
                read:  {
                    url: crudServiceBaseUrl + "getPEP&studentID=" + studentID + "&laId=" + laId + "&schoolID=" + schoolID,
                    dataType: "json"
                },
                update: {
                    url: crudServiceBaseUrl + "updatePEP",
                    dataType: "json",
                    type: "POST"
                },
                destroy: {
                    url: crudServiceBaseUrl + "deletePEP",
                    dataType: "json",
                    type: "POST"
                },
                create: {
                    url: crudServiceBaseUrl + "addPEP",
                    dataType: "json",
                    type: "POST"
                },
                Upload: {
                    url: crudServiceBaseUrl + "uploadPEP",
                    dataType: "json",
                    type: "POST"
                },
                parameterMap: function(options, operation) {
                    if (operation !== "read" && options.models) {
                        return {models: kendo.stringify(options.models)};
                    }
                }
            },
            batch: true,
            pageSize: 10,
            schema: {
                model: {
                    id: "pepid",
                    fields: {
                        pepid: { editable: false, nullable: true },
                        start_date: { type: "date" },
                        comments: { type: "string" },
                        documentsfilenames: { editable: false, nullable: true },
                        contributorslist: { type: "string" }
                    }
                }
            }
        });
         
         
        $("#PEPGrid").kendoGrid({
            dataSource: dataSourcePEP,
            pageable: true,
            height: 150,
            toolbar: ["create"],
            columns: [
                { field:"start_date", title: "Start Date", width: "140px" },
                { field: "comments", title:"Comments", width: "140px" },
                { field: "documentsfilenames", title:"Document File Names", width: "140px" },
                { field: "contributorslist", title:"Contributors List", width: "100px" },
                { command: { text: "Upload", click: uploadFile }, title: " ", width: "60px" },
                { command: ["edit", "destroy"], title: " ", width: "110px" }],
            editable: "popup",
            create: true,
            update: true,
            destroy: true
        });
 
 
}); // end ready function
 
function uploadFile(e){
    console.log(e)
}

Can anyone point me in the right direction? Many thanks in advance for taking the time to look at this.

Tom
Preslav
Telerik team
 answered on 12 Dec 2017
1 answer
546 views

Is there a way I can bind to the click event of the control? Doing the following somewhat works, but requires a double click. It seems the first click is being silenced or aborted by the control internally.

   this.$el.find(".textbox-debit").click(function() {

                    console.log("hi!");
                });

                this.numDebit = this.$el.find(".textbox-debit").kendoNumericTextBox({
                    format: "c"
                }).data("kendoNumericTextBox");

 

Thank you!

Georgi
Telerik team
 answered on 12 Dec 2017
1 answer
132 views

Hi there,

as in this Dojo I can't figure out, how to dynamically change the max value. Could that RangeError be caused by a bug? I expected k-rebind as it would usually work.

Can anyone help with this?

Stefan
Telerik team
 answered on 12 Dec 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?