Telerik Forums
Kendo UI for jQuery Forum
2 answers
322 views
Hi, I'm implementing a Gantt Chart on .NET using data from my own database. I have defined the JSON array's attributes just as in a demo on your website. The chart is plotted, but the hierarchy in which I have organized my data such as the parent-child relationships are off, i.e. the hierarchy does not work in the way the relationships are defined in the JSON data. My hierarchy is much simpler than the demo on your documentation. My JSON is as follows. As you may expect, it's a bit too long. I have also attached a screenshot of the Gantt and when you compare it with the JSON, you'd see that the hierarchy is off. Can you figure out what I've done wrong ?
[
  {
    "ID": 23,
    "orderNo": "200023",
    "opnNo": null,
    "parentID": null,
    "startDate": "/Date(987013800000)/",
    "finDate": "/Date(987013800000)/",
    "title": "Order 1",
    "percentComplete": 0.43,
    "summary": true,
    "expanded": true
  },
  {
    "ID": 27,
    "orderNo": "200027",
    "opnNo": null,
    "parentID": null,
    "startDate": "/Date(980447400000)/",
    "finDate": "/Date(980447400000)/",
    "title": "Order 2",
    "percentComplete": 0.67,
    "summary": true,
    "expanded": true
  },
  {
    "ID": 25,
    "orderNo": "200025",
    "opnNo": null,
    "parentID": null,
    "startDate": "/Date(978373800000)/",
    "finDate": "/Date(978373800000)/",
    "title": "Order 3",
    "percentComplete": 0.56,
    "summary": true,
    "expanded": true
  },
  {
    "ID": 33,
    "orderNo": "200033",
    "opnNo": null,
    "parentID": null,
    "startDate": "/Date(-62135596800000)/",
    "finDate": "/Date(-62135596800000)/",
    "title": "Order 4",
    "percentComplete": 0.89,
    "summary": true,
    "expanded": true
  },
  {
    "ID": 100,
    "orderNo": "200023",
    "opnNo": 10,
    "parentID": 23,
    "startDate": "/Date(978083400000)/",
    "finDate": "/Date(978085800000)/",
    "title": "Filling",
    "percentComplete": 0.2,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 101,
    "orderNo": "200023",
    "opnNo": 20,
    "parentID": 23,
    "startDate": "/Date(978083400000)/",
    "finDate": "/Date(978085800000)/",
    "title": "Labeling",
    "percentComplete": 0.2,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 102,
    "orderNo": "200023",
    "opnNo": 30,
    "parentID": 23,
    "startDate": "/Date(978085800000)/",
    "finDate": "/Date(978089400000)/",
    "title": "Cleaning mixer",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 103,
    "orderNo": "200023",
    "opnNo": 40,
    "parentID": 23,
    "startDate": "/Date(978085800000)/",
    "finDate": "/Date(978089400000)/",
    "title": "Cleaning filling line",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 104,
    "orderNo": "200025",
    "opnNo": 10,
    "parentID": 25,
    "startDate": "/Date(978428880000)/",
    "finDate": "/Date(978431400000)/",
    "title": "Filling",
    "percentComplete": 0.2,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 105,
    "orderNo": "200025",
    "opnNo": 20,
    "parentID": 25,
    "startDate": "/Date(978428880000)/",
    "finDate": "/Date(978431400000)/",
    "title": "Labeling",
    "percentComplete": 0.2,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 106,
    "orderNo": "200025",
    "opnNo": 30,
    "parentID": 25,
    "startDate": "/Date(978431400000)/",
    "finDate": "/Date(978435000000)/",
    "title": "Cleaning mixer",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 107,
    "orderNo": "200025",
    "opnNo": 40,
    "parentID": 25,
    "startDate": "/Date(978431400000)/",
    "finDate": "/Date(978435000000)/",
    "title": "Cleaning filling line",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 108,
    "orderNo": "200027",
    "opnNo": 10,
    "parentID": 27,
    "startDate": "/Date(980502360000)/",
    "finDate": "/Date(980505000000)/",
    "title": "Filling",
    "percentComplete": 0.2,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 109,
    "orderNo": "200027",
    "opnNo": 20,
    "parentID": 27,
    "startDate": "/Date(980502360000)/",
    "finDate": "/Date(980505000000)/",
    "title": "Labeling",
    "percentComplete": 0.2,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 110,
    "orderNo": "200027",
    "opnNo": 30,
    "parentID": 27,
    "startDate": "/Date(980505000000)/",
    "finDate": "/Date(980508600000)/",
    "title": "Cleaning mixer",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 111,
    "orderNo": "200027",
    "opnNo": 40,
    "parentID": 27,
    "startDate": "/Date(980505000000)/",
    "finDate": "/Date(980508600000)/",
    "title": "Cleaning filling line",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 112,
    "orderNo": "200033",
    "opnNo": 10,
    "parentID": 33,
    "startDate": "/Date(987068520000)/",
    "finDate": "/Date(987071400000)/",
    "title": "Filling",
    "percentComplete": 0.4,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 113,
    "orderNo": "200033",
    "opnNo": 20,
    "parentID": 33,
    "startDate": "/Date(987069240000)/",
    "finDate": "/Date(987071400000)/",
    "title": "Labeling",
    "percentComplete": 0.2,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 114,
    "orderNo": "200033",
    "opnNo": 30,
    "parentID": 33,
    "startDate": "/Date(987071400000)/",
    "finDate": "/Date(987075000000)/",
    "title": "Cleaning mixer",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  },
  {
    "ID": 115,
    "orderNo": "200033",
    "opnNo": 40,
    "parentID": 33,
    "startDate": "/Date(987071400000)/",
    "finDate": "/Date(987075000000)/",
    "title": "Cleaning filling line",
    "percentComplete": 1,
    "summary": false,
    "expanded": true
  }
]
Mohomed
Top achievements
Rank 1
 answered on 12 Oct 2017
