Telerik Forums
Kendo UI for jQuery Forum
1 answer
390 views

Hi,

I have a PanelBar left side menu with content to the right. I am happy with the functionality but would like to be able to collapse the entire side to allow more horizontal space for content. Drawer seems to have this functionality but then I would lose the PanelBar menu functionality. I have tried to put the PanelBar into a splitter but this doesn't seem to work with bootstrap and the doesn't render properly.

Do you have any suggestions for the best way to implement a hideable PanelBar side menu?

Kind regards,

David

Preslav
Telerik team
 answered on 17 Dec 2019
11 answers
610 views

I have a grid of parent windows and a popup modal B grid of child windows.

The two A and B grids use different database tables, but the configured column names (contents) are the same.
That is, the same table with only a different table name.

I do the dataSource.Insert () of the selected row from the modal popup B grid to the parent A grid and execute the Sync () method.

However, the success of this operation depends on the schema ID of the modal popup B grid.
If the schema ID of the modal popup B grid is an item that exists in the actual field (DB Select XML) of A grid, A grid's Sync () method does not consider it a new item.

Because of this, if you change the schema ID to any value that isn't in the actual field, it will be considered new.

What is the nature of the schema ID? I want to know exactly what value I need to specify the schema ID.

 

ex) Select Query : UserID, UserPW, etc... (select UserID, UserPW from tb_user(A) / tb_user2(B))
"B Grid" Schema ID : "UserID"
result : Rows added with dataSource.Insert () will not be considered new by the Sync() method.

