Telerik Forums
Kendo UI for jQuery Forum
1 answer
141 views
I'm trying to use a ClientTemplate for all of my columns to allow an HTML hover tooltip (using span's title attribute).  My ClientTemplate currently is:

string.Format("<span title='#: {0} #'># if ({0} != null) {{# #= {0} # #}}#</span>", fieldName)


This works wonderfully for strings.  However, for enums or DateTime, numbers, etc, it doesn't obey the DataAnnotations.  It simply does a raw output.  How does the Kendo MVC Grid know how to display these fields (without a ClientTemplate, it's perfect without a tooltip)?  How can I slightly tweak my ClientTemplate so that it works for all columns/types?

Thanks in advance,
Kyle
Dimo
Telerik team
 answered on 02 Apr 2014
1 answer
98 views
Hi,
I was expecting that Kendo Chart will not plot points outside range specified for each axes. But its plotting unexpectedly.
Please tell me If we can avoid plotting points outside range.

I have specified range (min and max values for both X and Y axes) like this:
        xAxis:
        {    min: -3000, max: 1000},
        yAxis:
        {    min: 10000, max: 10400, reverse: true, axisCrossingValue: 10000
        }

I supplied multiple curve data & output is like this:

I have marked unexpected points.

T. Tsonev
Telerik team
 answered on 02 Apr 2014
8 answers
3.0K+ views
I have tried to use Turkish format for NumericTextBox, and also I want to convert dot sign of decimal to comma. However, position of sign comma have gone to wrong position on the decimal number (For Example: when I change format to convert dot to comma, then 1.5 number to be 15,00)
How Can I figure out the problem?
Thanks a lot,
Nihat Erdil
Georgi Krustev
Telerik team
 answered on 02 Apr 2014
1 answer
147 views
Hi,

I'm using ASP.NET MVC wrapper to render treeview, and populating data with model binding.
I want to get treeview widget and datasource ( treeview = $("#treeview").data("kendoTreeView")  ) on page load, for example in $(document).ready. Result is undefined.
I have tried even in treeview databound event, result is same.
Cesar
Top achievements
Rank 1
 answered on 02 Apr 2014
3 answers
85 views
Hello, 

I have a selector on my chart, and also one in the navigator... I wish to have an event fired after the selector of the main chart is used, but not when the navigators selector is used. When I implement 

SelectEnd: onSelectEnd,

and 

onSelectEnd= function(e) {
**code**
}

this works for both selectors... Is there a way to limit this event only for the maincharts' selector, and leave the navigator alone? Thanks! =)
T. Tsonev
Telerik team
 answered on 02 Apr 2014
1 answer
294 views
Hi, I identified that when using a data source with serverFiltering enabled, while the user is typing something in the input the list of items are being filtered as well, when for example just 2 items remains in the list and the user press the tab button or just click outside making the component loses its focus nothing is selected in the combo. I would like that when the list of items still is open and I loses its focus the first item is auto selected.

I ended up doing something like this:

widget._events.change.push(function (event) {
               var minLength = $(element).attr("data-odata-minlength") || 2;
               var value = widget.value().trim();
               if (value != '' && value.length >= Number(minLength) && widget.dataItem() == undefined && widget._data().length > 0) {
                   var firstItem = widget._data()[0];
                   setTimeout(function () {
                       $.each(widget._data(), function (index, item) {
                           if (item.Id == firstItem.Id) {
                               widget.select(index);
                               return false;
                           }
                       });
                   }, 100);
                    }
           });
I don't like the idead of having a setTimeout function to set the select item but when I simply set the select without using the setTimeout function it works but something triggered after the change/close events resets my alteration and the selectIndex becomes -1.

Any tips?

Thanks.
Georgi Krustev
Telerik team
 answered on 02 Apr 2014
3 answers
358 views
Hello,

I have a problem with the HierarchicalDataSource in my treeview. I have a 3+ level datasource. The first and the second level are coming from local data, the third and every following level is coming by a webservice-method.

So far so good: First and second level get displayed perfectly, but with the third one I have some problems. Its loading data, but then it removes the icon (which says that Subfolders exist) and no subfolders are shown.

Fact 1: It jumps into the webservice-method, it returns data (all the subfolders), it gets into the success of the ajax-call

Fact 2: If I remove the second level and make the third+ level as my second one, everything works fine!!! (But I dont want to load the second level again, when I already have it in my folderStructure-object)

Here is my code:

