Telerik Forums
Kendo UI for jQuery Forum
3 answers
149 views

I realize there is a way to populate a Kendo Upload with initial files, however I'm trying to take this a step further.

In the app I'm building I have a drawer widget that allows the user to toggle it from visible to hidden and due to the nature of this environment the drawer is actually destroyed between toggle. It's not a problem for the rest of my data because I'm using MVVM with KnockoutJS to simply rebind the content in the drawer when shown again. The Kendo Upload is inside this drawer and I need the ability for the user to be able to toggle the drawer while the Uploader is uploading (which means the Uploader html will be removed from the DOM).

I noticed that once an upload is started the Kendo Upload actually continues to work even though the associated HTML doesn't exist anymore which sounds promising. I believe the solution is to figure out a way to associate a new Upload html with an existing Kendo Upload context.

I do realize this isn't a supported feature, but was hoping you could help point me in the right direction. I believe I have the skill necessary to tackle this, but any help would be appreciated.

Thanks.

Dimiter Madjarov
Telerik team
 answered on 04 Nov 2016
19 answers
1.1K+ views
Hi Kendo Team,
The validation message corresponding to an error in the last row of the bottom of the grid is not shown.
You can get this effect in your custom validator editing grid sample.
Clear the productName of the last row in the first page and you will not see the required validation message.
The grid should scroll up automatically to show the validation message.
Do you have any workarround?

Kind regards,
Oscar


Christy
Top achievements
Rank 1
 answered on 04 Nov 2016
4 answers
302 views

Hello,

When using progress bar in chunk mode, is there a way to show a label for each chunk ?

Pascal
Top achievements
Rank 1
 answered on 04 Nov 2016
1 answer
69 views

Refer the Fiddle here

http://jsfiddle.net/sharanvivek/hLG98/62/

Click the Add Button and Try and select a value from the Drop down. 

Notice that the change event fires correctly from the inline Dropdown. But the Drop Down on the Add Popup throws an error. 

Vladimir Iliev
Telerik team
 answered on 04 Nov 2016
1 answer
243 views

Hi,

I use Upload to select multiple files. I don't want to use web services to process the upload, so my code for Upload creation looks like this:

$('#uploader').kendoUpload({
    async: {
        saveUrl: "notNeeded",
        removeUrl: "notNeeded",
        autoUpload: false
    }
});

When I select some files, there is a list of the selected files. Under the list there are buttons Clear and Upload.

I want to perform some action when Clear is clicked, but I don't know how to detect it.

Listening to "remove" event did not help.

Thanks for the answers,

Boris

 

dddd

Dimiter Madjarov
Telerik team
 answered on 04 Nov 2016
13 answers
333 views
The MaskedTextBox does not appear to work in the latest version of Android browsers.  I can't even get the demo on your website to work using Chrome on Android 4.4.2.

http://demos.telerik.com/kendo-ui/maskedtextbox/index

