Telerik Forums
Kendo UI for jQuery Forum
3 answers
371 views

I am trying to initialize kendo-grid however I am getting strange error which is not traceable.

I have splitter in the page which was working. When I add the grid, I get following error in console.

angular.js:12450 TypeError: Cannot read property 'removeAttribute' of undefined
    at link (http://localhost:8080/dv/SiteOptimizer/libs/telerik.kendoui.professional.2015.3.1111.commercial/js/kendo.custom.min.js:9:50947)
    at $ (http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:73:89)
    at K (http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:62:39)
    at h (http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:54:410)
    at h (http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:54:433)
    at h (http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:54:433)
    at h (http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:54:433)
    at h (http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:54:433)
    at http://localhost:8080/dv/SiteOptimizer/libs/angular-1.4.6/angular.min.js:53:480
    at http://localhost:8080/dv/SiteOptimizer/libs/angular-ui-router.min.js:7:23478 

Strangely when I remove splitter and add only the grid, it works fine.

Can you help me with what is happening here?

Vladimir Iliev
Telerik team
 answered on 29 Nov 2016
1 answer
109 views

Hello,
I'm using kendo ui in an angular (1.5.8) SPA and noticed a memory switching between 2 views.
View A: with kendo ui toolbar (without options, so no toolbar items).
View B: without kendo ui toolbar.
Switching from View A to View B and back to View A adds exactly 80 objects in memory (aprox. 4.2 kB).
Since i use the toolbar in a lot of views and nested views the memory usage over time goes up dramatically.
Calling the toolbar.destroy() on the destroy event of the angular component controller doesn't make any difference.
It looks like it has something to do with the overflow button which apparently gets a new data-uid every time and stays in the jquery tokencache.

Is this a known issue and/or how can this be fixed ?

Thanks in advance

Alexander Valchev
Telerik team
 answered on 29 Nov 2016
7 answers
543 views

Hello, 

I'd like to update the title field of my event dynamically. I can do this by using jquery to select the title input and updating its value. Example,

$('[name="title"]').val("New Test Title")

 This updated value is based on another dropdown and therefor is evaluated dynamically so cannot be set in the configuration.

 However, when I save the event the title does not save with the updated value. Is there a way I can force the underlying event object to bind to the value dynamically added to the title input. 

Thanks 

Vladimir Iliev
Telerik team
 answered on 29 Nov 2016
6 answers
432 views
Hi,

Wie have recognized some problems with globalization.
We are using Kendo COmplete ASP.NET MVC.

Culture de-DE ist working fine, but when browser culture ist de-AT or de-CH texts in scheudler or grid are in english default language.
e.g. in scheduler:
 right upper buttons in de-DE: "Tag" "Woche" "Monat" as expected.
 right upper buttons in de-AT or de-CH: "Day" "Week" "Month"

or in grid view: right left bottom corner: in de-DE: "Elemente" as expected, but in de-AT or de-CH "items"

How can I fix this?


regards
O.
Marcel Härry
Top achievements
Rank 1
 answered on 29 Nov 2016
2 answers
3.9K+ views
Hello,

I need a column with a link that works just like a command button.  For example, an ItemNo column, where the item # is a link which can be clicked to bring up a kendo-window that displays details for that item.  

The item-lookup grid I am working on is encapsulated in a custom AngularJs directive.  

Here is one thing I tried in the column definition: 
field: "ItemNo", title: "Item #", width: 120,
template: "<a href='\\#' class='link' onclick='displayItemDetails(\"#=ItemNo#\")'>#=ItemNo#</a>",
But it cannot find the "displayItemDetails" method (I have tried defining the method both on the directive's $scope and and as a "stand-alone" function, but no luck.  It works fine with a regular command column (except for the fact that it renders a button, and I need a link).  

Also, if at all possible, I would rather not use jQuery to hook up a click handler, since that violates AngularJS best practices.

If someone could provide a working example of how to do this, I would much appreciate it!

Thanks,
Lars

Venu
Top achievements
Rank 1
 answered on 29 Nov 2016
1 answer
69 views

I have a grid with a checkbox template. When I check a checkbox, and click Edit, I get a popup window, which is expected, when I close the popup window, I destroy the grid and rebind the grid again.

When I go to select another record to edit and check that checkbox, then all of a sudden the checkbox of the very first row gets checked as well, and it doesnt matter which checkbox I check, because it also checks the first rows checkbox

The code I am using is

var vendorGrid,
    CreateVendorGrid = function (newData) {
    $("#Vendor-Grid").kendoGrid({
        dataSource: {
            data: newData
        },
        schema: {
            model: {
                fields: {
                    VendorID: { type: "number" }
                },
            }
        },
        filterable: {
            mode: "row"
        },
        columns: [
            {
                template: "<input name='Selected' class='checkbox' type='checkbox'>",
                width: "30px"
            },
            {
                field: "VendorName",
                title: "Vendor",
                filterable: {
                    cell: {
                        showOperators: false,
                        operator: "contains"
                    }
                }
            },
            {
                field: "Email",
                title: "Email",
                filterable: {
                    cell: {
                        showOperators: false,
                        operator: "contains"
                    }
                }
            },
            {
                field: "Phone",
                title: "Phone",
                filterable: false
            },
            {
                field: "City",
                title: "City",
                filterable: false
            }],
        scrollable: true,
        sortable: true,
        pageable: {
            pageSize: 20
        },
        selectable: "row",
        height: $("#Vendor-Grid").closest(".col-height-full").height()-60,
        change: function (e) {
        }
    }).data("kendoGrid");
}
 
//This to get the data to populate the grid
 
function GetVendorGridData() {
    kendo.ui.progress($("#Vendor-Grid"), true);
    $.ajax({
        type: "GET",
        url: URLParam.GetVendorsForGrid,
        dataType: "json",
        contentType: "application/json; charset=utf-8",
        success: function (data, textStatus, jqXHR) {
            CreateVendorGrid(data);
            kendo.ui.progress($("#Vendor-Grid"), false);
        }
    });
}
 
//This is part of my script in my popup window for closing the window
 
$("#btnCloseVendorEditor").click(function () {
    RefreshVendorGrid();
    GetVendorGridData();
    CloseTheWindow();
});
 
function RefreshVendorGrid() {
    var theGrid = $('#Vendor-Grid').data('kendoGrid');
    theGrid.destroy();
}
Chris
Top achievements
Rank 1
 answered on 29 Nov 2016
2 answers
256 views

Hi,

I am looking for, selecting multi events on   across the time/days and move into  new time/days.

Any suggestions pls.

Cheers.

 

A Joy
Top achievements
Rank 1
 answered on 28 Nov 2016
3 answers
910 views
Hi ,

I want to implement org chart functionality (present in Rad Controls for ASP.NET) in MVC using Kendo. Please suggest me how to work on it?

Thank You
Prashant Gupta
Iliana Dyankova
Telerik team
 answered on 28 Nov 2016
1 answer
181 views

I currently have the following template

 

    <script id="tmplOptionsMenuItemRowAll" type="text/x-kendo-tmpl" >
        <div>#:uid#</div>
        <div class="col-xs-12"
            data-role="listview"
            data-template="tmplOptionsMenuItemRowAll"
            data-bind="source: allMenuItems"
            data-selectable="false"
            id="kendoLVOptionsAllMenuItems">
        </div>
    </script>

 

I am trying to manually calculate the HTML and then inserting it somewhere in the DOM (its a long story)

I currently call the following code to do this:

               var templateContent = $(options.templateId).html();

                var template = kendo.template(templateContent);
                //now resolve the HTML
                var result = kendo.render(template, [options.appModel]); //render the template
                return result;

 

However when I look at 'result' I can see that the UID has been correctly resolve BUT the list view has not been executed at all. Am I missing something?

Alon
Top achievements
Rank 1
Veteran
 answered on 28 Nov 2016
2 answers
417 views

We are generating a PDF form in Finnish language. We are having problems with scandic letters (åäö) not rendering correctly in the PDF. They are on top of each other. Is this a problem with Telerik PDF export or the font? Are there workarounds? I tried another font (Fira Sans) and the results are the same.

The attached files show how it looks in the DOM and in the generated PDF.

 

Jussi
Top achievements
Rank 1
 answered on 28 Nov 2016
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?