Telerik Forums
Kendo UI for jQuery Forum
9 answers
636 views

Hi I am working with Kendo scheduler with AngularJS. Only month view is activated. Sometime I am facing a problem which one I can not reproduce always. Upon double clicking on any date I am going to date edit page(diff html same controller). I am editing some thing there and after saving, coming back to scheduler. From the edit page, I can back to scheduler without editing anything. When I just coming back to scheduler without editing/saving anything sometime I found that date selection is not correct. For example, If I click 5 Jan, 4 Jan is being selected, If I click 28 FEB then 27 Feb is being selected. For the first date of each week (First cell of each row) is being selected correctly. Any Idea?
Here is my scheduler option

             $scope.schedulerOptions = {
                date: stDt   ,
                startTime: stDt,
                min: $scope.minDate,
                max: $scope.maxDate,
                height: 750,
                autobind: true,
                views: [
                    {
                        type: "month"
                    }
                ],
                timezone: "Etc/UTC",
                dataSource:  $scope.tmpltDS,
                editable: false,
                selectable: true,
                change: scheduler_change,
                dataBound: scheduler_dataBound
            };

Vladimir Iliev
Telerik team
 answered on 30 Jan 2017
5 answers
2.0K+ views
Is there any way to set the first day of week for kendoDatePicker?

Thanks.
Grünther
Top achievements
Rank 1
 answered on 30 Jan 2017
1 answer
67 views
All my Kendo controls are showing fixed width on page resize , they are not shrinking in size and fonts as well. Am including all required kendo bootstrap styles.
Marin Bratanov
Telerik team
 answered on 30 Jan 2017
1 answer
1.3K+ views
I am trying to build an ASP.NET 4 MVC web service using kendo UI in which I have the following requirements 

 1. posting data in a kendo Window. The kendo Window will contain a form. (I am trying to achieve this using iframe.)
 2. and retrieving back the updated data from the form. 

Home.cshtml

    <div id="actionFormWindow"></div>

TriageForm.cshtml

    @model BugViewModel
    <form>
      //display the model data
    </form>
    <button class="k-button" id="okButton">Ok</button>
    <button class="k-button" id="cancelButton">Cancel</button>

JavaScript

    var dataItem = {
        "Date": "2016-12-31",
        "Id": "1234-csj4-sadf-random",
        "Scenario": "abc",
        "IsFixed": "No"
     };

    var bugActionFormWindow = $("#actionFormWindow")
        .kendoWindow({
            title: "Please confirm the details",
            visible: false, 
            modal: true,
            actions: ["Maximize", "Close"],
            width: "700px",
            height: "500px",
            iframe: true
        }).data("kendoWindow");

    bugActionFormWindow.refresh({
        url: "/bugTriage/triageform",
        data: dataItem,
        dataType: "json"
    });

    bugActionFormWindow.center().open();

Controller.cs

    public ActionResult TriageForm(BugViewModel vm) {

            return this.View(vm);
    }

BugViewModel.cs

    public class BugViewModel{
       public string Date {get; set;}
       public string Id {get; set;}
       public string Scenario {get; set;}
       public string IsFixed {get; set;}
    }

The data in the controller is null. Please suggest if I am doing anything wrong. Also I am unaware how can I get the updated data in the `Home` view. Kendo Window refresh documentation says it "Returns the window object to support chaining". But I can't understand how to get the return value.
Tsvetina
Telerik team
 answered on 30 Jan 2017
1 answer
123 views

Hi,

I tried to use Kendo-ui-react-jquery-diagram component, but i found an issue when requiring kendo.dataviz.diagram :

var _kendoDatavizDiagram = require('kendo/js/kendo.dataviz.diagram.js') ==> returns empty object.

How can i fix this problem ?

Thanks

Vessy
Telerik team
 answered on 30 Jan 2017
4 answers
902 views

Hello,

