Telerik Forums
Kendo UI for jQuery Forum
3 answers
2.1K+ views

Hello there,
 We have a customer who wants to override decimal sepataor in a specific culture. We have tried to override it before any widget is initialized. Also created our custom culture file and used it but the result is the same. kendo.culture().numberFormat["."] show the sybol we want, but in the UI is still the default symbol. Here is a dojo showing that only curency symbol is being overwritten.

 https://dojo.telerik.com/USUkomuY/5

 

 

Dimitar
Telerik team
 answered on 03 Apr 2020
6 answers
375 views

Hello

I would ask about possibility to close last panel when expandmode is single. Multiple expand mode allows close all panels, single not.

How to close all panels in single mode.

 

Ivan Danchev
Telerik team
 answered on 03 Apr 2020
3 answers
923 views

I'm following some of the most basic kendoPDFViewer examples, and this section of code in the js file consistently crashes;

                            var pdfViewer = $("#documentViewer").data("kendoPDFViewer");
                            if (!pdfViewer) {
                                pdfViewer = $("#documentViewer").kendoPDFViewer({ //<------crashes here
                                    pdfjsProcessing: {
                                        file: ""
                                    },
                                    width: "100%",
                                    height: 500
                                }).data("kendoPDFViewer");
                            }

#documentViewer is the id of the div I'm attempting to attach the viewer to.  Debugging shows the problem happening when I try to declare the currently null pdfViewer as a kendoPDFViewer.  I made sure to include the pdf scrips in my index.html as well.

<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>

<script> window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';</script>

 

Am I putting the scripts in the wrong location or something?

 

Thanks.

Dimitar
Telerik team
 answered on 02 Apr 2020
5 answers
1.0K+ views
I need export a Image with data to excel with Kendo
Tsvetomir
Telerik team
 answered on 02 Apr 2020
2 answers
219 views
I have a kendo ui grid where the first column has a button in it. The button has an icon and full text on desktop but on mobile it is only three vertical dots. I need it to be 200px wide on desktop but only 50px wide on tablet and mobile. There are 3 other columns in the grid. I would like the grid to scroll horizontally still when on mobile. I do not want to exclude any columns. I would like to set min-widths on all of the columns for each breakpoint if possible. How would I do this? 
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
 answered on 02 Apr 2020
1 answer
816 views
I have a 3-level hierarchy grid and need to export all the data including collapsed rows to excel. I am following this demo http://dojo.telerik.com/ApaqOJuv. But it only export the expanded rows. How can I modify this solution so that it export all the data?
Alex Hajigeorgieva
Telerik team
 answered on 02 Apr 2020
1 answer
565 views

Hi All,



I work in one of the Big 4 firms and we have been using Kendo for a few years now but recently an issue has cropped up when virtual vertical scrolling does not work when the grid is sorted on a column. It does not matter what column. Scrolling works fine without the sorting when the grid loads. When sorted on any column the grid loads the first pagesize items but on going to the end of the page the new items does load. No call to the server also being made and no network or console activity

 

Here is the code

 

