Telerik Forums
Kendo UI for jQuery Forum
1 answer
517 views

When attempting to find my column template using

var userActivityTemplate = kendo.template(this.columns[9].template);

 

I am receiving the following error:

Uncaught TypeError: Cannot read property 'template' of undefined
    at init.excelExport (user-task-summary.js:328)
    at init.trigger (kendo.all.min.js:25)
    at init.<anonymous> (kendo.all.min.js:30)
    at Object.proxy (jquery-2.1.4.js:512)
    at Object.<anonymous> (jquery-2.1.4.js:3256)
    at fire (jquery-2.1.4.js:3099)
    at Object.add [as done] (jquery-2.1.4.js:3145)
    at Array.<anonymous> (jquery-2.1.4.js:3255)
    at Function.each (jquery-2.1.4.js:374)
    at Object.<anonymous> (jquery-2.1.4.js:3252)

 

It appears that when using multiple header rows, the template is not a defined key.

Here is my multiple header column definition

{
                title: "Activity",
                columns: [
                    {
                        field: "estimatedHours",
                        title: "Estimated"
                    },
                    {
                        field: "userActivityMinutes",
                        title: "User",
                        template: function (dataItem) {
                            return FormatMinutesToHours(dataItem.userActivityMinutes);
                        }
                    },
                    {
                        field: "activityTotalMinutes",
                        title: "Total",
                        template: function (dataItem) {
                            return FormatMinutesToHours(dataItem.activityTotalMinutes);
                        }
                    }
                ]
            }

 

attached is the console output with the column definition expanded.

Can you tell me the proper way to locate the template definition in this scenario?

Thank you

Tsvetina
Telerik team
 answered on 03 May 2017
1 answer
231 views

We have several views (used for data-visualization) in our web-app. Each view can be opened in a virtual tab, inside our web-app. Every view has a whole bunch of kendo widgets that we can use to manipulate the data. In the end, we can close the virtual tab. At a given time there can be several such tabs opened and the user can open or close more tabs as per his choice.

Data for each virtual tab is loaded through ajax while opening the tab, after which all kendo widgets are 'initialized'. Similiarly when we close the tab, all kendo widgets are destroyed using the 'destroy' method of the widget.

There is a huge performance drop while initializing and destroying the kendo widgets in each tab. Is there a way that the kendo widgets can be destroyed efficiently?

Stefan
Telerik team
 answered on 03 May 2017
3 answers
1.7K+ views

Hi there,

When using kendo Validator - is there a configuration option to set the focus to the first invalid field?

With the current application I am working on there are several long forms - it would be beneficial if the browser scrolled to the invalid field.

I can see how to do this easily with jQuery validate - but I can't seem to see an obvious extension point to do this with kendo Validator?

Thanks,

Paul

Eduardo Serra
Telerik team
 answered on 02 May 2017
1 answer
720 views

Hi, 

I'm using existing sample project posted on net for Kendo grid with custom pop up editor. This works fine. That means Adding/Editing records works.

However , as per requirement Instead of standard textbox, we are suppose to use rich text box editor. So, when I use RTE (Rich text editor) for adding /editing records it works fine only

1. If I do not apply any of the RTE functionality (E.g. Bold/Italic/underline).

however when I apply any RTE functionality (E.g. Bold or Italic or underline) on text  and click on Update  then  following things happens ,

1.As soon as I move my cursor control out of RTE then behind the scene grid show that entry  with little red mark (which also happens above case as well)

2. However no Control action method  gets called and Pop up window never closes.

 

Please note, I tried with different Permutation and combinations of  .Encode() but it didn't worked. Pop up window never closes and no controller action methods gets called.

I'm attaching  my code images and output.

Viktor Tachev
Telerik team
 answered on 02 May 2017
1 answer
245 views
We are experiencing an issue on the calendar on touch devices, when a user taps the next or previous month buttons it skips a month each time, so for example it would go from January to March.

