Telerik Forums
Kendo UI for jQuery Forum
0 answers
129 views

hello,

I want to access the spreadshet object in Angular, export and import data.

Example

(A completely imaginary example. I don't know how.)

 dataExport() {
    kendo.jQuery(this.spreadsheetEl.nativeElement).kendoSpreadsheet({
        function() {
            var sheet = $("#spreadsheet").data('kendoSpreadsheet').activeSheet();
            var range = sheet.selection();
            console.log(sheet.toJSON());
        }
    });
  }


how can I do it ?

thanks in advance

kypdk
Top achievements
Rank 1
Iron
 updated question on 29 Jun 2022
20 answers
247 views

Hello.

We've seen multiple problems with the layout transition effects:

1. The width of the view to navigate from is being reduced to a fraction of the actual width in the beginning of the transition.

2. The AppBar is not part of the transition effect if navigating back to a view with an AppBar "sticked" to the top and the vertical scrollbar position in the browser is not at the top.

3. Have seen the transition effect not working at all sometimes when navigating back to a previous view.

 

We're using Kendo UI for jQuery R3 2020.

 

Regards, Rolf

Rolf Falnes
Top achievements
Rank 1
Iron
 answered on 19 Feb 2021
5 answers
281 views

I'm searching documentation about kendo Router with pushState=true. 
Using the configuration like:

pushState:true

root:"/"

when I use router.navigate always is fired the routeMissing event. Why?

I think that there isn't enought documentation about how to work with pushState.

Should i use navigate with pushState:true or history.pushState?

Can some write some example ?

Thanks

var router = new kendo.Router({
    pushState: true,
    root: "/",
    init: function(e) {
        debugger
    },
    routeMissing: function(e) {
        debugger
    },
    change: function(e) {
        debugger
 
    }
});
 
router.route("/", function() {
    loadModule("/presentacion");
});
 
 
router.route("/previsiones", function() {
    loadModule("/controls/prv/prv_listadoPrevisiones");
});
Dimitar
Telerik team
 answered on 30 Aug 2019
4 answers
318 views

Hello,

I’m trying to get query string values for a root route but parameters seems to be undefined.

e.g for url : https://mywebsite.com/?test=hello

thanks for your help.

var router = new kendo.Router();
 
router.route("/", function(params) {
    console.log(params); // undefined
});
Dimitar
Telerik team
 answered on 30 Aug 2019
7 answers
1.1K+ views
I have an index html page with a main grid that has a column that is bound.   This works....the user clicks...it routes correctly to gotoView3.   But I have a detail grid that is bound to this main grid
and the exact same column template does not work.  What is the syntax to get this line to route correctly?

template: '<a href=x   data-bind=\'click: goToView3\'  >#=Unit#</a>'


Here is the code

--------index.html------------------

 <script id="index" type="text/x-kendo-template">  

 <div data-role="grid"                                               
  data-editable="false" 
  data-detail-init="viewModelIndex.mainDetailInit"   
  data-columns="[ { field: 'Fleet', title: 'Fleet', width: 80, template: '<a href=x  data-bind=\'click: goToView3\' >#=Fleet#</a>'}  ]"
               data-bind="source: dsFleets, events: { dataBound: dataBound }"
               style="height: 400px">
              </div>

</script>


---------viewmodel.js-----------------------


var viewModelIndex = kendo.observable({



  goToView3: function(e) {
    router.navigate("/ops?fleet=" + e.data.FleetId);
    e.preventDefault();
  },




  dsFleets: new kendo.data.DataSource({
    data : [
      {
        FleetId  : "1",      
        },
        {
        FleetId  : "2",         
        },  
 ],
schema: {
   model: {
     fields: {
      FleetId: { type: "string" }, 
   }
   }
}
}),




mainDetailInit: function (e) {
    $("<div/>").appendTo(e.detailCell).kendoGrid({

        dataSource: {
            data:  [
                {       
                FleetId : "1",            
                Unit  : "P0014",   
                },
                {                
                FleetId : "1",            
                Unit  : "P0015",   
                    }
            ],
            schema: {
                model: {
                    fields: {                      
                        FleetId: { type: "string" },     
                        Unit: { type: "string" },
                    }
                }
            },
            pageSize: 20,
            filter: { field: "FleetId", operator: "eq", value: e.data.FleetId }
        },


        scrollable: false,    
        columns: [                 
            { field: "Unit", title: "Unit", width: 200, template: '<a href=x   data-bind=\'click: goToView3\'  >#=Unit#</a>'},           

        ]

    })},

});


Alex Hajigeorgieva
Telerik team
 answered on 11 Apr 2019
4 answers
518 views

Is is possible to add a tooltip to the entire row of a grid?  I currently can add a tooltip to each column template but was wondering if I could just have the tooltip appear on any item in the entire row?   

This is solution I am looking for but in a MVVM implementation
https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Layout/grid-with-kendo-ui-tooltip

 

 

<div id="grdWarningndex" data-role="grid"
  data-editable="false"        
  data-sortable="false"       
  data-columns="[
                    { 'field': 'WarningStatus', 'width': 5,'title': 'WarningStatus' ,template: '<span data-role=\'tooltip\' title=\'The warning status tooltip is: #=WarningStatus# \'> #=WarningStatus#</span>' },
                    { 'field': 'WarningMessage', 'width': 100,'title': 'WarningMessage','template': '<span data-role=\'tooltip\' title=\'This is the message tooltip \'> <a href=/=#=WarningMessage# data-bind=\'click: goToView2\' >#=WarningMessage# </a> </span>'  },
                    { 'field': 'WarningAction', 'width': 100,'title': 'WarningAction','template': '<a href=/=#=WarningAction#  data-bind=\'click: goToView3\' >#=WarningAction#  </a>'  },                   
                    { 'field': 'WarningTime', 'width': 150,'title': 'WarningTime(EST)' },     
                                                   ]"                                
                                                
                                                
                                                 data-bind="source: dsWarnings, events: { dataBound: dsWarnings }"  
                                                 style="height: 300px"
                                                 > 
                                                