@(Html.Kendo().Grid<IGridItem>()<br>    .Name(gridName)<br>    .HtmlAttributes(new { @class = "table-response browse-table " + Model.GridType.ToString().ToLower() + "-grid-type" })<br>    .Columns(columns =><br>    {<br>        columns<br>            .Bound("Name")<br>            .Title(MarkupMessages.Grid_NameHeader)<br>            .Width(500)<br>            .HeaderTemplate("<span" + MarkupMessages.Grid_NameHeader + "</span>")<br>            .HtmlAttributes(new { @class = "name-column" })<br>            .ClientTemplate(nameColumnTemplate)<br>            .Locked(true)<br>            .Lockable(false)<br>            .Hidden(false)<br>            .Sortable(true)<br>            .Filterable(false)<br>            .Visible(Model.GridColumnConfiguration.HasFlag(GridColumnEnum.Name));<br>        columns<br>            .Bound("ID")<br>            .Title("")<br>            .Width(30)<br>            .HeaderTemplate("")<br>            .HtmlAttributes(new {@class = "context-menu-column"})<br>            .ClientTemplate(menuColumnTemplate)<br>            .Locked(true)<br>            .Lockable(false)<br>            .Hidden(false)<br>            .Sortable(false)<br>            .Visible(Model.GridColumnConfiguration.HasFlag(GridColumnEnum.ID))<br>            .Filterable(false);<br>        columns<br>            .Bound("Category")<br>            .Title(MarkupMessages.Grid_CategoryHeader)<br>            .Width(200)<br>            .ClientTemplate("<div>#: Category #</div> ")<br>            .Locked(false)<br>            .Lockable(false)<br>            .Hidden(false)<br>            .Sortable(true)<br>            .Visible(Model.GridColumnConfiguration.HasFlag(GridColumnEnum.Type))<br>            .Filterable(filter =><br>            {<br>                filter.Multi(true);<br>                filter.CheckAll(false);<br>                filter.ItemTemplate("itemTemplate");<br>                filter.DataSource(source =><br>                {<br>                    source.Read(r => r.Url(Model.Url));<br>                    source.Events(e => e.RequestStart("GridHelper.filterCancelRequest"));<br>                });<br>            });<br>        columns<br>            .Bound("LastModifiedDate")<br>            .Title(MarkupMessages.Grid_LastModifiedDateHeader)<br>            .Width(200)<br>            .ClientTemplate("<div>#: LastModifiedDate #<div>")<br>            .Locked(false)<br>            .Lockable(false)<br>            .Hidden(false)<br>            .Sortable(true)<br>            .Filterable(false)<br>            .Visible(Model.GridColumnConfiguration.HasFlag(GridColumnEnum.LastModifiedDate));<br>    .DataSource(ds => ds<br>        .Ajax()<br>        .ServerOperation(Model.ServerOperation)<br>        .Sort(sort =><br>        {<br>            if (Model.DefaultSortOrder == SortDirection.Descending)<br>            {<br>                sort.Add(Model.DefaultSort).Descending();<br>            }<br>            else<br>            {<br>                sort.Add(Model.DefaultSort).Ascending();<br>            }<br>        })<br>        .PageSize(200)<br>        .Read(read =><br>        {<br>            read.Url(Model.Url);<br>            read.Data(dataSourceGetAdditionalData);<br>        })<br>        .Events(events => events.Error(dataSource_Error)))<br>    .AutoBind(false)<br>    .Sortable(sortable => sortable.SortMode(GridSortMode.SingleColumn).AllowUnsort(false))<br>    .Scrollable(scrollable => scrollable.Virtual(true).Height(382))<br>    .Resizable(resizable => resizable.Columns(true))<br>    .Reorderable(reorder => reorder.Columns(true))<br>    .Filterable(filter =><br>    {<br>        filter.Enabled(true);<br>        filter.Extra(false);<br>    })<br>    .Events(events =><br>    {<br>        if (!String.IsNullOrEmpty(gridEvent_SelectionChanged))<br>        {<br>            events.Change(gridEvent_SelectionChanged);<br>        }<br><br>        if (!String.IsNullOrEmpty(gridEvent_DataBound))<br>        {<br>            events.DataBound(gridEvent_DataBound);<br>        }<br><br>        if (!String.IsNullOrEmpty(gridEvent_DataBinding))<br>        {<br>            events.DataBinding(gridEvent_DataBinding);<br>        }<br><br>        if (!String.IsNullOrEmpty(gridEvent_FilterInitialize))<br>        {<br>            events.FilterMenuInit(gridEvent_FilterInitialize);<br>        }<br><br>        if (!String.IsNullOrEmpty(gridEvent_ColumnReorder))<br>        {<br>            events.ColumnReorder(gridEvent_ColumnReorder);<br>        }<br>    }))
Preslav
Telerik team
 answered on 02 Apr 2020
3 answers
343 views
Hi,

I am trying to enable inline editing for the KendoUI grid with an autocomplete control. I want to be able to post the edited model data into a controller action, however my parametermap code never gets executed. Can someone please explain what causes the parametermap code to get executed?

Here is my dataSource declaration:
var battingDataSource = new kendo.data.DataSource({
    schema: {
        model: {
            id: "PlayerId",
            fields: {
                PlayerId: { editable: false, nullable: true },
                PlayerFullName: { validation: { required: true } },
                BattingOrder: { type: "number", validation: { required: true, min: 1, max: 11 } },
                RunsScored: { type: "number", validation: { required: true, min: 0 } },
                BallsFaced: { type: "number", validation: { required: true, min: 0 } },
                Fours: { type: "number", validation: { required: true, min: 0 } },
                Sixes: { type: "number", validation: { required: true, min: 0 } },
            }
        }
    },
    batch: true,
    transport: {
        create: {
            url: "/MatchPlayer/Create",
            type: "POST"
        },
        update: {
            url: "/MatchPlayer/Update",
            type: "POST"
        },
        read: {
            url: "/MatchPlayer/Read",
            type: "POST"
        },
    },
    parameterMap: function (data, operation) {
        alert("hit");
        if (operation != "read") {
            // post the players so the ASP.NET DefaultModelBinder will understand them:
 
            var result = {};
 
            for (var i = 0; i < data.models.length; i++) {
                var player = data.models[i];
 
                for (var member in player) {
                    result["players[" + i + "]." + member] = player[member];
                }
            }
 
            return result;
        }
    }
});
Yaroslav
Top achievements
Rank 1
 answered on 02 Apr 2020
5 answers
6.5K+ views
Hello,

I have a basic web application that I would like to use Kendo UI on. This application has a basic banner whose content is dynamically sized. Below this banner, I would like to use a Kendo UI Grid control. This Grid needs to fill the remaining available space. My question is, how you make a Grid dynamically grow to fill the available height? All of the demos I see use absolute heights.

Thank you!
Aleksandar
Telerik team
 answered on 01 Apr 2020
1 answer
349 views

     I have a form with a few fields. I want to take the form data and pass it to a Kendo Datasource so when I hit "Save" it will call my existing back-end JSDO class and save the data to the database. Are there examples of this anywhere?

 

I have found an example of a remote bound form to save to the back-end with an already existing DB record (ID). But my request is for new records with no ID.

https://demos.telerik.com/kendo-ui/mvvm/remote-binding

Aleksandar
Telerik team
 answered on 01 Apr 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
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
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?