Telerik Forums
Kendo UI for jQuery Forum
1 answer
633 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
190 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
331 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
1.0K+ 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
186 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
419 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
133 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
825 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
896 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
4 answers
408 views

I am using a Kendo  Context Menu on a treeview and some other divs on the page.

Occasionally, when right clicking, I get the browser's right click menu when right clicking.  Its not often, but does occur in both IE11 and Chrome.  (probably 1 out of every 20 times with IE, 1 out of every 30 times with Chrome)

I've tried to narrow down when it happens by clicking in different areas of the treeview items, but there doesn't seem to be a pattern.  The menu is simple:  only a couple items, and is not dynamic.

I'm guessing kendo uses oncontextmenu - so this is a browser issue. I'm just seeing if you have ever seen this issue, and if there is anything that can be done to avoid it.  (or do we just have to accept it)

 

Christian
Top achievements
Rank 1
Iron
 updated answer on 25 Jan 2022
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
MultiColumnComboBox
Chat
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
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
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
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?