Telerik Forums
Kendo UI for jQuery Forum
2 answers
129 views

Hello,

I downloaded the new Kendo UI v2019.3.917 version, integrated it in my web app and generated less file and got the following error:

`rgba`: color functions take numbers as parameters

 

I tracked it down to two widgets: Rating and Filter

If I comment the following lines in "type-bootstrap.less", then generation works:

// Rating
/*@rating-icon-text: @widget-border-color;
@rating-icon-selected-text: @accent;
@rating-icon-hover-text: @accent;
@rating-icon-focused-text: @accent;

@rating-icon-focused-shadow: 0 2px 3.6px rgba(255, 255, 255, .1);
@rating-icon-focused-selected-shadow: 0 2px 3.6px rgba(@accent, .5);*/

@import "Default/filter/_theme.less";

@import "Default/rating/_theme.less";

Paul van Eijk
Top achievements
Rank 1
 answered on 31 Jan 2020
3 answers
43 views

Hello,

is it possible to search numeric columns with the new search panel via built in functionality?

Thanks in advance.

Martin
Telerik team
 answered on 31 Jan 2020
2 answers
77 views

ver.2020 R1

https://dojo.telerik.com/AvenepoV

 

ver.2019 R3 SP1

https://dojo.telerik.com/alaWEjIs/2

 

See ver.2020 R1 sample , click Google or Kendo link is not working
but ver.2019 R3 SP1 is normal

 

Yanjun
Top achievements
Rank 1
 answered on 31 Jan 2020
4 answers
871 views

Hi, Dev Team!

At first, really thank you for Breadcrumb!

How i can set items programmatically or bind to dataSource?

Andrey
Top achievements
Rank 1
Veteran
 answered on 30 Jan 2020
8 answers
1.5K+ views

Greetings,

I'm using the Numeric Text Box and I want to limit the number of decimal the user is allowed to enter to a certain value, Let's say 3

I'm seeing the decimals property to 3 and the format to n3

The display is working fine but the user is allowed to input 1.999999 for example and it will be rounded to 2.000

I want it to be 1.999, either by limiting the input or, what I tried to do is forcing the value to be 1.999.

I tried using the onchange event but when the event is fired, the value is already rounded to 2.

 

Any help on this, 

Thanks,

Alex
Top achievements
Rank 1
 answered on 29 Jan 2020
1 answer
201 views

I need to set an custom empty message for the pager in a listview.  We are binding using data-attributes.  I think the data- for the empty message would be something like this, but this isn't working

 

<div id="pager-#= data.tabId #" class="activity-pane-pager k-pager-wrap" tabindex="0"
             data-role="pager"
             data-bind="source: dataSource"
             data-messages-empty="test message" >
        </div>

 

Can you tell me what this should be?  Thanks!

Vessy
Telerik team
 answered on 29 Jan 2020
2 answers
1.5K+ views

My grid receives data in JSON format and all dates are in UTC time and formatted to local time using kendo.toString and it works fine.

The problem begins with filters for date time column:

column.filterable = {
            ui: function (element) {
                return element.kendoDatePicker({
                    format: kendoHelpers.dateTimeFormat
                });
            },
            operators: {
                date: {
                    lt: operators.date.lt,
                    gte: operators.date.gte,
                }
            }
        };

 

I will try to explain it on a real scenario:
I'm in UTC+01 timezone and when I want to filter all dates before 27-01-2020 16:30 it correctly saves Date object in grid.filter.filters array (with timezone offset)

but when filter request is being sent to the server it ignores timezone and sends filter:InsertDate~lt~datetime'2020-01-27T16-30-00' (should be 15:30 or with timezone)

 

Is there anyway to modify filter value or change it's format to send also information about timezone?

Rumen
Telerik team
 answered on 29 Jan 2020
3 answers
597 views

Hi ,

 I am working on a some prototypes for my workplace and I am looking for guidance on the best approach. I am relatively new to Kendo and have recently switched from the mvc helpers to Jquery + javascript. I am trying to do the following. My sample code is below.

 

1. I would like to dynamically generate the cols on the UI using the remote result set. So the result set may contain 25 cols but I only want to paint 5 of them

2. I would like to implement this in reasonably straight forward manner. I was hoping that I could use the datasource fetch but now am no so sure.

3. I would remove the columnheader menu and install my own drop down in the grid toolbar which I would then use to toggle the grid columns on and off. I could then control what columns this would be performed for.  I have to do this as there is a restriction on using child grids and frozen cols

 

 

