Telerik Forums
Kendo UI for jQuery Forum
6 answers
268 views
I have my calendar MVVM bound, and I have an observable array with some dates...is there no way for me to bind the dates to the calendar so it'll apply (and remove) the k-state-selected class?

Thanks,
Steve
Kiril Nikolov
Telerik team
 answered on 21 Mar 2016
1 answer
347 views

Hi,

I was wondering if there is a way to set the tabstrip background color based on a bind.

I would like to change the color depending on a validation check.

thanks.

Dimiter Madjarov
Telerik team
 answered on 21 Mar 2016
1 answer
126 views

Hi

When i use kendo ui scheduler on my page it will not render properly. i removed other all CSS and checked but problem still there am'i missing something on configuration level? 

i have attached a screen shot of kendo scheduler look on my page

Regards

Vladimir Iliev
Telerik team
 answered on 21 Mar 2016
8 answers
318 views

Hello gents,

I saw that you offer support for ESRI with the map widget, can someone provide me an example on how that works, i mean there are example for 3 other types but not for this one, or i seemed to missed it. 

Much appreciated.

Best.

T. Tsonev
Telerik team
 answered on 21 Mar 2016
4 answers
448 views

I'm working on a simple prototype for using hierarchical grids and have used this as my baseline in the dojo and modified the dataSources to use locally defined data (instead of getting data back from the service).  I'm able to get the parent rows to load fine, however, none of the child records are loading (detailInit appears to fire as the first row's dropdown icon points down and a space appears between the first and second row as shown in the attached screenshot).

I'm sure the issue is somewhat simple, although I've been unable to locate an example that would indicate what I'm doing wrong.

Here's the code I'm attempting to run:

01.<!DOCTYPE html>
02.<html>
03.<head>
05.    <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
06.    <title></title>
07.    <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.1.226/styles/kendo.common-bootstrap.min.css" />
08.    <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.1.226/styles/kendo.bootstrap.min.css" />
09. 
10.    <script src="//kendo.cdn.telerik.com/2016.1.226/js/jquery.min.js"></script>
11.    <script src="//kendo.cdn.telerik.com/2016.1.226/js/kendo.all.min.js"></script>
12.</head>
13.<body>
14. 
15.        <div id="example">
16.            <div id="grid"></div>
17. 
18.            <script>
19.              $(document).ready(function() {
20.                var attachments = new kendo.data.DataSource({
21.                  data: [
22.                      { attachmentId: 1321, Name: "Product Roadmap.pptx", Versions: "3", Title:""},
23.                      { attachmentId: 1322, Name: "Release Timeline.xls", Versions: "1", Title:""},
24.                      { attachmentId: 1324, Name: "Requirements Analysis.docx", Versions: "2", Title:""}
25.                    ],
26.                    schema: {
27.                      model: {
28.                        id: "id",
29.                        expanded: true
30.                      }
31.                    }
32.                  });
33. 
34.                var versions = new kendo.data.DataSource({
35.                  data: [
36.                    { versionId: 1325, attachmentId: 1321, Status: "1321", VersionNumber: "1", Comment: "", Size:"1.23 MB", CreatedBy:"Landry, Kristi", CreationDate:""},
37.                    { versionId: 1326, attachmentId: 1321, Status: "1321", VersionNumber: "2", Comment: "", Size:"1.87 MB", CreatedBy:"Landry, Kristi", CreationDate:""},
38.                    { versionId: 1327, attachmentId: 1321, Status: "1321", VersionNumber: "3", Comment: "", Size:"1.91 MB", CreatedBy:"Smith, Michelle", CreationDate:""},
39.                    { versionId: 1328, attachmentId: 1324, Status: "1324", VersionNumber: "1", Comment: "", Size:"7.41 KB", CreatedBy:"Peters, Stacy", CreationDate:""},
40.                    { versionId: 1329, attachmentId: 1324, Status: "1324", VersionNumber: "1", Comment: "", Size:"4.43 MB", CreatedBy:"Franklin, Marshall", CreationDate:""},
41.                    { versionId: 1330, attachmentId: 1322, Status: "1322", VersionNumber: "2", Comment: "", Size:"4.71 MB", CreatedBy:"Peters, Stacy", CreationDate:""}
42.                  ]
43.                });
44.                 
45.                var element = $("#grid").kendoGrid({
46.                      dataBound: function() {
47.                        this.expandRow(this.tbody.find("tr.k-master-row").first());                     
48.                      },
49.                      dataSource: attachments,
50.                      height: 600,
51.                      sortable: true,
52.                      pageable: true,
53.                      detailInit: detailInit,
54.                      columns: [
55.                        {field: "attachmentId", title: "Attachment Id"},
56.                        {field: "Name", title: "Name"},
57.                        {field: "Versions", title: "Versions"},
58.                        {field: "Title"}
59.                      ]
60.                    });
61.              });
62. 
63.              function detailInit(e) {
64.                $("<div/>").appendTo(e.detailCell).kendoGrid({
65.                  dataSource: {
66.                    versions,
67.                    filter: { field: "attachmentId", operator: "eq", value: e.data.attachmentId }
68.                  },
69.                  columns: [
70.                    { field: "versionId", title: "Version Id"},
71.                    { field: "Status"},
72.                    { field: "VersionNumber", title:"Version Number"},
73.                    { field: "Comment"},
74.                    { field: "Size"},
75.                    { field: "CreatedBy", title: "Created By"},
76.                    { field: "CreationDate", title: "Creation Date"}
77.                  ]
78.                });
79.              }
80.          </script>
81.  </div>
82. 
83.  </body>
84.</html>

I've tried playing around with the filter on line 67 (including adding it to the versions datasource), but nothing seems to do the trick.

What am I missing?

Dimiter Madjarov
Telerik team
 answered on 21 Mar 2016
6 answers
234 views
Hello!

My Chart uses a rest API as datasource, here is sample response:
[{"us":5602,"them":6050,"Date":"2013-05-01T00:00:00"},
{"us":7192,"them":7120,"Date":"2013-04-01T00:00:00"},
{"us":6722,"them":7058,"Date":"2013-03-01T00:00:00"}]

I'm declaring lines chart with 
      categoryAxis: {
                        field: "Date",
                        type: "Date" ,
                        baseUnit: "month"
                        }                    
and I  get empty chart.
If I comment out 
      categoryAxis: {
                        field: "Date"
                       /*,
                        type: "Date" ,
                        baseUnit: "month" */
                       }   
then chart data is plotted (yaay!) but category axis looks really silly with lables like "2013-03-01T00:00:00"

What I'm missing here?
I've put sample here: http://jsbin.com/iqiqat/1/edit 

Thanks a lot!

KendoUI ver: 2013.1.319
AppsWiz
Top achievements
Rank 1
 answered on 21 Mar 2016
3 answers
358 views

I'm converting a jquery mobile app, a few pages at a time, and one page that is a kendo mobile ui page with 3 views:

1. tasklistfilterview is a view with an mvvm form that provides filtering info and then navigates to views 2 or 3 when they press the Go button.

2. tasklistgridview - shows results from view 1 in a grid

3. tasklistlistview - shows results from view 1 in a list

The user can then click a list item or grid item href with data-rel="external" that takes them to a detail view of the item.

My problem is when the user presses the back button, the grid or list views are shown as empty views with data-role="scollapsible".  I'd like to show the filterview.  

I've tried:  kendo.mobile.application.navigate("tasklistfilterview") in the jquery ready event.

 

Jim
Top achievements
Rank 1
 answered on 20 Mar 2016
2 answers
583 views

Hello,

I use last version of kendo ui library with angularjs and asp.net mvc 5 on server.

If I use remote data binding kendo.all.js return Maximum call stack size exceeded error.

Whats wrong?

Thanks

controller:

public class TestController : Controller
{
 
  [HttpGet, Route("category-tree")]
  public ActionResult TreeListCategories([DataSourceRequest] DataSourceRequest request)
  {
    var allCategories = new List<CategoryModel> {
      new CategoryModel {Id = 1, Name = "First", ParentCategoryId = null},
      new CategoryModel {Id = 2, Name = "Second", ParentCategoryId = 1},
      new CategoryModel {Id = 3, Name = "Third", ParentCategoryId = 2},
      new CategoryModel {Id = 4, Name = "Fourth", ParentCategoryId = 3},
    };
 
    var result = allCategories.ToTreeDataSourceResult(request);
    return Json(result, JsonRequestBehavior.AllowGet);
 
  }
 
  public class CategoryModel
  {
    public int? Id { get; set; }
    public string Name { get; set; }
    public int? ParentCategoryId { get; set; }
  }
 
}

 

html code :

<kendo-tree-list k-options="treelistOptions"></kendo-tree-list>

angular js code :

 

$scope.treelistOptions = {
       dataSource: {
         type: "aspnetmvc-ajax",
         transport: {
           read: {
             type:'GET',
             url: 'category-tree',
           }
         },
         schema: {
           model: {

             Id: "categoryId",

             ParentId:"parentCategoryId",
             fields: {
               categoryId: { field: "categoryId", type: "number", nullable: false },
               parentCategoryId: { field: "parentCategoryId", nullable: true },
               name: { field: "name" },}
           }
         }
       },
       columns: [
        { field: "Name" },
       ],
     };

 

David
Top achievements
Rank 1
 answered on 18 Mar 2016
3 answers
203 views

Hi

I'm having a problem where some shapes are blurred which reduces the visible appeal of my page. Again, I can't seem to be able to create a snippet with Dojo. I just get an error message saying "Can't create snippet. Retry"

In the example I posted below, you will see the line underlying the names show perfectly for some nodes and blurred for others.

The problem seems to occur when the number of levels is 3 or more.

Please help!

<!DOCTYPE html>
<html>
<head>
    <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
    <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.1.226/styles/kendo.moonlight.min.css" />
 
    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
</head>
<body>
<div id="example">
    <div id="diagram"></div>
    <script>
        var data = [{
            firstName: "Antonio",
            lastName: "Moreno",
            image: "antonio.jpg",
            title: "Team Lead",
            colorScheme: "#FFF",
            items: [{
                firstName: "Elizabeth",
                image: "elizabeth.jpg",
                lastName: "Brown",
                title: "Design Lead",
                colorScheme: "#ef6944",
                items: [{
                    firstName: "Ann",
                    lastName: "Devon",
                    image: "ann.jpg",
                    title: "UI Designer",
                    colorScheme: "#ef6944"
                }]
            }, {
                firstName: "Diego",
                lastName: "Roel",
                image: "diego.jpg",
                title: "QA Engineer",
                colorScheme: "#ee587b",
                items: [{
                    firstName: "Fran",
                    lastName: "Wilson",
                    image: "fran.jpg",
                    title: "QA Intern",
                    colorScheme: "#ee587b"
                }]
            }, {
                firstName: "Felipe",
                lastName: "Izquiedro",
                image: "felipe.jpg",
                title: "Senior Developer",
                colorScheme: "#75be16",
                items: [{
                firstName: "Elizabeth",
                image: "elizabeth.jpg",
                lastName: "Brown",
                title: "Design Lead",
                colorScheme: "#ef6944",
                items: [{
                    firstName: "Ann",
                    lastName: "Devon",
                    image: "ann.jpg",
                    title: "UI Designer",
                    colorScheme: "#ef6944"
                }]
            }, {
                firstName: "Diego",
                lastName: "Roel",
                image: "diego.jpg",
                title: "QA Engineer",
                colorScheme: "#ee587b",
                items: [{
                    firstName: "Fran",
                    lastName: "Wilson",
                    image: "fran.jpg",
                    title: "QA Intern",
                    colorScheme: "#ee587b"
                }]
            }, {
                firstName: "Felipe",
                lastName: "Izquiedro",
                image: "felipe.jpg",
                title: "Senior Developer",
                colorScheme: "#75be16",
                items: [{
                    firstName: "Daniel",
                    lastName: "Tonini",
                    image: "daniel.jpg",
                    title: "Developer",
                    colorScheme: "#75be16"
                }]
            }]
            }]
        }];
 
        function visualTemplate(options) {
            var dataviz = kendo.dataviz;
            var g = new dataviz.diagram.Group();
            var dataItem = options.dataItem;
 
            g.append(new dataviz.diagram.Rectangle({
                width: 210,
                height: 75,
                stroke: {
                    width: 0
                },
                fill: {
                    gradient: {
                        type: "linear",
                        stops: [{
                            color: "#293540",
                            offset: 0,
                            opacity: 0.5
                        }, {
                            color: "#293540",
                            offset: 1,
                            opacity: 0.6
                        }]
                    }
                }
            }));
          g.append(new dataviz.diagram.Rectangle({
                    width: 110,
                    height: 1,
                    x: 80,
                    y: 60,
                    stroke: {  
                        width: 0,
                        color: "#293540"
                    },
                    fill: {
                        gradient: {
                            type: "linear",
                            stops: [{
                                color: "#FFF",
                                offset: 0,
                                opacity: 0.1
                            }, {
                                color: "#FFF",
                                offset: 1,
                                opacity: 1
                            }]
                        }
                    }
                }));
            g.append(new dataviz.diagram.TextBlock({
                text: dataItem.firstName + " " + dataItem.lastName,
                x: 85,
                y: 20,
                fill: "#fff"
            }));
 
            g.append(new dataviz.diagram.TextBlock({
                text: dataItem.title,
                x: 85,
                y: 40,
                fill: "#fff"
            }));
 
            g.append(new dataviz.diagram.Image({
                source: "../content/dataviz/diagram/people/" + dataItem.image,
                x: 3,
                y: 3,
                width: 68,
                height: 68
            }));
 
            return g;
        }
 
        function createDiagram() {
            $("#diagram").kendoDiagram({
                dataSource: new kendo.data.HierarchicalDataSource({
                    data: data,
                    schema: {
                        model: {
                            children: "items"
                        }
                    }
                }),
                layout: {
                    type: "layered"
                },
                shapeDefaults: {
                    visual: visualTemplate
                },
                connectionDefaults: {
                    stroke: {
                        color: "#979797",
                        width: 2
                    }
                }
            });
 
            var diagram = $("#diagram").getKendoDiagram();
            diagram.bringIntoView(diagram.shapes);
        }
 
        $(document).ready(createDiagram);
    </script>
</div>
 
 
</body>
</html>

Niko
Telerik team
 answered on 18 Mar 2016
8 answers
165 views

For example:

<input id="myinput"
   data-role="autocomplete"
   data-delay = "100"
   data-min-length = "3"
   data-text-field = "value"
   data-source="WHAT GOES HERE???" />

I can define a DataSource in my js and then specify the variable name in the markup, and that works, but I want to be able to define the datasource in the html.

Is it possible? If so, any examples? The demos and docs don't seem to show how to do this.

Here's my dataSource for reference:

billingEdit.dataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    // the remote service url
                    url: baseAreaUrl + "Lookup/CustomerKendo"
                }
            },
            serverFiltering: true,
            schema: {
               data: "Data"
            }
        });

I tried to copy the javascript object that I am passing to the datasource into the data-source and no go.

 

Bob
Top achievements
Rank 1
 answered on 18 Mar 2016
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?