Telerik Forums
Kendo UI for jQuery Forum
4 answers
444 views
agregar css de zoom a la cuadrĂ­cula, pero al hacer clic en los controles de filtro, los cuadros aparecen desalineados o separados del control ayuda ...
Nikolay
Telerik team
 answered on 08 Oct 2020
4 answers
3.3K+ views
How can I pass a string with single quote in a Kendo grid template - 

In the below code I have a function confirmDelete which expects a string argument, in the example I am passing id (encrypted string) but when I add the single quote around it the HTML rendering fails. If I pass just id with no quotes AngularJs throws a error.

This may not be the right forum but I have not got response from the Kendo Lab, i will appreciate your help.

 k-columns='[
                                                    { "field": "firstName", sortable:true, "title": "First Name"},
                                                    { "field": "lastName", sortable:false,"title": "Last Name"},
                                                    { "field": "middleName", sortable:true,"title": "Middle Name"},
                                                    { "field": "id", sortable:true,"title": "Id"},
                                                    { "template": "<a href=\"Constituent/Detail/#: id#\">Edit</a><a href=\"\" ng-click=\"confirmDelete('\"+id+\"')\">Delete</a>", "title": "Actions" }]'
Alex Hajigeorgieva
Telerik team
 answered on 07 Oct 2020
3 answers
380 views

Hi,

 

I am trying to bind kendo template with MVVM but unfortunately facing some weird issue. My JSON looks correct but the template is binding the data incorrectly. What's interesting is if I comment either Dropdown or Span, the other control works perfectly. I tried assigning a unique Ids to control but it's not helping. Could you please check below fiddle?

 

http://jsfiddle.net/rahulsingii/5nzcruk3/8/

Aleksandar
Telerik team
 answered on 07 Oct 2020
6 answers
815 views
Hi Guys,

When using the Grid widget I can globally override a property, for example columnMenu as follows

    kendo.ui.Grid.fn.options.columnMenu = {
        columns: true
    };

but I am unable to find any examples in how to override the default dataSource properties.

What I'm trying to achieve is to always default the schema section with the following values

    schema: {
          data: "data",
          errors: "error",
          total: "total",
     },
 
to save having to duplicate them on every dataSource instance.

Is this at all possible ?

Regards
Alan
Ivan Danchev
Telerik team
 answered on 07 Oct 2020
1 answer
197 views

Hello,

I have this kendo jquery grid, and I want to display the selected row values to the form above. How can I best achieve that?

and secondly, I want to send the selected row(s) to a controller for processing...

 

index.vbhtml:
    <div><input id="TxtLoanCodeDescription" /></div>
    <div id="grid"></div>
<script src="~/Scripts/loanInstallments.js"></script>

<script>
    $(document).ready(function () {
        $("#grid").kendoGrid({
            dataSource: {
                data: installments,
                schema: {
                    model: {
                        fields: {
                            InstallmentNo: { type: "string" },
                            InstallmentPeriod: { type: "string" },
                            InstallmentMonth: { type: "string" },
                            Principal: { type: "string" },
                            PrincipalRepaid: { type: "string" },
                            PrincipalBalance: { type: "string" },
                            Interest: { type: "string" },
                            InterestRepaid: { type: "string" },
                            InterestBalance: { type: "string" }
                        }
                    }
                },
                pageSize: 20
            },
            //toolbar: ["search"],
            height: 155,
            scrollable: true,
            selectable: "multiple",
            sortable: false,
            filterable: false,
            pageable: false,
            columns: [
                { field: "InstallmentNo", title: "Install", width: "50px" },
                { field: "InstallmentPeriod", title: "Period" },
                { field: "InstallmentMonth", title: "Month" },
                { field: "Principal", title: "Principal" },
                { field: "PrincipalRepaid", title: "Principal Repaid" },
                { field: "PrincipalBalance", title: "Principal Balance" },
                { field: "Interest", title: "Interest" },
                { field: "InterestRepaid", title: "Interest Repaid" },
                { field: "InterestBalance", title: "Interest Balance" }
            ]
        });
    });
</script>

 

 

loanInstallments.js

 

