Telerik Forums
Kendo UI for jQuery Forum
6 answers
376 views
Sample

In previous the previous version of Kendo I was able to dynamically update the contents of a multiselect list by calling setDataSource with a modified list. After upgrading to 2015.1.318, doing so results in copies of the currently selected item(s) being added to the visible list. The actual selections returned from .value() is still correct, one of each, but what's being rendered is not.

From what I can see in the source, a good bit of the multiselect implementation was redone with this release. I'm assuming this was not the intended behavior, but I was hoping there was maybe a workaround for now until the issue is resolved?
Neli
Telerik team
 answered on 02 Feb 2021
2 answers
79 views

HI, 

I have a strange problem.
I create a grid with data from AJAX.

I set the schema ID in the list of columns in position [0].
I also give it a HIDDEN: TRUE value to keep it hidden.

The problem is that for some reason the actual column of the ID is at the end of the columns and not at the beginning (*not* in position [0]).

I do not understand why this is happening.

can you please help me?

 

tnks!

Aleksandar
Telerik team
 answered on 02 Feb 2021
7 answers
282 views
Is there a way to change the default format from HEX to RGB? I know that if you use the opacity you get the display value as RGBA but we need not to support opacity but the display format should be RGB.
Aleksandar
Telerik team
 answered on 02 Feb 2021
1 answer
635 views

Hi there, I am posting here to see if the community can to help me.

I am facing an issue where the PDF Export is, apparently, not working properly neither with MS Edge (88.0.705.53) nor on Chrome ( 88.0.4324.104 ), but is working fine on Firefox (84.0.1). When I try to generate the PDF with pictures that are stored on AWS S3 it throws CORS' errors to the Edge/Chrome console as you can see by the attached picture. When I generate the PDF from Firefox it works like charm.

 

 

I have read the AWS S3 CORS documentation (https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/cors.html), I have read the Mozilla documentation (Cross-Origin Resource Sharing (CORS) - HTTP | MDN (mozilla.org)), I have adjusted  my CORS and nothing. 

I have opened a ticket to the support and no one has being able to guide me or fix the issue that happens only on Edge/Chrome.

My CORS configuration, for this test purpose, is like this:

[
    {
        "AllowedHeaders": [
            "*", 
            "Authorization"
        ],
        "AllowedMethods": [
            "HEAD",
            "GET",
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": [
            "ETag",
            "x-amz-meta-custom-header",
            "x-amz-server-side-encryption",
            "x-amz-request-id",
            "x-amz-id-2",
            "x-amz-delete-marker",
            "Accept-Ranges",
            "Content-Range",
            "Content-Encoding",
            "Content-Length",
            "Content-Type",
            "Content-Language",
            "Expires",
            "Date",
            "Server",
            "Access-Control-Allow-Origin",
            "Last-Modified",
            "Pragma",
            "XMLHttpRequest",
            "Server",
            "Cache-Control",
            "Authorization"
        ],
        "MaxAgeSeconds": 3000
    }
]

I created a DOJO (https://dojo.telerik.com/iMITUZuY/2) that proves that it works on Firefox but does not work on Edge/Chrome. 

So, I would be grateful if anyone can help me solving this.

Dimitar
Telerik team
 answered on 02 Feb 2021
3 answers
151 views

Hi,

i found that when i click the export pdf button on scheduler, the alignment of the calendar will run, as such the all day row and the remaining rows will misalign. This happens to the demos at this link as well :

https://demos.telerik.com/kendo-ui/scheduler/pdf-export

 

 

Ivan Danchev
Telerik team
 answered on 01 Feb 2021
5 answers
76 views

Hi,

how can i print the weekly view that has its event being expanded? 

because the current pdf function will not show the full title of the event if the event title is too long.

 

Martin
Telerik team
 answered on 01 Feb 2021
5 answers
123 views

Hello. I am looking forward to use Kendo UI Scatter Chart. However I want to clarify customization question to understand if it possible to change (setup) Kendo UI Scatter chart to meet my requirements.

[Q] Does Kendo UI Scatter Chart support zooming by rectangle? (when you draw a rectangle and all that is in this rectangle will be zoomed)

 

Tsvetomir
Telerik team
 answered on 01 Feb 2021
4 answers
348 views

In the example for custom editing at https://demos.telerik.com/kendo-ui/grid/editing-custom, the grid includes the field Category which includes a dropdown list which opens for editing and which is populated by a linked Category table.  The code for this shows as follows:

schema: {
                    model: {
                        id: "ProductID",
                        fields: {
                        ProductID: { editable: false, nullable: true },
                        ProductName: { validation: { required: true } },
                        Category: { defaultValue: { CategoryID: 1, CategoryName: "Beverages"} },
                        UnitPrice: { type: "number", validation: { required: true, min: 1} }
                        }
                    }

and 

columns: [
                    { field:"ProductName",title:"Product Name" },
                    { field: "Category", title: "Category", width: "180px", editor: categoryDropDownEditor, template: "#=Category.CategoryName#" },
...

 

If instead of a linked table, I wanted to use an enum, how could I achieve the same functionality.  Here's what the enum might look like defined in C#:

public enum Category
    {
        Beverages,
        Condiments,
        Meat,
        etc
    }

 

Any help greatly appreciated.

 

 

Roger
Top achievements
Rank 2
Veteran
 answered on 01 Feb 2021
1 answer
4.7K+ views
Is there a way to trigger the loading/wait indicator on a grid? I'm doing some of my own ajax calls from dropdowns and would like to notify the user that something is happening momentarily.
Dimo
Telerik team
 answered on 01 Feb 2021
15 answers
5.0K+ views

I ordered the source, but I can not do it for 'value'.

I use the multiselect with MVVM.

 

 

My html code:

<select id="doc" data-role="multiselect"
data-value-primitive="true"
data-text-field="name"
data-value-field="id"
data-bind="value: valueDoc,
source: sourceDoc"></select>

 

My js code:

vm = kendo.observable({

sourceDoc: new kendo.data.DataSource({
            data: [],
            sort: { field: "name", dir: "asc" }
        })
});

 

The value is not ordered

Andrew
Top achievements
Rank 1
Iron
Iron
 answered on 01 Feb 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?