Telerik Forums
Kendo UI for Angular Forum
2 answers
2.4K+ views

Hi Team,

I created the multiselect dropdown within the form.

I have save button while clicking on that I have to get  selected text with comma separated from multiselect dropdown.

Please refer code in below plnkr link, this code contains to get the selected value, here I want how to get selected text?

https://next.plnkr.co/edit/Z1wSsHjhWa9BelfV

Please help me on this.

 

Thanks.

 

 

Sankar
Top achievements
Rank 1
 answered on 21 Jun 2018
2 answers
154 views

Is there a way to define a no-record template for a kendo chart similiar to nesting a <ng-template> tag with the kendoGridNoRecordsTemplate directive inside <kendo-grid>?

Thanks!

Svet
Telerik team
 answered on 20 Jun 2018
4 answers
1.9K+ views

Hello, I need an autocomplete where i can select multiple values.

 

Chau
Top achievements
Rank 1
 answered on 19 Jun 2018
2 answers
357 views

Our team has been using the Kendo UI for jQuery for some time and are now looking at Angular.  With the release of Angular 6 I see mentions of the Material component library everywhere.  So I'm wondering how the Kendo UI for Angular library relates to Angular Material.  Are these separate component libraries? 

So do I understand correctly, that if using the Kendo UI for Angular library, I can still use a Material theme, but the Material components themselves are different animals, and that the Kendo components are custom Angular components and dont simply wrap the Material components?

 

BitShift
Top achievements
Rank 1
Veteran
 answered on 19 Jun 2018
4 answers
1.0K+ views

I'm currently looking into different ways that I could allow the user's print to pdf give an auto generated file name based on parameters related to the contents of the print which will change based on the query that led them to that point.

I've noticed that there's not much helpful guidance for attempting to modify inline event handlers in Javascript, interpolations cause failure, most advice recommends an attr. prefix which seems to only be relevant to a particular use example, and some people have used escaped quotes but that hasn't worked for me either.

At this point I've decided to bring the PDFExportComponent directly into my component and see if there's anything I can do to pull this into my component and wrap it in my own custom directive. 

Do you have any advice on how I can translate the pdf.saveAs() from an inline directive to a component method or function?

 

Svet
Telerik team
 answered on 15 Jun 2018
2 answers
711 views

Hi Team,

I have a requirement with fixed width (300px) - Treeview with 4 levels.

When I expand fourth level it has the node name with 100 chars maximum. so when size is not fit with tree view width, Node name should be wrapped and display in two lines in the treeview.

Please refer the screen shot, end of 4th level node some text missed

Note : I don't want horizontal scroll bar when it has big text and Node name wrapped proper alignment.

Thanks

Sankar
Top achievements
Rank 1
 answered on 15 Jun 2018
2 answers
823 views

Hello,

is there a way to hide the vertical lines in this chart type. I need only this horizontal lines in this chart-type

 

thanks for your work

Thomas
Top achievements
Rank 1
 answered on 13 Jun 2018
1 answer
165 views

Hi, 

is it possible to use the kendo ui treeview with angular 2 and drag and drop functionality?

 

 

Georgi Krustev
Telerik team
 answered on 12 Jun 2018
2 answers
2.3K+ views

Hi,

I've tried updating the library @progress/kendo-angular-popup to the currently newest version V2.4.0, but it seems to be broken.

When I try to build my Angular-6-App Ahead of Time (AOT), I get the following error a couple of times (once per module):

Module not found: Error: Can't resolve '../../../../node_modules/@progress/kendo-angular-buttons/node_modules/@progress/kendo-angular-popup/dist/es2015/index.ngfactory'

2.3.0 was working fine.

Can anybody confirm this behavior?

All other packages are up-to-date.

The funny thing is, I can ng serve this version and also use it.

The only thing I can't is build AOT.

Thanks & have a good weekend,

Felix

felix.wagner
Top achievements
Rank 1
 answered on 12 Jun 2018
6 answers
3.0K+ views

I am using a kendo grid for user input and for each parameter I have a max and min value. I managed to implement a validation so that the user cannot input a value outside the limits and if a value outside the range is entered there is a text shown “Value must be between <max> and <min>”. This was done via a validation function.

Now to be more flexible with number of decimals, I added a number editor to the input column. After this it is still not possible for the user to enter a value outside the range, which is good, but the text is not showing. Why is this and what can I do to get this text back although I am using a number editor?

 

    this.myDataSource = new kendo.data.DataSource({
        autoSync: true,
        data: [
            { label: "Parameter1",  ref: 89.82, min: 60,    max: 100,   isInput: true },
            { label: "Parameter2",  ref: 9.18,  min: 8,     max: 20,    isInput: false }
        ],
        schema: {
            model: {
                fields: {
                    label: { type: "string", editable: false },
                    ref: {
                        validation: {
                            required: true,
 
                            validateFunction: function (isInput) {
                                return OfflinePredictionController.validateInput("#myGrid", isInput);
                            }
                        }
                    },
                    min: { type: "number", editable: false },
                    max: { type: "number", editable: false },
                    isInput: { type: "boolean", editable: false }
                }
            }
        },
    });
     
 
    $("#myGrid").kendoGrid({
        dataSource: this.myDataSource,
        scrollable: false,
        editable: true,
        columns: [
            {
                field: "label",
                title: "Parameter",
            },
            {
                field: "ref",
                title: "Reference",
                editor: numberEditor,
                width: "140px",
            },
            {
                hidden: true,
                field: "min",
                width: "30px"
            },
            {
                hidden: true,
                field: "max",
                width: "30px"
            },
            {
                hidden: true,
                field: "isInput",
                width: "40px"
            }
        ]
    });
 
 
static validateInput(gridName: string, input: any) {
 
    var minIndex = 0;
    var maxIndex = 0;
    var grid = $(gridName).data("kendoGrid");
 
    for (var columnIndex = 0; columnIndex < grid.columns.length; columnIndex++) {
        if (grid.columns[columnIndex].field == "min") {
            minIndex = columnIndex;
        }
        else if (grid.columns[columnIndex].field == "max") {
            maxIndex = columnIndex;
        }
    }
 
    var reference = $(input).val();
    var min = parseFloat($(input).closest("tr").find("td:eq(" + minIndex + ")").text());
    var max = parseFloat($(input).closest("tr").find("td:eq(" + maxIndex + ")").text());
 
    if ((reference < min) || (reference > max)) {
        input.attr("data-validateFunction-msg", "Value must be between " + min + " and " + max);
        return false;
    }
    return true;         
}

 

function numberEditor(container, options) {
    $('<input name="' + options.field + '"/>').appendTo(container).kendoNumericTextBox({
            format: "{0:n4}",
            decimals: 4,
            step: 0.1,
    });
}

 

 

 

 

 

 

Jim
Top achievements
Rank 1
 answered on 08 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?