Telerik Forums
Kendo UI for jQuery Forum
1 answer
192 views
I am using some css files in my kendo mobile application. But I am getting this error when I try to edit a div which contains this css. 

Error:
"Unable to edit 'file ../kendo.default.min.css'. The style sheet must be part of the current project and the project must be a web site or web application project."

Let me know what I am doing wrong.

Thanks.
Petyo
Telerik team
 answered on 02 Sep 2014
1 answer
122 views
Hi

I’m looking for a specific functionality in gantt chart control. For example: i have a record where <Summary> property has a "true" value and it’s a parent container for three particular child operations. By default this record that i've mentioned above is displaying as  a status progressbar (percent). But despite / instead of that i’d like to see additional blank spaces, it means a time periods where is a gap between start/end values.

Best regards

Lucas
Bozhidar
Telerik team
 answered on 02 Sep 2014
1 answer
139 views
Greetings, I have a question regarding the remote datasource with server paging. My attempts were not entirely successful so please shed some light on what I was doing wrong.
 
Basically I have a template that sets up the search result view that contains a listview as its content. The listview is set up via the template. I have a search button that creates the datasource that the listview reads from, and then navigate to the search result view.
 
On chrome it seems to be working ok but when I load it on a device with cordova, it throws an error saying 'undefined' is not an object evaluating makeVirtual. The only problem I noticed is that sometimes the items in the listview is not laid out properly on the first show. Maybe this has something to do with the problem I’m having?
 
Here is my code:

//this is actually assigned globally
var dataSource = new kendo.data.DataSource({
    transport: {
    read: {
     url: window.webserviceUrl + "/Search",
     dataType: "xml"
},
parameterMap: function(data, type) {
return String.format("categoryId={0}&place={1}&keywords={2}&countryName={3}&page={4}&pageSize={5}",
dataItem.id,
place,
keywords,
"Australia",
data.page,
pageSize);
   }
},
schema: {
type: "xml",
data: "/Products/product",
model: {
fields: {
                            id: "id/text()",
                            name: "name/text()",
                            highlight: "highlight/text()"
                            }
                    }
},
change: function(e) {
AW5.app.hideLoading();
},
pageSize: pageSize,
serverPaging: true
    });

    if ($("#product-list-1 .product-list").data("kendoMobileListView")) {
    $("#product-list-1 .product-list").data("kendoMobileListView").setDataSource(ds);
    }

AW5.app.navigate("#product-list-1");

///Template

    <!-- Category product list view -->
    <div id="product-list-#= instance #" data-role="view" class="member-only" data-module-instance="#= instance #" data-use-native-scrolling="true">
        <header data-role="header">
            <div data-role="navbar">
                <a class="nav-button" data-align="left" data-role="backbutton"></a>
                <span data-role="view-title">Search results</span>
            </div>
        </header>
        <ul class="product-list" data-source="ds (globally set)" data-role="listview" data-template="product-template" data-click="products.click" data-endless-scroll="true">
        </ul>
    </div>
Alexander Valchev
Telerik team
 answered on 01 Sep 2014
4 answers
77 views
I have an issue where I have a hidden column on my grid and selectable is set as "multiple cell".

I have two hidden columns that are hidden by default as the user can select them if they want to see additional data.

If I attempt to select cells while the columns are hidden the grid re-sizes and displays the data in a strange format. If I remove hidden columns then this behavior no longer occurs.
Dimiter Madjarov
Telerik team
 answered on 01 Sep 2014
1 answer
119 views
Hello,

When I use the toolbar inside a tabpanel it crashes when the tab item with the toolbar is activated. This only happens when I use the Razor method Resizable(false). If this method  is not called or called with input parameter true it works fine. Kendo crashes in the following toolbar function, the problem is that popup.close is undefined.

_resize: function(e) {
    var t = e.width;
    this.popup.close(), this._shrink(t), this._stretch(t), this._markVisibles(), this._toggleOverflowAnchor()
},

Kind regards,
Bert
Alexander Valchev
Telerik team
 answered on 01 Sep 2014
1 answer
69 views
Hello,

I want to create a line chart and bind the data using JSON file. This is my code but it is not working. 

 $("#line-chart1").kendoChart({
                theme: $(document).data("kendoSkin") || "BlueOpal",
                legend: {
                    visible: false
                },
                dataSource: {
                    transport: {
                        read: {
                            url: "Myjsonfile",
                            dataType: "json"
                        }
                    }
                },
                seriesDefaults: {
                    type: "Line"
                },
                series: [{
                    currentField: "current",
                    targetField: "target"
                }],
                valueAxis: {
                    majorUnit: 8000
                },
                tooltip: {
                    visible: true,
                    shared: true,
                    format: "N0"
                }
            });

This is my json file 

[{
    "current": 800,
    "target": 200
}]



Thanks.
Iliana Dyankova
Telerik team
 answered on 01 Sep 2014
1 answer
140 views
Hi,

I'm trying to implement a gallery feature - the pictures are displayed in a ScrollView and a click on the "Detailview" Button openes a Modalview which contains another Scrollview that is dynamically populated.

It works fine but I've problems with the second page of the ScrollView within the ModalView. It doesn't display the image but all other pages are working.

The strange thing is that this behavior only occurs in certain situations