Select Query : UserID, UserPW, etc... (select UserID, UserPW from tb_user(A) / tb_user2(B))
"B Grid" Schema ID : "PleaseSync" (It didn't really matter what value.)
result : The rows added with dataSource.Insert () are executed by the Sync() method to recognize the new item.

 

 

schema: {
    data : 'list' ,
    model: {
        id: 'prodNo',
        fields: {
            orderDSeq: { editable: false },
            orderNo: { editable: false },
            prodNo: {type: 'string'},
            mtrlQt: {type: 'string'},
            prodSize: {type: 'string'},
            prodUnit: {type: 'string'},
            orderQnt: {type: 'string'},
            presentStkQnt: {type: 'string'},
            prodPrice: {type: 'string'},
            totalPrice: {type: 'string'},
            spplLimitDt: {type: 'string'},
            reMark: {type: 'string'}

 

Above is the schema of A grid, And

 

schema: {
    data: 'list',
    model: {
        id: 'key',
        fields: {
             prodNm: {type: 'string'},
             orderNo: {type : 'string'},
             prodNo: { type: 'string' },
             mtrlQt: { type: 'string' },
             prodSize: { type: 'string' },
             sStk: { type: 'string' },
             prodPrice: { type: 'string' }

 

Above is the modal popup schema.

 

If you change id: key to id: prodNm, Async's sync () method no longer detects the change.

 

Alex Hajigeorgieva
Telerik team
 answered on 17 Dec 2019
3 answers
960 views

Hi,

I have a numeric textbox inside a Grid. I would like to allow showing a "," as a separator (thousands) and also allow decimals.

In the OnEdit of the Grid, I have the following setup:

1.edit: function(e) {
2.                e.container.find("input[name^=costOperand]").kendoNumericTextBox({
3.                    min: 1,
4.                    max: 888888887,
5.                    step: 100
6.                });
7.}

 

With the above the numeric textbox doesn't allow me to type in a ",". Only decimals are allowed.

Any idea?

 

Thanks

Alex Hajigeorgieva
Telerik team
 answered on 16 Dec 2019
8 answers
1.1K+ views

When I try to export a file to PDF the browser window locks up while the pdf file is generated. In my case, I am exporting a grid with 124 rows which takes about 5 seconds and another grid with 760 rows which takes about 20 seconds. Besides locking up the page from further scrolling, this is noticeable because the user expands a menu to select the download button and the menu gets stuck open until the file is generated. With this happening I'm also not sure how I would add a loading spinner to the page to tell the user something really is happening.

Any suggestions on how to make it faster and how to close the menu and add a loading spinner would be appreciated.

Alex Hajigeorgieva
Telerik team
 answered on 16 Dec 2019
2 answers
435 views

This may not be a bug, but I think it's a bug.

I found something strange while using the edit popup.



{command: [{name: "edit", text: "edit"}], title: "feature", width: 100, filterable: false}

If you modify it using, no problem occurs.

 
dataBound: function (e) {
                var grid = this;

                grid.element.on ('dblclick', 'tbody tr', function (e) {
                    grid.editRow ($ (e.target) .closest ('tr'));
                })
            },

However, if you try to use the edit screen by using double-click instead of edit command, you now have a definite problem.

After opening the registration window once and canceling, double-clicking an existing item creates several windows.

What bug is this?

 

We will replace it with a YouTube link due to video size limitation.

https://youtu.be/FEl7LLfWD1w

 

NHJ
Top achievements
Rank 1
 answered on 14 Dec 2019
14 answers
3.5K+ views
Is there any way (or documentation) about formatting numbers in dataSources?

I have seen the formatting for dates, but I am trying to create a javascript datasource (array) for binding to a kendo grid that contains numbers with 4 decimal places. When the following code runs, it creates a grid with 4 decimal places listed, but when you edit the column it changes to 2 decimal places. Do i need to overwrite the edit function, or am i declaring my format incorrectly?

var mySource = [{"ID":1,"Item":1.1234}];
 
var myDataSource = new kendo.data.DataSource({
    data:mySource,
    schema: {
        model:{
            id:"ID",
            fields:{
                ID:{type="number"},
                Item:{type="number",format:"{n4}"}
            }
        }
    }
});
 
$('#grid').kendoGrid({
    dataSource:myDataSource,
    columns:[
    {field:"ID",title:"ID"},
    {field:"Item",title:"Item",format:"{n4}"}
    ],
    editable:true
});
Tsvetomir
Telerik team
 answered on 13 Dec 2019
6 answers
758 views

I am trying to export a group of charts to a pdf. The chart grouping is similar to the ones here: https://demos.telerik.com/kendo-ui/pdf-export/index

I would like to reformat them so that they fit nicely on a letter size piece of paper. I looked at the example here: https://demos.telerik.com/kendo-ui/pdf-export/page-layout.

My issue is that in this example, the web page is already formatted like the printed page. In my case I want to take example 1 (pdf-export/index) and format it like example 2 (pdf-export/page-layout).

I tried using the .k-pdf-export class to do this but my charts ended up sized incorrectly with pieces cut off. 

What is the best way to accomplish my goal?

Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
 answered on 12 Dec 2019
3 answers
699 views
I am facing a problem for kendo UI element(Dropdown, MultiSelect, Grid etc. ) in our application where we are implementing Content Security Policy(CSP) in the application. We need to give “unsafe-eval” Value to CSP so that the kendo elements work on the page . But using"unsafe-eval" violates the content security policy. Without the "unsafe-eval" the kendo elements don’t work. Is there any work around if we don’t want to include “unsafe-eval” and all kendo elements should work as expected ?
Petar
Telerik team
 answered on 12 Dec 2019
1 answer
491 views

Hello, are you planning to remove the unsafe-eval as part of the content security policy?

 

In this documentation is saying that this is required

https://docs.telerik.com/kendo-ui/troubleshoot/content-security-policy

We need to remove this option from our website and we can't due Kendo library. Are you going to change this requirement in some of the upcoming version?
Thanks,


Petar
Telerik team
 answered on 12 Dec 2019
8 answers
1.1K+ views
There isn't a function in kendo for a window to set the location / position of the window. It took me 30 minutes to figure this out, hopefully it'll help someone.

var kendoWindow = $("#window").data("kendoWindow");

kendowWindow.element.parent().css({left:400,top:200});

The kendowWindow object contains the content of the window, and that is contained inside another div which has the window bar.
Ivan Danchev
Telerik team
 answered on 12 Dec 2019
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
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?