Telerik Forums
Kendo UI for jQuery Forum
1 answer
237 views
Hi, I have issue with folder uploading.
My scenario is:
- user drag and drop folder on Kendo uploader;
- in method upload for Kendo uploader I check if file have't extension and it's file size is 0;
- if yes I cancel uploading using such code:
                                                                                 e.preventDefault();
                                                                                 return false;
- if no continue file uploading


But for some folders I have situation when it's size is not 0.

How I can correctly prevent folder uploading using Kendo Uploader.

I check this in Chrome browser version Version 29.0.1547.76 m.

My code is:
upload: function (e) {
                    $.each(e.files, function (index, el)
                    {

                        //If we try to upload folder prevent this
                        if (el.extension === "" && (typeof el.size === "undefined" || el.size === 0)) {
                            e.preventDefault();
                            return false;
                        }

                        
                    });
                }
Dimiter Madjarov
Telerik team
 answered on 07 Oct 2013
1 answer
87 views
Hi

I want to have cascading drop down lists that are specified in different editor files and was wondering whether this was possible? So far I have not been able to get it working.

 --- ItemTypeEditor.cshtml
@using Kendo.Mvc.UI;
@model DataModels.Picking.PickingAssignmentItemType
 
@(Html.Kendo().DropDownList()
        .Name("Type")
        .DataTextField("Description")
        .DataValueField("TypeCode")
        .DataSource(source => source
            .Read("GetAssignmentTypes", "Picking")
            .ServerFiltering(true)           
        )
)

 -- ParentItemEditor.cshtml
@using Kendo.Mvc.UI;
@model DataModels.Picking.PickingAssignmentItemViewModel
 
@(Html.Kendo().DropDownList()
        .Name("ParentItem")
        .DataTextField("ItemId")
        .DataValueField("ItemId")       
        .DataSource(source =>
        {
            source.Read(read =>
            {
                read.Action("GetAssignmentKits", "Picking")
                    .Data("filterTypes");
            })
            .ServerFiltering(true);
        })
        .CascadeFrom("Type")
)  
 
<script>
    function filterTypes() {
        return {
            Type: $("#Type").val()
        };
    }
</script>
Can anyone see anything wrong with the above? Or determine whether a cascade is even possible across two different files?
Vladimir Iliev
Telerik team
 answered on 07 Oct 2013
1 answer
73 views
Hi 
is it possible to change the version style for only a single element, like in my case a switch, from ios6 style to ios7 style?
I want to have the application initiated with ios6 style and use the switch with ios7 style.
I hope i was clear.
Thanks Dario
Kamen Bundev
Telerik team
 answered on 07 Oct 2013
1 answer
198 views
We have a scheduler similar to your scheduler/resources demo (http://demos.kendoui.com/web/scheduler/resources.html).
If we configure our scheduler to use an eventTemplate, the color-coded-square would not show in the AgendaView... We need this color-coded-square to show on the Agenda view, is there a way to do this?
Rosen
Telerik team
 answered on 07 Oct 2013
1 answer
144 views
I have a real obscure bug with Kendo UI mobile, if you navigate to this page on an iPhone
 
http://www.bobclubs.com/app/Person/1064?Region=uk#/ click the "send SMS/Text" link, all works fine.

Now save the page as a "add to home screen" and reopen, the SMS link now doesn't work.

I have tested this on a windows phone and Andriod phone and it all works ok even if I pin the page to the start/home pages.



Kiril Nikolov
Telerik team
 answered on 07 Oct 2013
2 answers
240 views
Hi,

I use the TreeView with ASP.NET MVC wrapper and I need to optimize the loading time with a multilevel data fetching. We need to display a product and service catalog (UNSPSC, 4 level) with more than 20.000 nodes. The remote binding and on-demand data fetching works like a charm, but we need to implement a search function. Our idea is that the whole catalog can be accessed through the treeview, but when the user enters a keyword, the treeview expands to the matching nodes and highlightes them. This means that the treeview might need to expand more than 100 nodes, which results more than 100 http requests. The configuration code right now:
@Html.Label("Search")
@Html.TextBox("catalogSearch")
<input id="searchCatalogButton" type="button" value="Go" />
@(Html.Kendo().TreeView().Name("catalogTree")
.DataSource(dataSource => dataSource.Read(read => read.Action("GetCatalogItems", "Catalog"))))
Our 'SearchCatalogItems' controller action returns the JSON serialized hierarchical catalog data which has to be displayed, but the HierarchicalDataSource can't process this when remote binding is used. An example result of the 'SearchCatalogItems' action result: (Notice that the Mid #2 node has children but it's not expanded.)
[
   {
      "id": 1,
      "text": "Top #1",
      "matching": false,
      "expanded": true,
      "hasChildren": true,
      "items": [
         {
            "id": 2,
            "text": "Mid #1",
            "matching": false,
            "expanded": true,
            "hasChildren": true,
            "items": [
               {
                  "id": 3,
                  "text": "Bottom #1",
                  "matching": true,
                  "expanded": false,
                  "hasChildren": false
               }
            ]
         },
         {
            "id": 4,
            "text": "Mid #2",
            "matching": false,
            "expanded": false,
            "hasChildren": true
         }
      ]
   }
]
I could initialize a new HierarchicalDataSource from the search results without remote binding, and that could build the tree from this, but I still need the remote binding after the search, because we just downloaded the minimum part of the tree to show and highlight the results and the user might want to explore the catalog from there. I hope my problem is clear.

