Telerik Forums
Kendo UI for jQuery Forum
2 answers
300 views
Hello,

I am trying to set the height of all the charts on the page to half of the window size. However I keep getting the following error: Uncaught TypeError: undefined is not a function

The code I have is as follows:

$(window).resize(function () {
        // for any chart or gauge widget
        $(".k-chart").each(function () {
            // get the instance of the chart/gauage
            var chart = kendo.widgetInstance($(this), kendo.ui);
            var c = $(this).data("kendoChart");
            // make sure transitions are off
            //chart.options.transitions = false;
            console.log($(window).height() * 0.4);
            c.height($(window).height() * 0.4);
            // redraw the chart/gauge
            if (chart && chart.redraw) {
                chart.redraw();
            }
        });
    });

The error pops up with the c.height($(window).height() * 0.5); statement. 

Any idea what I am doing wrong? I am running the 2014.1.318 version

Thank you
magdil
Top achievements
Rank 1
 answered on 09 May 2014
11 answers
916 views
I want to retrieve QR code in byte array form, is this possible?
If not what other options could be?

Thanks,
Mahesh A
Daniel
Telerik team
 answered on 09 May 2014
6 answers
129 views
Hi,
In our chart graph, I was trying  to use plotband on categoryAxis. For plot band, we need to define "from" and "to" values for the axis. Is there a way, if I can define "from" value (no "to" value defined) and graph background from "from" defined axis point to end of the axis is colored?

Currently I am doing this by setting "to" value as the "max" axis value.
Also for the plotted graph (as attached), I see the plotband and graph line looks shifted. For eg: In the attached image at bottom, the from date is Apr 15 and to date is Apr 16". Expected  is the point corresponding to 15th Apr and 16th Apr should be inside plotband, which is not the case. Do we need to define some offset. How to fix this issue? 
Hristo Germanov
Telerik team
 answered on 09 May 2014
1 answer
88 views
I'm using the editor to image gallery of Kendo UI, the editor works fine (links, formats, etc. ..) and upload the photos to the gallery and read a service (rest); the problem is that when wanting to insert any image in the gallery get the error:

"too much recursion ... ute (i)," string "== typeof r) {try {r =" true "=== r 0:" false "=== r1:" null "r === null: + r ... jquery .... min.js (line 3) "

The funny thing is that when you remove the configuration "uploadURL", if you insert pictures in the textarea; obviously the plugin no longer gives me the option to upload.

