Telerik Forums
Kendo UI for jQuery Forum
9 answers
397 views
The following JavaScript is from the ListView / Filtering demo.

$("#filterable-listview").kendoMobileListView(
    dataSource: dataSource,
    template: $("#mobile-listview-filtering-template").text(),
    filterable: {
        field: "ProductName",
        operator: "startswith"
    },
    endlessScroll: true
});

I'd like to know how to do this with MVVM. I've also looked at this MVVM demo but I couldn't find an example of filtering anywhere. Please add an example somewhere!

Regards
Dean
Mohammadali
Top achievements
Rank 1
 answered on 19 Oct 2020
1 answer
167 views

This works fine when the datasource has at least 1 record. It also works fine with the grid control, so I assume this is a glitch with the timeline? I am one revision behind the latest, so this may already be fixed.

kendoTimeline = $("#divTimeLine").kendoTimeline({
        orientation: "horizontal",
        dateFormat: "MM/dd/yyyy",
        dataSource: {
            data: new Array(),
            pageSize: 0,
            sort: { field: "date", dir: "asc" }
        },
    }).data("kendoTimeline");

    kendoTimeline.destroy();

--------------------------

JavaScript Error: Uncaught TypeError: Cannot read property 'destroy' of undefined
URL: http://localhost/SINet/STERLING/AllPoints/PublicScripts/kendoui.2020.2.617.commercial/js/kendo.all.min.js
Line Number: 94

Eyup
Telerik team
 answered on 19 Oct 2020
3 answers
292 views

The documentation for the ImageEditor is somewhat lacking. Can you please explain how I can replace the 'Save As' button with a custom button that calls a function?

Thanks

Aleksandar
Telerik team
 answered on 19 Oct 2020
6 answers
269 views

Hello,
           I have kendo grid in mvvm.

 

<script id="TSTSettlementTemplate" type="text/x-kendo-template">
    <div data-bind="visible: isSettlementGridVisible" class="test67">
 
 
        <div data-role="grid" id="SettlementGrid"
             data-editable="true"
             data-toolbar='[{"template": "<div class=\"toolbar\"><input type=\"button\" class=\"k-button k-button-icontext\" onclick=\"AddSettlementrow(this)\" value=\"+ Add New Record\"/></div>" }]'
             data-columns="[
                   { 'field': 'Entity', 'title': 'Entity', 'width': 110 ,editor: SettlementGridEntityEditor , template: kendo.template($('\\#SettlementEntityDisplay').html()) },
                   { 'field': 'Entity', 'title': 'Entity Type', 'width': 50 , editable: false, editor: nonEditorforEntityTypeDisplay, template: kendo.template($('\\#SettlementEntityTypeDisplay').html()) },
                   { 'field': 'Payer', 'title': 'Payer', 'width': 110 ,editor: SettlementGridPayerEditor , template: kendo.template($('\\#SettlementPayerDisplay').html()) },
                   { 'field': 'SettlementType', 'title': 'Settlement Type', 'width': 110 ,editor: SettlementTypeEntityEditor , template: kendo.template($('\\#SettlementTypeDisplay').html()) },
                   { 'field': 'PaymentMode', 'title': 'Payment Mode', 'width': 150 ,editor: SettlementGridPaymentModeEditor , template: kendo.template($('\\#SettlementPaymentModeDisplay').html()) },
                   { 'field': 'PaidUsing', 'title': 'Paid Using', 'width': 150 ,editor: SettlementGridPaidUsingEditor , template: kendo.template($('\\#SettlementGridCreditCardTemplate').html()) },
                   { 'field': 'Amount', 'title': 'Amount', 'width': 150 ,editor: SettlementGridAmountEditor  },
                   { 'field': 'remark', 'title': 'Remark', 'width': 150 ,editor: SettlementGridRemarkEditor },
                   { text: 'Select', title: 'Action', template: kendo.template($('\\#SettlementGridOperationTemplate').html()) , 'width': 110}
                 ]"
             data-bind="source: settlementgridDS"
             style="height: 200px"></div>
 
         
    </div>
