Telerik Forums
Kendo UI for jQuery Forum
1 answer
104 views
I have a problem changing the words ”Week”, ”Month”, ”Today”, ”All day” and “Show business hours” to danish in my scheduler. A part from that, the translation works very well.

I get the following console errors, when I load the kendo.messages.da-DK.min.js:

:9 Uncaught TypeError: Cannot read property 'FilterCell' of undefined

Furthermore I get the following error, when I load the kendo.timezones.min.js:

:9 Uncaught TypeError: Cannot set property 'zones' of undefined

I’m using the following code ripped from one of your examples:

$("#scheduler").kendoScheduler({
          date: Date.now(),
          views: [
           "week", // a view configuration can be a string (the view type) or an object (the view configuration)
           { type: "week", selected: true }, // the "week" view will appear as initially selected
           "month"
          ],
          timezone: "Etc/UTC",
          dataSource: content,
          editable: false,
          currentTimeMarker: false,
      });

Please advise me to change the word stated above as well as correct the console errors.
Bozhidar
Telerik team
 answered on 01 May 2015
2 answers
336 views

Are there any examples doing drag and drop from a grid control to the scheduler in Angular?  I have found the jQuery example, but for the life of me can't get it to work correctly with the angular directives.  Right now I am using a combination of jQuery and angular, which is both terrible to look at, and causing problems since my templates cannot use Angular controls. 

The parts I am unsure of how to do in Angular are:

 

var grid = $("#grid").data("kendoGrid");
           var gridRowOffset = grid.tbody.find("tr:first").offset();
 
 
           grid.table.kendoDraggable({
               filter: "tbody > tr",
               dragstart: function (e) {
                   //add margin to position correctly the tooltip under the pointer
                   console.log('drag start');
                   console.log(gridRowOffset);
                   $("#dragTooltip").css("margin-left", e.clientX - gridRowOffset.left - 50);
               },

 Essentially if I could get the demo from http://www.telerik.com/support/code-library/drag-and-drop-17b3dbbc367a 

to work in Angular, I could figure the rest out from there!

T. Tsonev
Telerik team
 answered on 01 May 2015
2 answers
263 views

var dataSource = new kendo.data.DataSource({

    transport: {

        read: {

            url: "/GetData",

            dataType: "json"

        }

    },

    group: {

        field: "Name",

        dir: "asc"

    }

});

dataSource.read();

var view = dataSource.view();

 Using Fiddler, I can see that the call to dataSource.read() is successfully getting the JSON. However, dataSource.view() always returns an empty array. I'm not sure why this is the case.

 The JSON I'm returning looks like this:

 

[

     {
      "Name": "Bob",
      "Count": 2762,
      "Date": "2011-11-14 09:00"
    },
    {
      "Name": "Sue",
      "Count": 521,
      "Date": "2011-11-14 09:00"
    },
    {
      "Name": "Bob",
      "Count": 2769,
      "Date": "2011-11-15 09:00"
    },
    {
      "Name": "Sue",
      "Count": 525,
      "Date": "2011-11-14 09:00"
    }

]

Iliana Dyankova
Telerik team
 answered on 01 May 2015
1 answer
295 views

We are exporting Kendo grid content to Excel files. We’re really impressed with how well it works and how easy it is to use. Unfortunately, it is missing one feature that is critical for us. We need to be able to set cell comments in the exported Excel file. I posted the “idea” below to the Telerik site. I think this would only be a few lines of code for Telerik to implement. Our schedule is really tight – we’d really appreciate any help we can get - even if it is just guidance on how we could hack Kendo JavaScript to make it work (as a short-term solution).

This is the 'idea' that I posted: Add support for exporting cell comments to Excel

I'm going to explain this in a number of different ways just to help clarify what I'm asking for: 1) When exporting Kendo grid to Excel, add support for setting the cell comments. 2) Please add support for a "comment" property to sheets.rows.cells. The value of the "comment" property would be used to set the cell comment in the generated Excel file. 3) In the link below, there is support for sheets.rows.cells.format. Add a similar property named sheets.rows.cells.comment that is used to set the cell comment in the exported Excel file. http://docs.telerik.com/kendo-ui/api/javascript/ooxml/workbook.html

T. Tsonev
Telerik team
 answered on 01 May 2015
1 answer
169 views

I have an Editor Template popup for Edit functionality in my Grid. I have a combination of controls on the popup including numeric text box, dropdown and plain text boxes. If I edit information on the work, sometimes the Edit action method in my Controller is not being fired. I noticed that the only time it hits the method when a change to dropdown list happens. For any other update, the method does not get fired.

It seems like the only time the edit state gets changed when a change in dropdown list option happens.