Perry
Top achievements
Rank 1
 answered on 14 Feb 2019
5 answers
315 views

I'm trying to prevent back on firefox by preventing event.

It is not working properly. Page stays where it was, but  change event is still fired and page is still rerouted behind to the same one.

It cause loosing whole page state. because even if url stays the same page was reloaded.

Ivan Danchev
Telerik team
 answered on 12 Feb 2019
1 answer
335 views

Hello,

I'm playing with Kendo just few days... yesterday I have start to investigate SPA app pattern and it implementation in Kendo. I understand how views, layouts and router plays together.

But I have a problem to design app as whole.

My example app is about customers. Imagine you have customers. Customers have services. And every (logged) user in my app can manage zero or more customers and their services.

In my app I have a 1 layout object rendered from template. This template have 1 combobox which can be used to select a customer and one div for "views". in this simple case imagine only 3 views, showing 3 different grids of some customer's data (for example services, log entries and contacts).

My questions:

1. one BIG model (instance of observable) or one model for layout and 3 smaller models for each views?

2. if more than one, how to synchronize "customer selection" and propagate this change down to views?

3. if i have not 3 but 100 views... will be all templates "rendered and synchronized" even if only one is active?

4. how to free memory from inactive views? each view have datasource for grid, grid's data are huge (500+ rows, more than 10 columns) ... if i enable row filtering, datasource is duplicated for suggestion autocomplete edit box. not sure if one model is good way.

 

I would be very happy if someone with more knowledge with Kendo SPA help me how to start :)

 

Peter.

Ianko
Telerik team
 answered on 10 Oct 2017
2 answers
176 views

documentation for router change event says that navigation can be canceled with preventDefault

but i want to ask user before leaving current view if is ok to leave unsaved changes.

can be done using promises ?

John
Top achievements
Rank 1
 answered on 13 Feb 2017
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
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
OrgChart
TextBox
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
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
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? 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?