Telerik Forums
Kendo UI for jQuery Forum
1 answer
127 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
218 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.7K+ 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
176 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
578 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.4K+ 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
538 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
129 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
5 answers
531 views
I am getting some strange dots on Kendo grid pagination bar. How can i remove This?
Stefan
Telerik team
 answered on 12 Dec 2017
5 answers
891 views

Hello

I'm working with the KendoQRCode Widget that is working fine! I'm also using the exportPDF/SVG/Image functions that all do a great job! 

Now I would like to send several created QRCodes (defined in KendoQRCode Widgets) to a single PDF file, so the user can print them all by one PDF file (see attachment). I don't know if that is possible at all so I tried several things. The closest I came to do that:

...
var qrCode = $("#qrcode").getKendoQRCode(); // Existing QRCode Widget
var draw = kendo.drawing;
 var root = new draw.Group();
var code = qrCode.exportSVG({ paperSize: "A4", landscape: false }).done(function(data) {
  root.append(data);
});
 
draw.exportPDF(root, { paperSize: "A4", landscape: true }).done(function(data) {
    kendo.saveAs({
    dataURI: data,
    fileName: "qrcodes.pdf"
  });
 });
..

The exportImage function does not throw an error but the QRCode is not in the generated PDF file. Using the function exportSVG throws an error: "TypeError: e.transform is not a function. (In 'e.transform()', 'e.transform' is undefined)".

So I wonder how do I send several QRCodes coming from the KendoQRCode Widget(s) into a single PDF file (if possible)? The KendoQRCode Widgets are all displayed in the page and therefore programmatically accessible.

Regards

 

 

 

Tayger
Top achievements
Rank 1
Iron
Iron
 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
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?