Telerik Forums
Kendo UI for jQuery Forum
1 answer
98 views
I want to display multiple charts side by side in 250x250 pixel squares.  What do I need to set for this? 
Hristo Germanov
Telerik team
 answered on 04 Nov 2014
2 answers
184 views
Hi all,

I am trying to add custom template for the nested grid, please, take a look on the my code:

next example works pretty nice:

@*FIRST GRID*@
@(Html.Kendo().Grid<MyAmazingModel>()
        .Name("FirstGrid")
        .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(someValue)
                    .ServerOperation(true)
                    .Read(read => read.Action("ControllerAction", "ControllerName", new { Area = "AreaName" }).Data("method"))
                 )
        .Columns(columns =>
        {
            columns.Bound(x => x.MyProperty);
        })
        .Sortable()
        .Scrollable(x => x.Height("auto"))
        .Resizable(x => x.Columns(true))
        .Navigatable()
        .ClientDetailTemplateId("first-nested-grid")
      )

@*SECOND GRID*@
<script id="first-nested-grid" type="text/kendo-tmpl">
    @(Html.Kendo().Grid<MyAmazingModel2>()
          .Name("SecondGrid_#=ID#")
          .DataSource(dataSource => dataSource
              .Ajax()
              .ServerOperation(true)
              .Read(read => read.Action("ControllerAction2", "ControllerName", new { Area = "AreaName" }).Data("method"))
          )
          .Columns(columns =>
          {
              columns.Bound(x => x.MyProperty);
          })
          .Sortable()
          .Scrollable(x => x.Height("auto"))
          .Resizable(x => x.Columns(true))
          .Navigatable()
          .ClientDetailTemplateId("second-nested-grid")
          .ToClientTemplate()
          )
</script>

@*THIRD GRID*@
<script id="second-nested-grid" type="text/kendo-tmpl">    
    @(Html.Kendo().Grid<MyAmazingModel3>()
          .Name("ThirdGrid_#=ID#")
          .DataSource(dataSource => dataSource
              .Ajax()
              .ServerOperation(true)
              .Read(read => read.Action("ControllerAction3", "ControllerName", new { Area = "AreaName" }).Data("method")))
                  .Columns(columns =>
                  {
                      columns.Bound(x => x.MyProperty);              
                  })
          .Resizable(x => x.Columns(true))
          .Navigatable()
          .ToClientTemplate()
          )          
</script>

But.... if I add template for the last-level grid, I cannot read data from the properties of "MyAmazingModel3" model inside template of "ThirdGrid
"... it sounds odd, but inside "ThirdGrid" i see data from "SecondGrid".

Probably i skipped something in the documentation or i have to pass model from parent grid to child one?

Please advise.

Thanks in advance!





Wojciech
Top achievements
Rank 1
 answered on 04 Nov 2014
1 answer
194 views
I load window:
@(Html.Kendo().Window().Name("windowCreateWO")
          .Title("Step One - Choose vendors for unassigned work").Modal(true).Visible(false).Height(480).Width(870)
          .LoadContentFrom("ChooseVendors", "WorkOrders", new { inspectionId = @Model.Id }))                   //this url â„–1

then loaded new content refresh window:

window.refresh({
                url: "@Url.Action("CreateWorkOrder", "WorkOrders", new {inspectionId = @Model.Id})",  //this url â„–2
                type: "GET"
            });

after the close of the page and I need the user to re-open the page I download content by url â„–1, I need to reset the url to the original state. Advice please.
Daniel
Telerik team
 answered on 04 Nov 2014
2 answers
119 views

Hi ,

I have a List View which I would like to show on the notification widget using a template.

The notification widget template does not seem to support MVVM binding.

Have attached a sample code showing
          List View being displayed bound to a template using MVVM
          Notification widget being shown binding a simple text
          Notification widget being shown using the List Template ( This Fails)


Please see attached file for code

Regards

Balachander


   

Daniel
Telerik team
 answered on 04 Nov 2014
3 answers
169 views
How do I get rid of the line that appears when you zoom or move around a stockchart?  I have attached a picture to show the line in question.

Thanks,
Joe
Iliana Dyankova
Telerik team
 answered on 04 Nov 2014