In the documentation (http://docs.telerik.com/kendo-ui/api/web/editor # configuration-ImageBrowser): did not find details about how to fix it.

HTML(Razr)

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><br>    <script type="text/javascript" src="/js/vendor/kendo-ui/kendo.all.min.js"></script><br><br>    <div class="k-content"><br>            <textarea id="KEditor" rows="10" cols="30" placeholder="@GetText("Content")" maxlength="255" style="height: 500px"></textarea>    <br>    </div>



Js

   
$(document).ready(function() {<br>                $("#KEditor").kendoEditor({<br>                    tools: [<br>                        "fontName",<br>                        "fontSize",<br>                        "foreColor",<br>                        "backColor",<br>                        "bold",<br>                        "italic",<br>                        "underline",<br>                        "justifyLeft",<br>                        "justifyCenter",<br>                        "justifyRight",<br>                        "justifyFull",<br>                        "insertUnorderedList",<br>                        "insertOrderedList",<br>                        "indent",<br>                        "outdent",<br>                        "createLink",<br>                        "unlink",<br>                        "insertImage",<br>                        "viewHtml"<br>                    ],<br>                    imageBrowser: {<br>                        transport: {<br>                            read: {<br>                                type: "GET",<br>                                url: "/api/sites/user-gallery",<br>                            },<br>                            destroy: "/api/sites/user-gallery?action=delete",<br>                            thumbnailUrl: function(path, name) {<br>                                var pictureUrl = decodeURIComponent(name);<br>                                return pictureUrl;<br>                            },<br>                            uploadUrl: "/api/sites/user-gallery?action=upload", //work if this line is commented<br>                            imageUrl: function(name) {<br>                                var pictureUrl = decodeURIComponent(name);<br>                                return pictureUrl;<br>                            },<br>                        }<br>                    }          <br>                    //, messages: { viewHtml: '@GetText("ViewHtml")'}<br>                });<br>            });


Json(read rest service):

Rosen
Telerik team
 answered on 09 May 2014
0 answers
43 views
Dear All,

I am creating resource is Vertical Grouping and time line is showing Horizontal Grouping.

Thanks & Regards
Ramesh.V
Ramesh
Top achievements
Rank 1
 asked on 09 May 2014
2 answers
569 views
Hello Telerik Team , 

We have an issue with the validation tooltip. We could reproduce the behavior in your dojo:
http://trykendoui.telerik.com/EjoN

To reproduce the error just erase a value in the price column, and change the focus to another field, the tooltip looks like is behind the next row.

What is the best way to achieve this?

Thank you in advance, 

Regards!



Luis
Top achievements
Rank 1
 answered on 08 May 2014
6 answers
192 views

We are investigating the use of Kendo to update some of our applications originally developed with Telerik MVC Extensions to be more dynamic.

It appears you have recently updated the DataSource to support SignalR, as shown in the Grid MVC wrapper Demos. It is not however clear from the documentation how far this support goes. In general:

1. What components other than the Grid support SignalR as a data source?

2. Which if any of these support server Push as well as Read?

3. Do any of the DataViz components support SignalR as a source?

4. Can you give us any form of roadmap as to what dynamic update features are to be supported, especially with the Data Viz components and MVC?

Regards

Chris Warren
T. Tsonev
Telerik team
 answered on 08 May 2014
1 answer
578 views
Are there a cardview available for the Kendo UI grid?  I need it just for diplaying data.  If not, do you know of any workaround with which I can accomplish this?
Alexander Popov
Telerik team
 answered on 08 May 2014
4 answers
141 views

I have a webpage that uses Kendomobilelistview control

here -> http://krfrettir.com/App/Result/LatestResult

and this page is using this JSON data call

-> http://krfrettir.com/App/Result/GetLatestResult

But the json return list where LeikDagur(datetime) is in correct order (newest first) but the Kendo view is not using any sorting it takes this json data and randomly prints out the list.

Could someone maybe tell me why this is happening?

moegal
Top achievements
Rank 1
 answered on 08 May 2014
3 answers
389 views
Hello,

A little briefing:

In most of the pages in my web site we need to show always the same currency symbol but for different culture,

Eg.: User culture is "en-US", but the currency symbol for the currency that I have to display is £, I need to use the currency symbol position, thousand and decimal separator from the culture, but the £ currency symbol. I solved this scenario by:

kendo.culture("en-US");
kendo.culture().numberFormat.currency.symbol = 
"£";

That's working very well, the problem comes when I have multiple currencies in the same grid. 

I have a "Currency" type that basically have the "Value" and "CurrencySymbol" properties, I could do something like:

columns.Bound(c => c.PropertyOfTypeCyrrency).ClientTemplate(" #= PropertyOfTypeCyrrency.CurrencySymbol # #= PropertyOfTypeCyrrency.Value #");

But it will not have the right Currency position (right, left, right with space, left with space), thousand and decimal separator.

While I was writing this post I just figured out that I can solve by:
columns.Bound(c => c.PropertyOfTypeCyrrency).ClientTemplate("#= kendo.toString(PropertyOfTypeCyrrency.Value, 'C').replace(kendo.culture().numberFormat.currency.symbol, PropertyOfTypeCyrrency.CurrencySymbol) #");

Is there any other approach?
Also, how do I configure the Filter to work with "PropertyOfTypeCyrrency.Value" in this case?
For this "Currency" type I've override the "ToString()", and also I have the DisplayTemplate, is there any way to use one of those with "ClientTemplate"?

Thanks in Advanced!
Georgi Krustev
Telerik team
 answered on 08 May 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
Bronze
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
Bronze
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?