3 answers
218 views

This issue is occurring in Chrome, I have not tried other browsers.

The issue can be observed in demo http://demos.telerik.com/kendo-ui/autocomplete/serverfiltering

Note the minLength: 3 setting.

Type in "che" per the hint.  Developer tools network activity will show the $filter parameter as [ substringof('che',tolower(ProductName)) ]. All fine and good.

Now clear "che" by clicking on clear (x).  The network activity tab will show a Products call back with a $filter parameter [ substringof('',tolower(ProductName)) ].  The minLength setting was obviously ignored and the filter actually pulls _all_ the data from the remote source.  In the example it is 77 items.   For real world scenarios an unfiltered query could return an application destroying amount of data.  Despite pulling all the data, no suggestions are shown -- I presume because at this point the minLength is honored and thus no suggestions

Q:  How can I prevent an unfiltered query when clear clicked ?

Q: How can I force the autocomplete data source to have no items when clear is clicked ?

Thanks, Richard

Nencho
Telerik team
 answered on 12 Oct 2017
1 answer
578 views

Hi!

Please have a look at this demo: http://dojo.telerik.com/AWamE

Last 2 columns should behave the same. Only difference between then is the format specifier, once is '%' second is 'prc'.

But they are not. The '%' sees the column as percentage, so:

1. Multiplies the value I give with 100

2. When editing, % remains in place, even though in the second part it disappears. I would like to have it gone

 

Any ideas on how to make the % fields behave just like other format specifiers?

Thanks!

 

Joana
Telerik team
 answered on 12 Oct 2017
3 answers
220 views
Hello,

On filter section we have extra logic (“or”, “and”). We need to remove “or”. How can we do this via settings?

Best regards,

Artem
Stefan
Telerik team
 answered on 12 Oct 2017
4 answers
467 views

all,

I am using MVC scheduler and have created using a custom template editor. In the editor template, I set the end date via jquery based on parameters that the user selects. When I select to save the schedule is not updating correctly and show the default 30 minute. If I refresh the page I see the correct date. Right now I have it so after a save I refresh the page but that's not very efficient. If I manually edit the end date, it works correctly. 

 

I am wondering if this is a bug or I maybe I am not setting the end date properly.

I did look at the sample on the how you can dynamically set the date and time. I know this is correct but doesn't seem to work in the .

 

Thanks in advance for the help,

-Max

Dimitar
Telerik team
 answered on 12 Oct 2017
1 answer
287 views

Hi,

How can I bind to the expand or collapse event from code? I tried:

 

 $("#collapsibleDiv").on("expand", function () {
                alert("expand");
            });

 

without sucess. 

Kind regards,

 

Marco

 

 

 

 

 

 

Ivan Danchev
Telerik team
 answered on 12 Oct 2017
15 answers
242 views
I have a Macbook with El Capitan and MS Word 2011. When I try to copy text from word doc by doing command C and command V, it paste the text as an image automatically so I have to do "Paste and Match Style". It only happens on Chrome and not on Firefox. Is there a way to simply paste as text and not as image?
Kaoru
Top achievements
Rank 1
 answered on 11 Oct 2017
2 answers
397 views

Hi,

Currently the scheduler has Clone Events to demonstrates how to clone events in the Scheduler. But how we can copy and paste an event on scheduler.

Regards.

Ivan Danchev
Telerik team
 answered on 11 Oct 2017
2 answers
137 views
I'd like to create a noRecords template for my grid with mvvm.

noRecords: {
   template: "nessun elemento"
 },

This is my kendo grid with mvvm.

<div id="a"
data-role="grid"
data-no-records="templateNoRecords"
    data-columns="[
                { 'title': 'ID', 'field': 'id'  },

    { 'title': 'ID', 'field': 'id'  }

        ]"
 data-bind="source: products.source,">
<script id="templateNoRecords" name="templateNoRecords" type="text/x-kendo-template">
      Nessun dato trovato
</script>
Preslav
Telerik team
 answered on 11 Oct 2017
1 answer
155 views
noRecords: {
    template: "nessun elemento"
  }

 

I'd like to do this but with mvvm.

This is my kendo grid:

 

               <div id="a"
                   data-role="grid"
                   data-no-records="templateNoRecords"
                   data-columns="[
                                { 'title': 'ID', 'field': 'id' ,hidden: true },
                           { 'title': 'Nome', 'field': 'nome' },
                    ]"
                   data-bind="source: products.source}">
               <script id="templateNoRecords" name="templateNoRecords" type="text/x-kendo-template">
                   Nessun dato trovato
               </script>
            </div>

 

Preslav
Telerik team
 answered on 11 Oct 2017
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?