Telerik Forums
Kendo UI for jQuery Forum
1 answer
120 views

We have a number of grids with a remote datasource, and on the "Add Record" functionality, you see the new record get inserted into the grid, and get passed to the editing template, but no Create event is sent to via the remote transport until you actually accept on the editor.  However, when we set up a ListView with a remote datasource and a "New" button, similar to your demo, the transport's remote Create event seems to fired immediately with the editing template.  This is obviously a problem because the fields haven't been filled in, and also a remote record is being created before we know if we want that or not.

 

Does ListView behave differently than Grid with a remote datasource when adding a record?  I can't see where this would be desired behaviour, or if it is, how it would be turned off.  I can't seem to see how we might have messed up defining the datasource.  You have a demo with add/edit and one with remote datasource, but not both together, and we're going to try and merge them to give an running example of what we are seeing.

Troy
Top achievements
Rank 1
 answered on 21 Jan 2019
2 answers
175 views

Description

After a date range is selected, if you select a new date range using the previously selected start date as the start date for the new range, the control will close before you select an end date for the new range. At that point, the start date will be filled in but the end date will appear to be empty. If you click on the control again and select a date, the end date will now be filled in.

Steps to reproduce:

  1. Initialize a new date range picker control.
  2. Select a date range.
  3. Open the date range picker control to select a new range.
  4. Select the same start date you had previously selected as your new start date.
    It is at this point that the control will have closed.
  5. Open the control by clicking on one of the two date inputs.
    If you hover over a date, you will notice that the highlighting of that range occurs as expected.
  6. Select an end date.

On another note, it's also worth mentioning that the Forum hyperlink on the documentation page for this control links to the Date/Time Pickers forum section rather than this one.

 

Viktor Tachev
Telerik team
 answered on 21 Jan 2019
12 answers
992 views
Hi - I have commercial license for Web UI

 I am not sure why id field is not getting populated. Please refer to code below.

It does add event which shows up on Scheduer and if I double-click the event it opens-up the edit window with fields correctly populated. If I select "Save" or "Delete", everything works fine but selecting "Cancel" will remove event. Seems like id field is not getting populated but I can't figure out what am I doing wrong..


<!DOCTYPE html>
<html lang="en">
<head>
    <link href='../css/kendo.common-bootstrap.css' rel='stylesheet'>
    <link href='../css/kendo.flat.css' rel='stylesheet'>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="http://cdn.kendostatic.com/2013.3.1119/js/kendo.all.min.js"></script>
</head>
    
<body>
    <div id="scheduler"></div>
    
    <script>
        $("#scheduler").kendoScheduler({
              date: new Date("2014/01/06"),
              dataSource: {
            schema: {
                model: {
                    id: "id",
                    fields: {
                        id: {type: "number"},
                        start: {type: "date"},
                        end: {type: "date"},
                        title: {field: "Title"},
                        description: {field: "Description"}
                   }
                }
            }
            }
        });
        scheduler = $("#scheduler").data("kendoScheduler");
        
        scheduler.dataSource.add({                
        id: 1,
        start: new Date("2014/01/06 10:30"),
        end: new Date("2014/01/06 11:30"),
        title: "test",
        description: "test"
        });
    
        scheduler.view(scheduler.view().name);
    </script>
</body>
</html> 
ABDELLALI
Top achievements
Rank 1
 answered on 21 Jan 2019
1 answer
175 views

Oracle DB returns this TimeStamp: "2018-11-07T00: 00: 00.000"

I would like to convert it to "2018/11/07T00: 00: 00.000"

and then convert it to 07/11/2018 (dd / MM / yyyy)

How can I do ?


Marin Bratanov
Telerik team
 answered on 21 Jan 2019
1 answer
371 views
I'm exporting a kendo grid to excel and it only fails under certain circumstances, generally when there's a large text field in one of the cells .The HTML is rendered fine, but when I open the workbook in excel it tells me the file has been corrupted (sometimes no data is in the worksheet at all). Read in the forums that this was an issue encountered by other users and there was a fix made to account for it, but I've upgraded to the latest version of the controls and I'm still seeing it. Any suggestions?
Tsvetina
Telerik team
 answered on 18 Jan 2019
3 answers
885 views
Hello,

I have to create a foreign key field, but the field can be null. so in the example below I cant change the row with the null value with the drop down.

How can I fix that ?

Please help me!

br,
Kevin A1Telekom Austria AG