I'm pretty sure we haven't altered any of the Kendo functionality so it should still be working as it was created. I want to test a demo on your site of the calendar from the version we're using (version 2015.2.624) to see if the issue occurs on your end as well. Is there any way we can test a demo from the past versions?
Stefan
Telerik team
 answered on 02 May 2017
2 answers
449 views

I am very close to getting this working with all the help within the forums, I appreciate all the people whom have taken the time to post!! Including the KENDO administrators!

 

I can read json withing my transport with no issues and even do an update with no issues BUT after the update when I requery the database sometimes the grid is not refreshed with the new data but the database and the degugging shows the correct data. I use this onclick function to requey the database and was wondering if it is correct.

Thanks again!!

01.function getData(){
02.     
03.    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
04.    var sheet = spreadsheet.activeSheet();
05.    sheet.dataSource.transport.options.read.url = "index.cfm?event=general.excel&action=load&startDate=" + $('#startDate').val() + "&endDate=" + $('#endDate').val() + "&lobID=" + $('#area').val();
06.    sheet.dataSource.read();
07.      
08.      
09.    $('#spreedsheetGrouping').show();
10. 
11.} //end getData

 

Veselin Tsvetanov
Telerik team
 answered on 02 May 2017
4 answers
161 views

Hi how can i close second level  nodes please.

 

https://s10.postimg.org/8ouy6zo95/Capturar.jpg

 

Thank you
Konstantin Dikov
Telerik team
 answered on 02 May 2017
3 answers
212 views

Hello,

I used spreadsheet to open an xlsx file like in this demo (http://demos.telerik.com/kendo-ui/spreadsheet/server-side-import-export), but I found a problem with the filters in the excel file. In the "filter by value" zone, it appears only "all" , the other values doesn't appear , also for the "filter by Condition" zone when I try to find some value the filter doesn't work, it only changes the color of the arrow icon but all the values still exists.

As for the excel file I created a simple excel file with some filters. I noticed that the filters works only if I used an excel file that I have already used its filters in Microsoft excel.

I used 

below the code that I used 

HomeController.cs:

        public string GetJsonExcel(string fileName1)
        {
            var fileName = fileName1.Replace("***", "'");
            string pathF = ConfigurationManager.AppSettings["PathDocs"].ToString();
            var physicalPath = Path.Combine(pathF, fileName);
            var workbook = Workbook.Load(physicalPath);
            return workbook.ToJson();
        }

 

Index.cshtml:

<div id="spreadsheet" style="width: 100%; height: 99%"></div>
<script>

    $("#spreadsheet").kendoSpreadsheet();
    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
    $.getJSON(generateUrlWithParam("Home", "GetJsonExcel", "fileName1", "spreadsheet with file after using filters in microsoft excel.xlsx"))
        .done(function (sheets) {
            spreadsheet.fromJSON(sheets);
          });
         
        });
</script>

Best regards, 

 

Nencho
Telerik team
 answered on 02 May 2017
1 answer
420 views

I am checking out KendoUI for Angular.  

The DataQuery component mentions mvc integration (http://www.telerik.com/kendo-angular-ui/components/dataquery/mvc-integration/).

I went to (http://docs.telerik.com/aspnet-core/getting-started/getting-started#configuration-Add) on how to add the UI for ASP.NET Core.

The only thing I can find at the source is KendoUIProfessional.Trial.

What gives?  I am trying to get the mvc service extenstions like ToDataSourceResult.  

Ianko
Telerik team
 answered on 02 May 2017
2 answers
475 views

I would like to localize the "No data found" message in the grid when the column filter is not overriden. In my grid I have filterable mode="row" so by setting the column values to collection the filter will work as expected. Is there a way to easily override this label without customizing the filter? 

<kendo:grid-column title="Field1" field="field1">
    <kendo:grid-column-values value="${field1Values}"/>
 </kendo:grid-column>

 

I found the <kendo:grid-filterable-messages> tag which has options to translate a few properties, so I expected that this would be there too.

Thanks in advance.

Daniel

Daniel
Top achievements
Rank 1
 answered on 02 May 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
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?