16 answers
512 views
Dear All, quite newby with Kendo UI I am trying to adapt the grid editing-popup example (in the zip file).
I would like to catch the event of the update button and use the $.ajax function to send the values to update my database (same thing for delete and add).
How I can do that?
My code is as follow.
Thanks for your help

01.<script>
02.                $(document).ready(function () {
03.                    var crudServiceBaseUrl = "http://demos.telerik.com/kendo-ui/service",
04.                        dataSource = new kendo.data.DataSource({
05.                            transport: {
06.                                read:  function (options) {
07.                                        $.ajax({
08.                                            type: 'GET',
09.                                            url: "http://localhost/telererik-kendoui/datasource.php",
10.                                            dataType: "json",
11.                                            success: function (result) {
12.                                                options.success(result);
13.                                            }
14.                                        });
15.                                },
16.                                update: function (e) {alert(this.data);options.success();
17.                                },
18.                                destroy: {
19.                                    url: crudServiceBaseUrl + "/Products/Destroy",
20.                                    dataType: "jsonp"
21.                                },
22.                                create: {
23.                                    url: crudServiceBaseUrl + "/Products/Create",
24.                                    dataType: "jsonp"
25.                                },
26.                                parameterMap: function(options, operation) {
27.                                    if (operation !== "read" && options.models) {
28.                                        return {models: kendo.stringify(options.models)};
29.                                    }
30.                                }
31.                            },
32.                            batch: true,
33.                            pageSize: 20,
34.                            schema: {
35.                                model: {
36.                                    id: "ProductID",
37.                                    fields: {
38.                                        ProductID: { editable: false, nullable: true },
39.                                        ProductName: { validation: { required: true } },
40.                                        UnitPrice: { type: "number", validation: { required: true, min: 1} },
41.                                        Discontinued: { type: "boolean" },
42.                                        UnitsInStock: { type: "number", validation: { min: 0, required: true } }
43.                                    }
44.                                }
45.                            }
46.                        });
47. 
48.                    $("#grid").kendoGrid({
49.                        dataSource: dataSource,
50.                        pageable: true,
51.                        height: 550,
52.                        toolbar: ["create"],
53.                        columns: [
54.                            { field:"ProductName", title: "Product Name" },
55.                            { field: "UnitPrice", title:"Unit Price", format: "{0:c}", width: "120px" },
56.                            { field: "UnitsInStock", title:"Units In Stock", width: "120px" },
57.                            { field: "Discontinued", width: "120px" },
58.                            { command: ["edit", "destroy"], title: " ", width: "200px" }],
59.                        editable: "popup"
60.                    });
61.                });
62.            </script>
Daniel
Telerik team
 answered on 03 Nov 2014
3 answers
715 views
Pages load very long.
Sebastian
Telerik team
 answered on 03 Nov 2014
4 answers
330 views
When virtual scrolling of a grid is enabled, it interferes with the scrolling of the page when using the mouse wheel.

You can see an example of the issue here: http://jsfiddle.net/RxHps/1/

Is there a way to make virtual scrolling not interfering with the page scroll ?
Danny Fritz
Top achievements
Rank 1
 answered on 03 Nov 2014
3 answers
202 views
Hi there,

I have a Pie and Doughnut chats with StartAngle: 180. The segments of the Pie or  Doughnut flows in clockwise direction.

I needed it to be flow in anti-clockwise direction keeping the startAngle at 180
.

How can I achieve this in Kendo UI? what is the setting you recommend?

Attached the image of Desired and Actual together if that may be of any use for you to help me.

Many thanks in advance.
-Vinnie  
Hristo Germanov
Telerik team
 answered on 03 Nov 2014
3 answers
216 views
Hi,

I'm using kendo grid with RTL css (Q4).

For some reason, on chrome browser, the table section is
wider than the "k-grid-content" div,
it seems like, the wide is calculated with additional space for the scroller.

It causes an unnecessary stroller, and worse, the rows and the grid-header are not adjusted.

When I use the same grid with regular css (not rtl). It looks fine
and as I mentioned, I face this problem only in chrome browser (last version).

Can you advise?

Attached screenShots of the grid.

Thanks !
Dimo
Telerik team
 answered on 03 Nov 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
Drag and Drop
Map
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?