01.<!DOCTYPE html>
02.<html>
03.<head>
05.    <style>html { font-size: 12px; font-family: Arial, Helvetica, sans-serif; }</style>
06.    <title></title>
07.    <link href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.common.min.css" rel="stylesheet" />
08.    <link href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.metro.min.css" rel="stylesheet" />
09.    <link href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.min.css" rel="stylesheet" />
12. 
14.</head>
15.<body>
16.            <script src="../content/shared/js/products.js" type="text/javascript"></script>
17.        <div id="example">
18.            <div id="grid"></div>
19. 
20.            <script>
21.                    
22.                     var categories = [{
23.        'value': null,
24.        'text': 'null'
25.    },{
26.        'value': 1,
27.        'text': 'Cat1'
28.    },{
29.        'value': 2,
30.        'text': 'Cat2'
31.    },{
32.        'value': 3,
33.        'text': 'Cat3'
34.    }];
35.               
36.            
37.               
38.$(document).ready(function () {
39.   
40.   
41.  var date = [{id: 1, name: "Jane Doe", category: 1},
42.             {id: 2, name: "XXX", category: 1},
43.             {id: 3, name: "XX2", category: null},
44.             {id: 4, name: "XXX3", category: 1},
45.             {id: 5, name: "XXX4", category: 3}];
46.   
47. var dataSource = new kendo.data.DataSource({
48.                        pageSize: 20,
49.    data: date,
50.                        schema: {
51.                            model: {
52.                                id: "id",
53.                                fields: {
54.                                  name: { type:'string' },
55.                                    category: { field: "category", type: "number" },
56.                                     
57.                                }
58.                            }
59.                        }
60.                    });
61.   
62.   
63.   
64.$('#grid').kendoGrid({
65.    dataSource: dataSource,
66.    height: 570,
67.    filterable: true,
68.    sortable: true,
69.    pageable: true,
70.    editable: true,
71.    toolbar: ['save', 'cancel'],
72.    columns: [
73.{ field: "name", title: "Name" },
74.     { field: 'category', title: 'Category', width: '200px', values: categories , }
75.        ]
76.    });
77.});
78. 
79.               
80.               
81.               
82.               
83.            </script>
84.        </div>
85. 
86. 
87.</body>
88.</html>
Georgi
Telerik team
 answered on 18 Jan 2019
14 answers
3.3K+ views
How do I prevent user to enter any character in Combobox (and also datepicker) ?
I tried this but it doesn't work :

    $(".k-input").attr("readonly", "readonly");

Best regards.
Marin Bratanov
Telerik team
 answered on 18 Jan 2019
3 answers
4.7K+ views

I am getting  Data from Web API as array of object with one of the object's property/field as Date field. on API side its handled and returned as date . But when the data is retrieved after Ajax call ,  Grid (most likely Javascript as well) treat it as  string and grid shows something like "2019-01-01T00:00:00".

I  tried to use column.format to display it as date . which doesn't work .

Then i used Template to parse it using kendo.toString which worked, 

But when i export grid to Excel or PDF it still shows 2019-01-01T00:00:00 

Also i am trying to use Filter option on Column and trying to use Datetimepicker

column.filter.ui ="datetimepicker" 

which shows the date picker but filter doesn't work.

 

Could you please suggest some solution  or is there any step i am missing. 

 

Thanks

Tsvetina
Telerik team
 answered on 17 Jan 2019
8 answers
1.6K+ views
Hi all, 

in our Application we are using a normal grid. We are trying to save the Filters with the following code: 

var grid = $("#myGrid").data('kendoGrid');

localStorage["kendo-grid-options"] = kendo.stringify(grid.getOptions());

This works perfectly. We are trying to reload our saved Filters with the following code: 

var options = localStorage["kendo-grid-options"];
            if (options) {
                grid.setOptions(JSON.parse(options));
            }

After this our Grid is just empty... The filters are applied to the coloumns.. 
If we click on the refresh icon on our grid or trigger the click in code ($('.k-i-refresh').trigger('click');) the filtered data appears?

Any ideas?

Our main target is to apply the filters on the first load.. So if we leave the page, and go back to the grid should directly display the filtered data.. But so far all our attempts failed.. 

Regards
Alex Hajigeorgieva
Telerik team
 answered on 17 Jan 2019
1 answer
187 views

Hi,

Is it possible to enable dragging of labels so that they don't overlap? See the screenshot for what I mean. I have the chart like that and the labels overlap. Didn't find any way to make them draggable. Or is there any other solution.

Thanks

Tsvetina
Telerik team
 answered on 17 Jan 2019
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
Drag and Drop
Map
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?