The user agent string is:  Mozilla/5.0 (Linux; Android 4.4.2; en-us; SAMSUNG SCH-I545 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36

Am I missing something?

Thanks
Georgi Krustev
Telerik team
 answered on 04 Nov 2016
1 answer
1.3K+ views

Hello,

I have a grid with checkboxes. I am using the template feature to show a checkbox if there is a checked flag. By default Kendo recognizes the true / false to enable the checkbox. I have type: boolean in the schema.

My problem: The datasource that is provided to me, will only display 'Y' or 'N' for these boolean values.

In edit mode, how can I keep the checkboxes but use the template to recognize these new values? Clicking edit will display a textbox instead of the checkbox (If I set the scheme to "string" so that the template will recognize the "Y" & "N" values. Please help!

http://dojo.telerik.com/AdUqE

Orlin
Telerik team
 answered on 04 Nov 2016
3 answers
4.0K+ views

I have a grid which I define declaratively. It works well except that the column sorting interprets the columns as strings, whereas I wish for some columns to be sorting as numerical values.

 

Below is my grid definition.

The column I am interested in sorting in numerical order is "incident_count". I have tried specifying a type: "number" attribute to the column but it did not work.

 

<div id="PatrolRecords">
    <div data-filterable='{ "mode": "row" }'
         data-role='grid'
         data-sortable='true'
         data-detail-template='patrolDetailTemplate'
         data-detail-init='detailInit'
         data-bind='source: reportData.Patrols, events: {excelExport: excelExportHandler}'
         data-pageable='{ "pageSize": 10 }'
         data-toolbar='["excel"]'
         data-excel='{ "fileName": "Patrols.xlsx", "allPages": "true" }'
         data-columns='[
               {
                    field: "patrol_id_plain",
                    title: "Patrol ID",
                    filterable: false,
                    width: 70
                },
                {
                    field: "tour_name",
                    title: "Tour",
                    filterable: { cell: { operator: "contains" } }
                },
                {
                    field: "location_name",
                    title: "Location",
                    filterable: { cell: { operator: "contains" } }
                },
                {
                    field: "client_company",
                    title: "Company",
                    filterable: { cell: { operator: "contains" } }
                },
                {
                    field: "address",
                    title: "Address",
                    template: kendo.template($("#addressTemplate").html()),
                    filterable: { cell: { operator: "contains" } }
                },
                {
                    field: "end_date_seconds",
                    title: "Date & Time",
                    template: kendo.template($("#dateTemplate").html()),
                    filterable: false
                },
                {
                    field: "patrolled_by",
                    title: "Patrolled By",
                    filterable: { cell: { operator: "contains" } }
                },
                {
                    field: "checkpoints",
                    title: "Checkpoints",
                    template: kendo.template($("#checkpointsTemplate").html()),
                    filterable: false,
                    width: 90
                },
                {
                    field: "incident_count",
                    title: "Incidents",
                    filterable: false,
                    type: "number",
                    width: 70
                },
                {
                    title: "GPS",
                    template: kendo.template($("#gpsTemplate").html()),
                    filterable: false,
                    width: 50
                },
                {
                    title: "",
                    template: kendo.template($("#viewLinkTemplate").html()),
                    filterable: false,
                    width: 60
                },
        ]'>
    </div>
</div>

Rosen
Telerik team
 answered on 04 Nov 2016
2 answers
509 views

I am using Kendo grid with editable popup and I want to hide/not use the row which is showing editing changes on runtime. 

Reason:  

I have a kendo multiselect control in popup and on saving data it adds multiple rows in db and it should show in grid as well. That's why I don't want to show that editing changes line. 

 

Stefan
Telerik team
 answered on 04 Nov 2016
6 answers
244 views
Is this the proper way of updating the data for a kendo treeview? If that's the case, then why am I getting some major memory leaks (according to Chrome's allocation profile)? And when I say 'major', I mean relative to our tiny sample data, obviously :).
Am I missing something?

<!DOCTYPE html>
<html>
<head>
  <title></title>
 
  <script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s="   crossorigin="anonymous"></script>
 
</head>
<body>
<div id="example" ng-app="KendoDemos">
  <div ng-controller="MyCtrl">
     
    <!-- generate new data and update the datasource-->
    <button ng-click="generate()">Generate</button>
 
    <div kendo-tree-view="treeApi" k-data-text-field="'name'"
         k-data-source="datasource" k-load-on-demand="false">
    </div>
 
  </div>
</div>
 
<script>
  angular.module("KendoDemos", [ "kendo.directives" ])
         .controller("MyCtrl", function($scope) {
 
        $scope.datasource = new kendo.data.HierarchicalDataSource({
            sort: { field: "name", dir: "asc" },
            data: [],
            schema: {
                model: {
                    id: 'id',
                    children: 'items'
                }       
            }
        });
         
        $scope.generate = function() {
            var data = [{
                id: 1,
                name: 'name',
                items: [{
                    id: 2,
                    name: 'name',
                    items: [{
                        id: 3,
                        name: 'name',
                        items: [{
                            id: 4,
                            name: 'name',
                            items: []
                        }]
                    }]
                }, {
                    id: 5,
                    name: 'name',
                    items: [{
                        id: 6,
                        name: 'name',
                        items: [{
                            id: 7,
                            name: 'name',
                            items: []
                        }]
                    }]
                }]
            }];     
             
            $scope.datasource.data(data);
        };
 
        $scope.generate();
    });
 
</script>
 
</body>
</html>

Dojo: http://dojo.telerik.com/EyuwU/3
Plamen
Telerik team
 answered on 04 Nov 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?