Telerik Forums
Kendo UI for jQuery Forum
1 answer
152 views
How do I intercept both Edit and create on the grid so I can forward it to another page? Is there a way to add custom commands?
Alexander Valchev
Telerik team
 answered on 16 Apr 2012
8 answers
191 views
I have an AJAX call, which updates a Highcharts chart and is supposed to update a Kendo Grid, as well. The data returned from AJAX is updated, but the grid doesn't refresh.

This is the setup for the grid's dataSource:
var smry_data = [{
   mean          : rtrn_data.SUMMARY["Mean"]
,   std_deviation : rtrn_data.SUMMARY["Std. Deviation"]
,   median        : rtrn_data.SUMMARY["Median"]
,   mode          : rtrn_data.SUMMARY["Mode"]
,   range         : rtrn_data.SUMMARY["Range"]
,   minimum       : rtrn_data.SUMMARY["Minimum"]
,   maximum       : rtrn_data.SUMMARY["Maximum"]
,   count         : rtrn_data.SUMMARY["Count"]
,   quintile20    : rtrn_data.SUMMARY["Quintile 20%"]
,   quintile40    : rtrn_data.SUMMARY["Quintile 40%"]
,   quintile60    : rtrn_data.SUMMARY["Quintile 60%"]
,   quintile80    : rtrn_data.SUMMARY["Quintile 80%"]
,   quintile100   : rtrn_data.SUMMARY["Quintile 100%"]
}];