Is there any way to solve this with the support of the api? Can you give me an idea which is the best way to solve this problem?

Thanks,
    Loránd Biró
Loránd
Top achievements
Rank 1
 answered on 05 Oct 2013
5 answers
103 views
Hi,

I'm building a basic line chart in Kendo UI Dataviz and I'm having a
problem with the aggregation method. The goal is to group my sales data
by month and aggregate the Sum(Amount) which seems to work in my chart
but I'm experiencing a bug that causes data from the first day of
October to be included in the sum for September. Oct 2 shows in October
but Oct 1 is included in September's total.

The data is:

10/1/2013 12:00:00 AM, 22964.5000

10/2/2013 12:00:00 AM, 6762.9400

Html.Kendo().Chart(Model)
.Name("revenue")
.Title("Revenue Activity by Month")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
)
.Series(series =>
{
series.Area(s => s.TotalRevenue, categoryExpression: model => model.Date).Aggregate(ChartSeriesAggregate.Sum).Name("Total Revenue").Color("#73c100");
series.Line(s => s.RevenueSubscriber, categoryExpression: model => model.Date).Aggregate(ChartSeriesAggregate.Sum).Name("Subscriber Revenue");
series.Line(s => s.RevenueNonSubscriber, categoryExpression: model => model.Date).Aggregate(ChartSeriesAggregate.Sum).Name("Non-Subscriber Revenue");
})
.CategoryAxis(axis => axis.Date()
.BaseUnit(ChartAxisBaseUnit.Months)
)
.ValueAxis(axis => axis
.Numeric("revenue")
.Labels(labels => labels.Format("{0:C}"))
.Line(line => line.Visible(false))
)
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0:C}")
)

What I receive is a chart with two points on the X Axis. The first
point is Sept 2013 and includes $22,964. The second point is Oct 2013
and includes $6,762.

Any ideas would be greatly appreciated.
Chris
Top achievements
Rank 1
 answered on 04 Oct 2013
11 answers
922 views
Hi Kendo Team:
If you set createAt:"bottom" in your editing.html sample, you can add rows and they are positioned at the bottom of the grid. But when you add a row that makes kendogrid to add a new page, it doesn't jump to this new page, so you are adding a new row at the end of the penultimate page.
How can I make kendoGrid changes automatically to the next page when adding a new "pageSize +1" row.
Kind regards.
Oscar.
Raymond
Top achievements
Rank 1
 answered on 04 Oct 2013
2 answers
770 views
I'm intending to use the Grid's saveChanges event to perform some custom validation and prevent the record being saved if necessary.

I've had a look through these forums and it seems I should be able to prevent the save using:
   saveChanges: function(e) { 
e.preventDefault();
   }

This isn't working. All records are being saved.

Can somebody please explain what the saveChanges event is for, when it is called and how it should be used. The documentation is very sparse.

Thanks.
Scott Marx
Top achievements
Rank 1
 answered on 04 Oct 2013
3 answers
308 views
The background-color of k-button classed elements cannot be set in recent versions of Chrome or Firefox due to the application of the background-color:linear-gradient style. This issue can be observed on the theme builder site:

http://demos.kendoui.com/themebuilder/web.html

Using Chrome or Firefox:

1.) Select the Uniform Theme.
2.) Click Start the Kendo UI Themebuilder.
3.) In the themebuilder pop-up, choose Buttons and select a new Background color.

Result: The Background color is not applied.

Disabling all background-image styles still enables the selected color to display.
Dimo
Telerik team
 answered on 04 Oct 2013
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?