Has anyone else noticed this behavior?

Alexander Popov
Telerik team
 answered on 01 May 2015
2 answers
173 views

I'm trying to use a treelist to display some local data until I'm ready to submit it to the server.  Since it starts empty and it'll only be submitting later, which I'll be doing with a different bit of javascript, I don't have any ajax calls back to the server.  I just want it using local data.  I built the following example using your demo dojo.  

 

<!DOCTYPE html>
<html>
<head>
    <style>html { font-size: 12px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
 
</head>
<body>
        <div id="example">
            <div id="treelist"></div>
          <button id="btnClick" onclick="clickMe()">Click Me</button>
            <script>
                $(document).ready(function () {
                    var dataSource = new kendo.data.TreeListDataSource({
                        schema: {
                            model: {
                                id: "id",
                                expanded: true
                            }
                        }
                    });
 
                    $("#treelist").kendoTreeList({
                        dataSource: dataSource,
                        editable: true,
                        height: 540,
                        columns: [
                            { field: "Position" },
                            { field: "Name" },
                            { command: [ "edit" ] }
                        ]
                    });
                });
               
              function clickMe(){
                 
               $("#treelist").data("kendoTreeList").dataSource.add(
                 {
                   id: 123232,
                   parentId: null,
                   Position: "CEO",
                   Name: "Jeff Bezos"
                 });
              }
            </script>
        </div>
 
 
</body>
</html>

As you can see, it's a pretty simple example where I click a button to add a row to the treelist's datasource and the new row adds just fine.  The problem is when I try to edit the row after adding it.  When I click "Update" it just removes the row instead of saving the changes.  

Please advise.  

Alexander Popov
Telerik team
 answered on 01 May 2015
2 answers
149 views

Hi

I've got an issue with a lockable action columns in a grid where by some data isn't displaying.

Here is an example of the issue

http://dojo.telerik.com/oToFe

If you scroll to the end of the grid you'll notice some of the edit bars are missing - if you resize a column then they will appear - it seems that the height of the locked column isn't calculating correctly.

If you make the pageSize in the dataSource bigger the issue becomes worse (from 10 to 20 in this case)

http://dojo.telerik.com/oToFe/3

Any thoughts on a fix ?

Thanks

Dave

Dave
Top achievements
Rank 1
 answered on 01 May 2015
1 answer
100 views
As i am new to KendoUI,and i am trying some controls which i can use.When using Dropdownlist,i am not able to select the items through mouse,however the slection is happenning through keyboard.I saw the question in another post,but there is no answer.Pls help.
Peter Filipov
Telerik team
 answered on 01 May 2015
4 answers
1.9K+ views
Hi

I've looked through your demos and whenever there's a 'Add new record' button in the grid, the new blank row appears at the top.

Is there a way to configure the grid to display the blank fields after the last row of the grid?
Phillip
Top achievements
Rank 1
 answered on 30 Apr 2015
3 answers
312 views

I'm implementing Kendo on a site that uses ColdFusion as our server-side language. I'm setting up a template and I have situation where I must​ use a ColdFusion variable inside the template. For those not familiar w/ ColdFusion, it uses the # to indicate ColdFusion markup - ie. if I wanted the content of a div to be populated from a CF variable, I'd have something like:

<div>#cf_variable#</div>

In fact, the example above is pretty much exactly what I'm trying to do, just inside a template:

<script type="text/x-kendo-template" id="tile_template">
    <div class="padding list-items-footer k-block">
        <button type="button" class="btn btn-success">
            <i class="fa-icon-play"></i> <span class="hidden-xs">##APPLICATION.LC.getValue("LaunchButton")##</span>
        </button>
    </div>
</script>

APPLICATION.LC is our system for multi-lingual text/labels, which is why it's a requirement.

 I initially only had single # on each side of the CF variable, but that gave me a javascript error. Adding the second # to each side (which is how you escape the # in CF), stopped the error, but what's actually being rendered in the button is 'APPLICATION.LC.get value("LaunchButton")', instead of the CF-calculated value. Additionally, trying to escape the hashes using \, as suggested in the template help, (ie.\#APPLICATION.LC.getValue("LaunchButton")\#), also doesn't cause a javascript error, but again, only outputs '#APPLICATION.LC.get value("LaunchButton")#'.

I was able to find this thread (http://www.telerik.com/forums/syntax) where it was suggested that the selector could be changed for the Kendo templating system, but no further information was provided on how.

For ease of updating in the future, I'd prefer if we didn't have to change the selector, but I realize it may be inevitable. Any suggestions/guidance that can be provided would be appreciated.

Ashleigh L
Top achievements
Rank 1
 answered on 30 Apr 2015
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?