I wanted to update my TreeView control which uses a HierarchicalDataSource after I updated the array it uses.

You can see the fiddle here: https://jsfiddle.net/ZoolWay/gev9zj4j/

How can I update/refresh my TreeView after adding items? Changing a text works this way...

// how the datasource is configured:
var myData = ... // already contains two items, one with subitems
var myDataSource = new kendo.data.HierarchicalDataSource({
      data: myData
    });
 
// add item to the array:
myData.push({ 'id': 3, 'text': 'Item 3'});     
 
// read the updated array
myDataSource.read();
Alex Hajigeorgieva
Telerik team
 answered on 30 Jan 2017
1 answer
290 views

Hi

 

I try to read data from my angular service with this code (see below) but when i try to do a read() after init my service never call, what I'm wrong? I need to do that to reduce amount of data and re read when change month on scheduler using dataBound event

transport: {
                    read: function (e) {
                        return modelService.getData({
                            startDate: vm.startDate,
                            endDate: vm.endDate,
                            userIds: []
                        }).success(function (result) {
                            e.success(result.data);
                        });
                    }
                },
                schema: {
                    type: 'json',
                    data: 'result.times'
                }

 

Boyan Dimitrov
Telerik team
 answered on 30 Jan 2017
1 answer
183 views

Hi,

 

I'm having some issues with some kendo controls, mostly with the grid and the autocomplete.

The grid is being created with KendoUI and the Autocomplete with ASP.net MVC editor templates and both are a bit lower than expected.

If i search something on the autocomplete or load some data into the grid it makes the call  to the webservices and after the data is return it still

a delay (+-6 seconds) before the content is painted on the control.

 

I have trying to query the same api endpoints using a jquery autocomple and its way faster.

Also the page in general has +20 kendo controls and  it  takes quite long to load.
So my question is, is there any way that i can measure and optimize the performance of the telerik controls?

Thanks in Advance

Stefan
Telerik team
 answered on 30 Jan 2017
12 answers
629 views
Hi, I am converting a page from webforms and used the Telerik for AJAX RadGrid control originally which provided filtering by date only if specified for dateTime values.  Is this Telerik product lacking this feature?
Boyan Dimitrov
Telerik team
 answered on 27 Jan 2017
3 answers
188 views

HI --

 

We have existing code creating a tab strip with a series of tabs like this

 

   @(Html.Kendo().TabStrip().Name("tabStrip_#=MeterID#")
                  .SelectedIndex(0)
                  .Events(events => events.Show("loadDetails(#:EnrollmentID#, #:MeterID#, #:IsCrossSell#)"))
                  .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
                  .Items(items =>
                  {
                      items.Add().Text("Documents").Content(
                          "<div id='divDocumentDownload_#=MeterID#'></div>" +
                          );

                      items.Add().Text("Other Fields").Content(
                          "<div id='divOtherFields_#=MeterID#'></div>"
                          );

                      items.Add().Text("Error Report").Content(
                          "<div id='divErrorReport_#=MeterID#' style='padding-top: 5px; padding-left: 5px; border:solid; border-width: 1px; margin-top: 10px; background-color: \\#F0F0F0;'>" +
                          "</div>"
                          );

                      items.Add().Text("Bill Images").Content(
                          "<div id='divBillLinks_#=MeterID#'></div>" +
                          );

                      items.Add().Text("Photo ID").Content(
                            "<div id='divPhotoIdWrapper_#=MeterID#'>" +
                            );

                  }).ToClientTemplate())

 

Is it possible to create the tabs ("items") separately and then add them in the code? Something like this

                  .Items(items =>
                  {item.Add(itemA).Add(itemB)}

 

The reason I'm asking is that the items themselves are fairly complicated (I have simplified the code above) and it would be much easier to modify and debug code if it wasn't one large chunk.

 

Thanks

 

Rich

Ivan Danchev
Telerik team
 answered on 27 Jan 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
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?