Telerik Forums
Kendo UI for jQuery Forum
1 answer
620 views
I have a databound event that is used on grid but also on a treelist (at first it was grid). Is there a way to determine the type of the e.sender?
Martin
Telerik team
 answered on 31 Jan 2022
1 answer
552 views

Which event can I hook into in order to run custom code before a KendoGrid FilterMenu opens every time?

There is an event that runs once before it opens (filterMenuInit) and an event that runs every time after the menu opens (filterMenuOpen), but I need the third kind, which runs every time before opening.

Nikolay
Telerik team
 answered on 31 Jan 2022
1 answer
167 views

 

Hi, I want to send data for json format. 

 

This is my data format.

data = {models: Array(1)}, type = "update....

I want to send data like this.


data = {foo: 'bar', locale: 'en', name: 'test', description: '1', ...}

 

This data is same as {models:Array(1)} 's array.

 

My code is here. I used parameterMap to data format for change.

                parameterMap: function (data, type) {
                     if (type === "update") {
                        debugger;
                        return kendo.stringify(data.models[0]);
                    }
                    return kendo.stringify(data);
                }


But when sending data, DataSource.transport.update send another data like this.

 


        var users = new kendo.data.DataSource({
            transport: {
                update: {
                    contentType: contentType,
                    url: function (options) {

                        return base_api_url_manage_users + "info/" + options.models[0].userId ;
                    },
                    type: "PUT",
                },


They send this format.

data = {models: Array(1)}, type = "update....

 

I want to send data form as Objcet, not as Object in Array. How can I change this data format???

Please help me.

 

Thank you.

Ianko
Telerik team
 answered on 31 Jan 2022
1 answer
295 views

I have been working on the FileManager control with Kendo using jQuery & it feels very slow in initial loading when the file count increases to 5000+. I tried searching for custom paging, lazy loading, etc. for FileManager but no help. Do anyone knows how to achieve it? Any help will be highly appreciated.

Thanks.

Martin
Telerik team
 answered on 31 Jan 2022
2 answers
937 views

Hello,

I'm experiencing the following error, when I try to use "fromFile" function to load the data for a spreadsheet component from an excel file:

"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."

The problem seems to be in the version of JSZip library, which the component uses. I manually changed the version of  "JSZip" script to 2.6 and it works fine, but I want to know how to do it using the latest version of the spreadsheet component and the latest version of "JSZip". I used the same file in the demo page in your site and it works fine there. The version of kendo is "2020.1.406".

Kezar
Top achievements
Rank 1
Iron
 answered on 28 Jan 2022
1 answer
167 views

How to How to use  it as Json data type or local databing in kendoPivotGridV2 datasource

Is there an example that you can refer to?

Angel Petrov
Telerik team
 answered on 28 Jan 2022
1 answer
380 views

Hi, we have an issue with the custom download and the new version 2022.1.119.

https://www.telerik.com/download/custom-download

When we hit "select all" on "framework" and "web", and we copy-paste the generated scripts, 4 of them have errors, and nothing works.

Look at this on the dojo

https://dojo.telerik.com/@foxontherock/OyuziJuc

Errors: 
Uncaught TypeError: Cannot read properties of undefined (reading 'renderCheckBox')
Uncaught TypeError: Cannot read properties of undefined (reading 'renderButton')
Uncaught TypeError: Cannot read properties of undefined (reading 'renderRadioButton')
Uncaught TypeError: Cannot read properties of undefined (reading 'common')

Martin
Telerik team
 answered on 28 Jan 2022
1 answer
116 views
Hi All, Looking for some information.

I now have a site up and running using KendoUI and I am getting reports about problems with different browsers. I do my initial testing using Crome and IE9, then I try to test on different version of IE and it's browser/document modes and compatibility view, plus firefox....
Then add in mobile devices and it get rather difficult to manage. Plus have to get all the hardware/software configurations to test with.

Right now I am working on a problem with IE8 in compatibility view (or is it not in compatibility view, because I have to rely on user's reports) where the KundoUI Datepicker is not working.

My question is: What tool(s)/methods are being used to test a page/site on the various browsers and variants of browsers?
I found one site (crossbrowsertesting.com) that will take screen shots using a number of different browsers. But I need more then that. For example: I need to select a date from a date picker drop-down and verify that it's work on all configurations.


Any help?

George


Elena
Telerik team
 updated answer on 27 Jan 2022
1 answer
782 views
Hi i needed some help as my kendo picker not able to clear the error message when the date format is correct


        $(function () {
     
                 var viewModel = kendo.observable({
                     selectedDate: new Date(),
     
                 });
                 kendo.bind($("#change-date-collection1"), viewModel)
     
                 $("#change-date-collection1").kendoValidator({
                     rules: {
                         // Implement your custom date validation.
                         dateValidation: function (input, params) {
     
                             if (input.is("[name='date']") && input.val() != "") {
                                 
                                 var date = kendo.parseDate(input.val(), "dd/MM/yyyy");
                                 if (date) {
                                     return true;
                                  
                                 }
                                 return false;  
                                 
                             }
                             return true;
                         }
                     },
                     messages: { //custom rules messages
                             // Return the message text.
                            dateValidation: "Not a valid date in dd/MM/YYYY format!",
                     }
                 });
             })

I want the messages to be remove or hide when it is correct but somehow i not able to 
Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 26 Jan 2022
1 answer
763 views

I am trying to use the kendo numeric text box (jquery), however I'm having an issue. I'm using the text box to collect the user's year of birth. This can realistically be a value between 1902 and 2022 (the current year). I set the min to 1902 and the max to 2022. The user can also choose to leave this field blank and not provide a year of birth. When a user types 19 into the field it changes it to 1902. I don't want this as the likelihood that the user's year of birth is actually 1902 is very small. Instead I would like it to blank the field out. I have tried getting rid of the min and max values but then the up/down arrows become virtually useless since the user would have to click up 1,902 times just to get to a valid value.  How can I keep the up arrows starting at 1902 and ending at 2022 while also not having kendo change the value to the min or max?

I have seen a few other posts on the topic that are old and the issue was never properly addressed. 

Georgi Denchev
Telerik team
 answered on 26 Jan 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?