var installments = [
  {
    InstallmentNo: "1",
    InstallmentPeriod: "June 2020",
    InstallmentMonth: "June",
    Principal: "10, 000.00",
    PrincipalRepaid: "0.00",
    PrincipalBalance: "10, 000.00",
    Interest: "0.00",
    InterestRepaid: "0.00",
    InterestBalance: "0.00"
    },
    {
        InstallmentNo: "2",
        InstallmentPeriod: "June 2020",
        InstallmentMonth: "June",
        Principal: "10, 000.00",
        PrincipalRepaid: "0.00",
        PrincipalBalance: "10, 000.00",
        Interest: "0.00",
        InterestRepaid: "0.00",
        InterestBalance: "0.00"
    },
    {
        InstallmentNo: "3",
        InstallmentPeriod: "June 2020",
        InstallmentMonth: "June",
        Principal: "10, 000.00",
        PrincipalRepaid: "0.00",
        PrincipalBalance: "10, 000.00",
        Interest: "0.00",
        InterestRepaid: "0.00",
        InterestBalance: "0.00"
    }, {
    InstallmentNo: "4",
    InstallmentPeriod: "June 2020",
    InstallmentMonth: "June",
    Principal: "10, 000.00",
    PrincipalRepaid: "0.00",
    PrincipalBalance: "10, 000.00",
    Interest: "0.00",
    InterestRepaid: "0.00",
    InterestBalance: "0.00"
}];

Eyup
Telerik team
 answered on 07 Oct 2020
1 answer
140 views

Hi Telerik,

 

We are have a line chart that have date axis. How do we can get date range between major if we set baseUnit = fit?

Eyup
Telerik team
 answered on 07 Oct 2020
13 answers
1.5K+ views
We have an Aggregrate Grid that is grouping on two fields. The Grid handles this great, but a display problem is causing some user confusion.

See the attached screenshot. We are grouping on "Year" and "Make". We wanted to show "Total:" on the group footer row so users know what the row is for. So in the "Vehicle" column, we set the groupFooterTemplate to "Total:". You can see it appearing in the screenshot just fine.

So now for the Make groups and the Year groups, there appears a "Total:" in the aggregate footer row. But as you can see in the screenshot, the last Make group footer row (circled in red) sits right on top of the Year group footer row (circled in blue), and they both show "Total:" on that row, but it looks confusing. Is there any possible way to display "Make Total:" and "Year Total:" on those rows? Or even better would be "Mazda Total:" and "2015 Total:". In other words, instead of just specifying this column:

{ field: "Vehicle", title: "Vehicle", footerTemplate: "Grand Totals:", groupFooterTemplate: "Total:" }

Is there a way to use the group name in the groupFooterTemplate?

{ field: "Vehicle", title: "Vehicle", footerTemplate: "Grand Totals:", groupFooterTemplate: this.groupName + " Total:" }
Eyup
Telerik team
 answered on 07 Oct 2020
5 answers
264 views

W

We are using drawDOM and exportPDF to generate pdf file for our ASP.net MVC page. However the Ordered list (OL tag) are not rendered correctly on the pdf, the number seems to skip (example 1,3,5 ... instead of 1,2,3,4,5) and also we noted that the alphabet/roman numbering are also not supported. This only happens when we are using Internet Explorer ver 11 and Edge ver 44.18362.449.0. Are there any work arounds or fixes for this issue? Your help is greatly appreciated.

 

kendo.drawing.drawDOM($(elementID))
            .then(function (group) {
                return kendo.drawing.exportPDF(group);
            })

 

Eyup
Telerik team
 answered on 07 Oct 2020
1 answer
129 views

Hi, we found a performance issue that occurs only in the "agenda" view, specially when events have several days of duration.

Look at this dojo.

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

In the "week" view, navigation from week to week is very fast.

In agenda view, it's very slow.

The issue is in that function: 

kendo.ui.AgendaView.prototype._tasks

On the 2nd loop, there's that call
task = event.clone();
and this one is repeated for each day of the event, even if the day to analyse is out of the agenda current period.

I think you can solve it by only looping the "visible" days of the current view.

In our case, events have several other fields not related to the agenda.  We are able to increase performance by removing them and only keep required ones, it's better, but still slow.

All others views performs very well with huge dataset / events on multiple days.

Ivan Danchev
Telerik team
 answered on 06 Oct 2020
4 answers
715 views

Hi, we have some multiselect with tons of data (about 5000+).

 

That makes the "dom" very charged and the ui slow.

We found a part of the solution, in that dojo:

https://dojo.telerik.com/@foxontherock/oDerIDAg/3

DOM is very light as we only display first 50 items, and if the user "search" for the items, it finds it on any page. The value is correctly set.

But, when I load the item with values, they are not set if they are not on page 1.  

But, the solution is near, as they are correctly set when we select it from a search...

Do you need to fix something, or is there an easy solution I can do to make the items correctly set initially?

Thank you.

Petar
Telerik team
 answered on 06 Oct 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
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?