And this is the JS for the Kendo Grid:
   if(!$("#cntr-smry").data("kendoGrid")) {
    dtsc_smry_data = new kendo.data.DataSource({
        data   : smry_data
    ,   schema : {
            model : {
                fields : {
                    mean          : {type : "number"}
                ,   std_deviation : {type : "number"}
                ,   median        : {type : "number"}
                ,   mode          : {type : "number"}
                ,   range         : {type : "number"}
                ,   minimum       : {type : "number"}
                ,   maximum       : {type : "number"}
                ,   count         : {type : "number"}
                ,   quintile20    : {type : "number"}
                ,   quintile40    : {type : "number"}
                ,   quintile60    : {type : "number"}
                ,   quintile80    : {type : "number"}
                ,   quintile100   : {type : "number"}
                }
            }
        }
    });
 
    $("#cntr-smry").kendoGrid({
        dataSource  : dtsc_smry_data
    ,   columns     : [
            {field : "mean",          title : "Mean",           template : '<span style="float:right;" class="fontBold">#=kendo.toString(mean, "n1")#</span>'}
        ,   {field : "std_deviation", title : "Std. Deviation", template : '<span style="float:right;" class="fontBold">#=kendo.toString(std_deviation, "n1")#</span>'}
        ,   {field : "median",        title : "Median",         template : '<span style="float:right;" class="fontBold">#=kendo.toString(median, "n1")#</span>'}
        ,   {field : "mode",          title : "Mode",           template : '<span style="float:right;" class="fontBold">#=kendo.toString(mode, "n0")#</span>'}
        ,   {field : "range",         title : "Range",          template : '<span style="float:right;" class="fontBold">#=kendo.toString(range, "n1")#</span>'}
        ,   {field : "minimum",       title : "Minimum",        template : '<span style="float:right;" class="fontBold">#=kendo.toString(minimum, "n1")#</span>'}
        ,   {field : "maximum",       title : "Maximum",        template : '<span style="float:right;" class="fontBold">#=kendo.toString(maximum, "n1")#</span>'}
        ,   {field : "count",         title : "Count",          template : '<span style="float:right;" class="fontBold">#=kendo.toString(count, "n0")#</span>'}
        ,   {field : "quintile20",    title : "Quintile 20%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile20, "n1")#</span>'}
        ,   {field : "quintile40",    title : "Quintile 40%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile40, "n1")#</span>'}
        ,   {field : "quintile60",    title : "Quintile 60%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile60, "n1")#</span>'}
        ,   {field : "quintile80",    title : "Quintile 80%",   template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile80, "n1")#</span>'}
        ,   {field : "quintile100",   title : "Quintile 100%",  template : '<span style="float:right;" class="fontBold">#=kendo.toString(quintile100, "n1")#</span>'}
        ]
    });
} else {
    $("#cntr-smry").data("kendoGrid").dataSource.read();
}

I had thought this would work, but the grid stays the same. I know I must be missing a command somewhere, but I'm just not seeing it.
Atanas Korchev
Telerik team
 answered on 16 Apr 2012
1 answer
136 views
Hi,

From the Kendo UI web page I can create a bookmarklet (http://demos.kendoui.com/themebuilder/index.html).
I then go in my page and launch the bookmarklet and I receive no error message. It seems that Theme Builder is finding Kendo controls in my page.
If I open the Theme Builder with my own page and change some values, my Widgets on the page doesn't change.
There is certainly a piece of code missing in my page to allows this.

I want to do the same as the Kendo UI page but with my own page.
Someone already did this? 
Thanks.
Alex Gyoshev
Telerik team
 answered on 16 Apr 2012
1 answer
322 views
Title says it.  Bonus points if I can specify different tooltips (i.e on the pointer - explaining to the user where the value came from, on the ranges - explaining to the user why the range goals are as they are, etc).
Iliana Dyankova
Telerik team
 answered on 16 Apr 2012
1 answer
236 views
In Chrome when I try to print the Demo Pie Chart, not all of the color is filled in and it looks really bad. I want to use the KendoUI pie chart but my users need to be able to print it or capture it into a PDF file using WebGrabber. Is there a property that is needed to be set to allow clean printing? See attached Gif for additional details.
Alexander Valchev
Telerik team
 answered on 16 Apr 2012
1 answer
75 views

Javascript Dependencies for Grid. Item 15. kendo.pageable.js (if paging is enabled) substitute on kendo.pager.js

http://www.kendoui.com/documentation/javascript-dependencies.aspx

Atanas Korchev
Telerik team
 answered on 16 Apr 2012
1 answer
101 views
I first purchased KendoUI and then about a month ago upgraded to the Ultimate Collection.  I would like to understand more Telerik's view as to how KendoUI fits in with the ASP.net and MVC3 Telerik rad controls, and whether  it is appropriate to mix Kendo UI controls with Telerik ASP.net or MVC3 projects, and if so, when is it best to do so?

Alex Gyoshev
Telerik team
 answered on 16 Apr 2012
1 answer
151 views
Apologies if this is a silly question, but one concern I have about KendoUI websites (and client side binding generally) is that if a grid binds client side to json data, then the entire data source (or at least the entire results of the query returning Json) is visible to anyone in the web page that is returned, simply by doing view source for that page.

That may be ok for publicly available data, such as Twitter feeds, or movie databases, or products from a company website (where all the products can be viewed), but for financial, social or medical applications where users may have personal data, it would violate security and data protection for the entire query result set to be visible in a web page via json. 

So please would Telerik and or the KendoUI tema comment on when you feel that client binding is acceptable and when it is not?
(Comments from anyone else re this are welcome too!)

Many thanks

Patrick
Alex Gyoshev
Telerik team
 answered on 16 Apr 2012
15 answers
2.5K+ views
Hi,

I am wondering if you will support enabling/disabling columns in the grid on the flight. I'm thinking of something similar to this (see attached image).

See the demo for full interaction. 

/Jacob
Dimo
Telerik team
 answered on 16 Apr 2012
1 answer
98 views
Hi,
 i have written a code for taking json data from a php and putting to listview ,it works great in localhost ,
when i put the php file in a webserver and called in javascript it showing eeror and not getting data.


this method i have  used 
 var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                     
                       //url: "userchk.php",    //this works in localhost  
                       url: "http://example.com/web/userchk.php",  this is not working 
                       
                        dataType: "json",
                        data: { 
                            q: "javascript"
                        }
                    }
                },

first url data is geting in localhost and works great, second url is not working(but data showing  if we run the url in a browser)

it show Error

XMLHttpRequest cannot load http://example.com/web/userchk.php?q=javascript. Origin http://localhost is not allowed by Access-Control-Allow-Origin.

waiting for a good response

Sajid
Top achievements
Rank 1
 answered on 16 Apr 2012
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?