var dataSource = new kendo.data.HierarchicalDataSource({
    data: folderStructure,
    schema: {
        model: {
            id: "Id",
            hasChildren: "HasChilds",
            children:
            {
                schema: {
                    data: "items",
                    model: {
                        id: "Id",
                        hasChildren: "HasChilds",
                        children: {
                            transport: {
                                read: function (options)
                                {
                                    var id = options.data.Id;
                                    $.ajax({
                                        type: "POST",
                                        url: webserviceUrl + "/GetSubFolders",
                                        data: JSON.stringify({ parentFolderId: id }),
                                        processData: false,
                                        contentType: "application/json; charset=utf-8",
                                        dataType: "json",
                                        xhrFields: {
                                            withCredentials: true
                                        },
                                        success: function (data)
                                        {
                                            options.success(JSON.parse(data.d));
                                        },
                                        error: function (data)
                                        {
                                            options.error(data);
                                        }
                                    });
                                }
                            },
                            schema: {
                                model: {
                                    id: "Id",
                                    hasChildren: "HasChilds"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
});


I hope someone can help me,

Thank you,
Best regards.
BigzampanoXXl
Top achievements
Rank 1
 answered on 02 Apr 2014
2 answers
267 views
Hello. I have 2 separate problems with Kendo Grid:

I've created test case to demonstrate them (it is SPA application): Open index.html

1. First can be reproduced by clicking Test 1 and Test 2 ( initially test 1 part is loaded).
a) after load Test 1 - Grid is shown without issue:
b) after press Test 2 - Second Grid is loaded without issue.
c)
after pressing Test 1 - First grid should be now shown but there is an
issue, and following error can be seen in e.g. Firebug console:
  Cannot call method 'value' of kendoDropDownList before it is initialized

This error is related to pageSizes flag. When it is false, there is no problem, but when it set to true or to size Array, error above occurring.

2.
Second problem is related to new column locking functionality. My
scenario requires to hide grid sometimes. Steps to reproduce:
a) press Read - after finishing loading grid will be hidden
b) press Read again - after finishing loading grid will be shown, but wrongly with columns wrongly displaying.

Kind Regards
Marcin

Petur Subev
Telerik team
 answered on 02 Apr 2014
1 answer
91 views
I am raising this in the forums because the support ticket page keeps giving me a 'server had an error' response page.

I was previously running Kendo version 2013.3.1324. I have been developing a column in the Kendo grid to have a sparkline in it's template.  This was displaying correctly in that version.  I have since upgrade to version 2014.1.318 to attempt to fix an issue we have with the Kendo grid where it freezes (I can explain the details in another support ticket to the Grid team).  Now we have upgraded the sparkline is no longer rendering properly. The top and bottom appear to be clipped.  I have attached a screenshot showing the problem.  I have compared the Html output by both version and something new has been added. It is the svg / defs / clippath / path  element.  It seems the new version puts a path element in the clippath node, removing this in the development tools on chrome fixes the display.
Why was it added and how can I fix the new version to display correctly.

I am also using angular-kendo.js. Although I believe this wouldn't affect the html rendered. My sparkline options are: 
{
            chartArea: {
                background: "",
                width: 110
            },
            tooltip: {
                visible: false,
            },
            categoryAxis: {
                crosshair: {
                    visible: false,
                },
            },
            
            seriesDefaults: {
                line: {
                    color: "#5889AD",
                    width: 1,
                },
                markers: {
                    visible: true,
                    size: 1,
                    border: {
                        color: "#d52b1e",
                        width: 2,
                    }
                }
            }
        };
Iliana Dyankova
Telerik team
 answered on 02 Apr 2014
2 answers
282 views
Hello,

I would like to customize my KendoUI Calendar (with month.content template). The rendering is correct the first time, but when I call the bind method (to bind data for other controls), the calendar rendering is again running but the data.dates property is empty (in month.content property).

Can you tell me how to solve this problem (to say to the Calendar to "not bind" data)?

Thanks.

Example (display this page and press F12... all is correct... press the button "Apply Biding") :

<input type="button" id="btnTest" value="Apply Binding" />
<div id="calendar" />

window.onload = () => {

    var myDates = [];
    myDates.push(new Date(2014, 0, 5));
    myDates.push(new Date(2014, 0, 6));
    myDates.push(new Date(2014, 0, 7));

    var calendarParams = {
        dates: myDates,
        month: {
            content: '<div>' +
            '#= myTrace(data) #' +
            '#= data.value #' +
            '</div>'
        },
    };

    $("#calendar").kendoCalendar(calendarParams);
        
    $("#btnTest").click(function() {
        kendo.bind("body", null);
    })

};

/* First time, display 3 items in the 'dates' property */
/* After binding, display 0 items in the 'dates' property */

function myTrace(data) {
    console.log(data);
    return "";
}

Denis
Denis
Top achievements
Rank 1
 answered on 02 Apr 2014
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
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
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?