- If I access the first page the second page is missing (not showing a picture) - all other pages are displayed correctly
- If I access the second page the picture is shown correctly but I can't scroll to the right side (as if there were no more items left) - A scroll to the left page resets the behaviour and all pictures can be scrolled correctly afterwards.
- If I access a page higher than the second one everything works as expected.

To see the described behavior you may find my example here: http://jsbin.com/pocumu/4/edit

I'm really puzzled why this behavior occurs - any help is appreciated.



Alexander Valchev
Telerik team
 answered on 01 Sep 2014
2 answers
147 views
Hi there,

Having failed so far to get angular.js to work nicely with the editor template (see stackoverflow question: http://stackoverflow.com/questions/25527352/kendoui-scheduler-with-angular-js-binding-conflict), I moved on to trying to MVVM to achieve the same result.

I want to have MVVM pull data from my server in order to populate an html option field, but I am unable to get this to do anything. I've created an example here:

http://jsbin.com/layegocoreji/2/

When double clicking to create a new entry in the scheduler, the MVVM is supposed to render a html select field from a static data source, but instead it does nothing. I'd appreciate any advice you can give!

Cheers, Paul.
Paul
Top achievements
Rank 1
 answered on 01 Sep 2014
1 answer
395 views
Hi.

I have line chart with following configuration:

1)Angular html part

<div style="padding: 20px"
      id="{{generateChartId(stn)}}"
      kendo-chart
      k-legend="{ position: 'top' }"
      k-series-defaults="{ type: 'line' }"
      k-series="setupSeries(stn)"
      k-category-axis="getCategoryAxisData(stn)"
  </div>


2)controller main  functions:
$scope.setupSeries = function ()
        {
            return [
                { field: 'X', name: 'X', categoryField: 'epoch'},
                { field: 'Y', name: 'Y', categoryField: 'epoch' },
                { field: 'Z', name: 'Z', categoryField: 'epoch' }
 
            ];
        };
 
$scope.getCategoryAxisData = function (stn)
        {
           return  {
 
                    majorGridLines: {
                        visible: false
                    },
                    minorGridLines: {
                        visible: false
                    },
                    majorTicks: {
                        visible: false,
 
                    },
                    minorTicks: {
                        visible: false
                    },
                    maxDateGroups: 10,
                    baseUnitStep: "auto",
 
                    /*autoBaseUnitSteps: {
                     minutes: [monitorInterval],
                     hours: [],
                     days: [],
                     weeks: [],
                     months: [],
                     years: []
                     },*/
                    labels: {
                        dateFormats: {
                            hours: "HH mm"
                        },
                        //rotation: 45
                    }
                };
        };

Suppose that data updated  within five minutes (time interval is  5 minutes) via websockect and function like that:

this.addOnePoint = function (pos)
           {
               //lastCoordTime = new Date(time);
 
               if (chartData.length > 10)
               {
                   chartData.shift();
                   chartData.push(formData(pos));
               }
               else
               {
                   chartData.push(formData(pos));
               }
 
 
               if (!chart)
               {
                   chart = $("#chart" + stationId).data("kendoChart");
               }
 
               var dataSource = new kendo.data.DataSource({
                   data: chartData
               });
 
               chart.setDataSource(dataSource);
               //chart.refresh();
           };

I used similiar code with your benchmark sample because I have the same situation but chart updated not so fast (minutes or even hours).
After there are 10 points on chart (actually 3 points for each time) after the next point it became a chart with with 4 points with time interval equal to 15 minutes.
I suppose that this is because of  baseUnitStep: "auto".

If I remove baseUnit or baseUnitStep ("fit" or "auto") then it seems to work as expceted  but there are transient time values on category axis.
Suppose point on 17:20, then there would be 17:21, 17:22, 17:23, 17:24 time values between next valuable time point on 17:25. If there are 10 points then
category (time) axis is a total mess, and it is impossible to identify time value. It is possible to use rotation (90 grad), but it is ugly. I just want to have simple solution that I have only points with valuable time on time axis without transiesnt time values.

How can I do that? It seems to me so obvious scenario and behaviour, but your charts api is overcomplicated...

Thanks in advance.

T. Tsonev
Telerik team
 answered on 01 Sep 2014
1 answer
591 views
We're having a strange issue with intellisense, Kendo and MVC Areas.We have an MVC application that uses Areas and the Telerik Kendo controls.One developer (Dev1) has NO problem with intellisense for the Kendo controls on pages that are contained within an Area.Another developer (Dev2) only gets the Kendo intellisense on the pages in the root, but not on any pages contained within an Area.

Now, Dev2 has created a separate, vanilla application with Kendo and Areas and in this vanilla application, he has no problems working with intellisense on pages contained within an Area. Therefore, it doesn't seem that it's an environment issue, but rather something with the application. However, this does not explain why Dev1 is having not problems.I have googled and read just about every article I can find on this and have tried numerous things.

Surely I am missing something.Any ideas?We are both using VS2013, Framework 4.5.1.I am on VS2013 update 1 The other developer is on VS2013 update 3

Please note that we have also added the appropriate namespace to the Area's web.config file but that didn't work either. 
Petur Subev
Telerik team
 answered on 01 Sep 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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?