The issue that I am encountering is the grid is rendered before I have chance to modify what gets renedered and how. I have seen suggestions that one should destroy the grid prior to rebuilding it.  So can you 

 

A.) Indicate if I should create fetch request outside a datasource and use my custom ajax call or should I rebuild the datasource each request

B.) Destroy the grid at each request 

B.) Do you have any examples in js where this is done. I have search the web and founds bits and pieces. 

 

Thanks

Ciaran

 

 

 

 

 

<div id="container">
    <div id="grid"></div>
</div>
<script type="text/javascript">
var baseurl ="http://localhost:5000/api/"
var currentModel; 
var requiredColumns=["Id", "CoreId"]
var showOnlyTheseColumns =["Id", "CoreId", "projectName" ]
var DEFAULT_PAGE_SIZE = 15;
var isDateField =[];
var currentColumns =[];
var currentFilters = [];
currentFilters.push({field: 'Id',operator: 'contains',value: '22' });



$(function(){
         var grid =   $("#grid").kendoGrid({
                dataBound: function(e) {
                    var grid = this;
                    console.debug('Its too late here its already bound..');
                },
                dataBinding: function(e){
                    let grid = this;
                    grid.columns() =[];                
                    console.debug('databinding called');
                },
                autoBind: true,  //!!! PRETTY SURE THIS SHOULD BE SET TO FALSE. Is this correct? !!!
                height: 400,
                toolbar: kendo.template($("#toolbarTemplate").html()),
                columns:currentColumns,
                pageable: {
                    buttonCount: 6,
                    refresh: true,
                    pageSizes: [20, 50, 100, 200],
                    messages: {
                        display: "Showing {0}-{1} from {2} " ,
                        empty: "No records to display",
                        itemsPerPage: " per page",
                    }
                },
                sortable: true,
                filterable: true,
                scrollable: true,
                reorderable: true,
                resizable: true,
                editable: true,                
                dataSource: {
                    serverPaging: true,
                    serverFiltering: true,
                    serverSorting: true,
                    pageSize: DEFAULT_PAGE_SIZE,
                    sort: {
                        field: "J.CoreId",
                        dir: "desc"
                    },
                    schema: {
                        data: "data",
                        total: "total",
                        model: currentModel
                    },
                    batch: false,
                    transport: {
                        create: {
                            url: baseurl +"Job",
                            contentType: "application/json",
                            type: "POST"
                        },
                        read: {
                            url: baseurl +"Job",
                            contentType: "jsonp",
                            complete: function (qXHR, textStatus) {
                                console.log(textStatus, "update");

                                //Build the model from the source data
                                currentModel = generateModel(qXHR.responseJSON.data);
                                //create the columns from the source data
                                currentColumns =generateColumns(qXHR.responseJSON.data);
                                console.log('ITS TOO LATE THE GRID IS ALREAYD BOUND ')
                                $('#grid').data('kendoGrid').refresh();

                            }
                        },
                        update: {
                            url: baseurl +"Job",
                            contentType: "application/json",
                            type: "PUT"
                        },
                        destroy: {
                            url: baseurl +"Job",
                            contentType: "application/json",
                            type: "DELETE"
                        },
                        parameterMap: function (data, operation) {
                            currentColumns =[];                            
                            return JSON.stringify(data);
                        }
                    }
                }
            });
        });
</script>

<script type="text/javascript">
// https://docs.telerik.com/kendo-ui/knowledge-base/create-with-dynamic-columns-and-data-types
function generateColumns(gridData){
        for (var property in gridData[0]) {
            if (showOnlyTheseColumns.indexOf(property) > -1){
                currentColumns.push({field: property,width: "100px", format: (isDateField[name] ? "{0:D}" : "")});
            }
        } 
        return currentColumns;
}

Zebenzui
Top achievements
Rank 1
 answered on 29 Jan 2020
1 answer
687 views
     I have 2 listboxes that are connected. I want to execute a function AFTER an item is transferred from one box to the other. I see the add and remove functionality but it fires before the item is added or removed. I need it to happen after the items are removed from the from box and added to the to box. How would I do this?
Preslav
Telerik team
 answered on 28 Jan 2020
1 answer
123 views

Is it possible to just include the kendo.maskedtextbox.min.js in my page? instead of the 3MB kendo.all.min.js file?

What are all the includes needed for maskedtextbox and validation? 

Thanks!

Alex Hajigeorgieva
Telerik team
 answered on 28 Jan 2020
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
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?