Telerik Forums
Kendo UI for jQuery Forum
3 answers
271 views
How do I create a container for a draggable widget using angular?
Petyo
Telerik team
 answered on 31 Oct 2014
2 answers
149 views
Hello

I am receiving errors when I create a stacked chart with more than 5 stacked bars. Errors are as follow:

1) Order not followed (01,07,06 ,05,04,03,02,) instead of (01,02,03,04,05,06,07)
2) Value of Source bar 1 and Source bar 2 gets swapped. Comparison value for those two bars are still correct. 

BookscanWeek is a string. I have tried setting it as integer to no avail.

Why does it not work when more than 5 bars? 

Help much appreciated


@(Html.Kendo().Chart(Model.StackChartData)
                              .Name("ValueStackChart")
                              .Theme("Silver")
                              
                              .ChartArea(chartArea => chartArea
                                  .Background("white")
                              )
                              .HtmlAttributes(new { style = "height:400px;" })
                              .Series(series =>
                              {
                                  series.Column(model => model.Value)
                                      .Name("#= group.value #")
                                      .Stack(true);
                              })
                            .Legend(legend => legend
                                .Visible(true)
                                .Position(ChartLegendPosition.Right)
                            )
                            .CategoryAxis(axis => axis
                                .Categories(model => model.BookscanWeek)
                                .Labels(labels => labels.Rotation(270))
                              
                            )
                            .ValueAxis(axis => axis.Numeric("Value")
                                .Labels(labels => labels
                                    .Format("R {0:N}")
                                    .Skip(2)
                                    .Step(2)
                                )
                              )
                              .DataSource(dataSource => dataSource
                                    .Group(group => group.Add(model => model.Element))
                                    
                                )
                              .Tooltip(tooltip => tooltip
                                  .Visible(true)
                                  .Format("R {0:N}")
                              ))
Jako
Top achievements
Rank 1
 answered on 31 Oct 2014
3 answers
751 views
Hi, in this dojo, http://dojo.telerik.com/@ximnet/iciqu, I am trying to validate the form when the submit button is clicked.
However I get error 'Uncaught TypeError: undefined is not a function'

Is this the correct way to validate a validator?

Thanks.


Rosen
Telerik team
 answered on 31 Oct 2014
1 answer
123 views
Is it possible to define the grid columns in html using angularjs markup ?

I would rather not have the ui guys playing around with my javascript :)
Alexander Valchev
Telerik team
 answered on 30 Oct 2014
1 answer
95 views
Hi,
I can't change pages in my grid. I followed the instructions and I looked for a solution in the forum without success.
When the page is loaded, I can see the grid with the data but I can't see the page numbers below.
No error appears in the console until I press the key to go to the next page. When I click next I get the following error:

Uncaught TypeError: undefined is not a function
kendo.dataviz.min.js:12
dt.extend.success kendo.dataviz.min.js:12
proxy jquery-2.0.3.js:731
n.success kendo.web.min.js:11
fire jquery-2.0.3.js:2913
self.fireWith jquery-2.0.3.js:3025
done jquery-2.0.3.js:7400(anonymous function) 

When I loaded the page it request the followed data to Odata service (see the FirstRequest.txt attachment)
After click the next button the request is in the second attachment, and it seems it forget the filter parameter.

this is my code:

    $(document).ready(function () {
        $('#Messages').kendoGrid({
            dataSource: {

                type: "odata",
                transport: {
                    read: "/Services/PerseoDataService.svc/JobMessages()",
                        dataType: "json"
                    },
                    schema: {
                        data: function (data) {
                            if (data.value) {
                                return data.value;
                            }
                            delete data["odata.metadata"];
                            return [data];
                        },
                        total: function (data) {
                            return data['odata.count'];

                        },
                        model: {
                            fields: {
                                Code : {type: "int"},
                                Date: { type: "date" },
                                Priority: { type: "int" },
                                Severity: { type: "string" },
                                Message: { type: "string" },
                            }
                        }
                    },
                    filter: { field: "JobKey", operator: "eq", value: "@Model.ID" },
                    pageSize: 15,
                    batch: false,
                    serverPaging: true,
                    serverFiltering: true,
                    serverSorting: true,
                    sort: { field: "Priority", dir: "asc" }
                },
                //scrollable: {
                //    virtual: true
                //},
                //height: 350,
                filterable: true,
                sortable: true,
                pageable: true,
                resizable: true,
                groupable: false,
                selectable: "row",
                columns: [
                    { field: "Priority", title: "#", width: 30, filterable: false },
                    { field: "Date", title: "Data", width: 90, template: "#= kendo.toString(Date,'HH:mm:ss') #" }, //
                    { field: "Severity", title: "Liv", width: 90 },
                    { field: "Message", title: "Messaggio", }
                ],
                resize: function() {
                    // user has finished resizing the window
                   // var height = 350;
                   //$(".k-grid-content").height(height);
                }
            });
            $("#details").children().prop('disabled', true);
        });

Thank you

Claudio
            
Rosen
Telerik team
 answered on 30 Oct 2014
3 answers
2.5K+ views
Anyone have js code snippet to select all grid rows?

I don't have checkboxes or anything. I just want the rows to go into the selected state.
Andrew
Top achievements
Rank 1
 answered on 30 Oct 2014
2 answers
714 views
Hi,
I am playing with the new feature of the Grid "Filtering row". Is it possible to change the template per field? For instance, I find a filtering Textbox for an ID field too big and would like to change its width.

Thank you,
BH
Bilal
Top achievements
Rank 2
 answered on 30 Oct 2014
1 answer
92 views
Hi, I am using the Popover control on a web app which is intended to be cross-platform from desktop to tablet.  On tablet devices, if a popover is open when the device orientation changes, the popover does not relocate itself to the correct relative position.  See this jsbin from an iPad for an example:

http://jsbin.com/jomehotuka

Can this be fixed, or is there a workaround known to work well?
Petyo
Telerik team
 answered on 30 Oct 2014
1 answer
245 views
See the following link in either Chrome or Safari on iOS 6: http://dojo.telerik.com/aXeGe

The Autocomplete options do not populate, nor can I actually get any letters typed into the field on either browser listed above.  Help please!
Alexander Valchev
Telerik team
 answered on 30 Oct 2014
7 answers
626 views
Hello!

The Rails service I connecting to, sends certain important data in the HTTP headers . I' can't figure out how to access that

Here is what I'm trying to do  - See schema {total } below in bold
01.productsDataSource = new kendo.data.DataSource({
02.  autoSync: true,
03.  pageSize: 10,
04.  serverPaging: true,
05.  serverSorting: true,
06.  serverFiltering: true,
07.  //serverGrouping: true,
08.  schema: {
09.    data: "data",
10.    total: "count", // THIS needs to be read from X-Total:31067  - line 9 in the code block below.
11.    model: {
12.      fields: {
13.        name:            {type: "string"},
14.        description:     {type: "string"},
15.        id:              {type: "number"}
16.      }
17.    }
18.  }
19.});

Response Headers
01.Server:nginx/1.6.0 + Phusion Passenger 4.0.42
02.Status:200 OK
03.X-Meta-Request-Version:0.3.4
04.X-Next-Page:2
05.X-Page:1
06.X-Powered-By:Phusion Passenger 4.0.42
07.X-Request-Id:1fd5e3b7541e7c0fee888b3799a26990
08.X-Runtime:0.238255
09.X-Total:31067
10.X-Total-Pages:1243
11.X-UA-Compatible:IE=Edge,chrome=1


Thank you!
Petur Subev
Telerik team
 answered on 30 Oct 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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?