</script>

 

By javascript i programatically set DataSource as below code before binding object to above template :

SettlementVm.Data.settlementgridDS = new kendo.data.DataSource({
                      data: data.PricingSettlements,
                      schema: {
                          model: {
                              id: "ID",
                              fields: {
                                  ID: { type: "number", editable: false, nullable: true }
                                  //Entity: { type: "string", validation: { required: true } },
                                  //Payer: { type: "string", validation: { required: true } },
                                  //SettlementType: { type: "string", validation: { required: true } },
                                  //PaymentMode: { type: "string", validation: { required: true } },
                                  //PaidUsing: { type: "string" },
                                  //Amount: { type: "number", validation: { required: true } },
                                  //PCCCode: { type: "string", validation: { required: true } },
                                  //Remark: { type: "string", validation: { required: true } }
                              }
                          }
                      }
                  });

 

Amount, Remark are simple values rest other columns are complex types.

Problem: When i add new record in kendo grid / or there is existing pre-filled data and when i validate using kendo-Validator it shows no error even if values are not bound. Unless i open edit mode and click on anywhere . Kendo Validator only works when i activate Editor template. 

Question:

1) Can i change In-cell Edit mode to full Grid Edit mode?

2) How to validate columns values if Editor template not called ( user doesnt click on in-cell to open edit mode) ?

  

 

 

 

Eyup
Telerik team
 answered on 19 Oct 2020
3 answers
402 views

Hi,

Is it possible to set the dropZone dynamically?

 

 

Petar
Telerik team
 answered on 16 Oct 2020
1 answer
138 views

I would like all connections made to shapes to use ONLY the centre connector.

In the javascript code I use the diagram.connect method to connect the shapes; I did see an example of the use shape.getConnector method but cannot find any documentation on this. But I felt by doing something like....

 

diagram.connect(shape1.getConnector('middle'),shape2.getConnector('middle')

 

Should actually do what I wanted but using the key word 'middle' or 'center' did not work. Any help appreciated.

Tsvetomir
Telerik team
 answered on 16 Oct 2020
2 answers
317 views

Hello,

the following example renders a wrapped chart label using the drawing API:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/categoryaxis.labels#categoryaxislabelsvisual

 

Now, if you take this example (https://dojo.telerik.com/ERuyOquh),you can see that the texts are right-aligned. Is it possible to align these centered?

 

Kind regards.

Stefan
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 16 Oct 2020
1 answer
69 views

Hello,

I am currently receiving the dates on my grid as strings and looking for a way to filter them as though they were dates. I tried simply changing the type in the schema from type: 'string' to type: 'date' and as far as the filtering goes this accomplished the goal, my problem now is that I can't seem to change the format of the dates being shown, I am only getting a full JavaScript date object showing as 'Tue Oct 13 2020 00:00:00 GMT-0700 (Pacific Daylight Time).'

Other than the format everything seems to be saving and updating as expected. I have tried simply adding format: "{0:dd-MMM-yyyy}" to the column as well as kendo.parseDate in the template. Any other possible solution I am missing?

Thank you in advance

Petar
Telerik team
 answered on 15 Oct 2020
7 answers
1.2K+ views

    Hi all,

I'm trying to use the persist state feature of the Kendo Grid.

I work with ASP.Net Core (2.1) and JQuery (3.3.1).

I have an issue with the grid.GetOptions(), .SetOptions() and . They always try to post to the page where I'm at. My grid is not configured to go and fetch for the data with the Datasource option of the grid. My data for the grid are passed along the model.

 
Tsvetomir
Telerik team
 answered on 14 Oct 2020
1 answer
136 views

 

Trying to initialize ArcGauge using data attributes.

Nothing seems to happen when I set

data-center-template

or data-colors

See:

https://jsfiddle.net/bglase/cp5g4jen/2/

I expected the gauge color to change based on the selected value, and the numeric value to be shown in the center of the gauge.

 

thanks in advance for any advice

Eyup
Telerik team
 answered on 14 Oct 2020
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
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
Popover
DockManager
FloatingActionButton
TaskBoard
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?