Telerik Forums
Kendo UI for jQuery Forum
3 answers
238 views

Hi,

 I encountered same issue as shown here: http://jsfiddle.net/ruapho/GaFd6/4/. The workaround is to define the children 'inline'.

 Btw. Is it possible to use a service or factory to fetch data from service, e.g. by injecting the service to the read function? Or I should use the $.ajax or $.get functions?

 

Best regards

Marcin Danek

Nikolay Rusev
Telerik team
 answered on 23 Dec 2015
3 answers
180 views

Hi, 

I have a grid with horizontal scroll.

Whenever I use the scroll,  the display of the grid is disrupted:
The first column of the header is cut in the middle (as you can see in the attached image) -
the content looks good but doesn't fit to the header.

What can I do about this?

Thanks!

 


The display of the grid is disrupted
The display of the grid is disrupted
Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 22 Dec 2015
1 answer
386 views
The kendo ui pager next and previous buttons do not have a tab index. Why? The buttons are not accessible for keyboard users.
Konstantin Dikov
Telerik team
 answered on 22 Dec 2015
5 answers
156 views

This question has been asked, but all of the replies generally say just add fields to the schema and it will work. I think all necessary recurrence fields are in my schema. This is it: 

 

schema: {
                model: {
                    id: "MeetingID",
                    fields: {
                        MeetingID: {
                            from: "meeting_id"
                        },
                        title: {
                            from: "desc",
                            defaultValue: "No title",
                            validation: {
                                required: true
                            }
                        },
                        start: {
                            type: "date",
                            from: "start_time"
                        },
                        end: {
                            type: "date",
                            from: "end_time"
                        },
 
                        description: {
                            from: "case_name"
                        },
                        caseManager: {
                            from: "case_manager",
                            nullable: true
                        },
 
                        mediatorIds: {
                            from: "mediator_LawyerIDs"
                        },
 
                        result: {
                            from: "meeting_result",
                            nullable: true
                        },
                        caseNumber: {
                            from: "case_number",
                            nullable: true
                        },
                        case_location: {
                            from: "location",
                            nullable: true
                        },
                        parties: {
                            from: "parties",
                            nullable: true
                        },
                        numParties: {
                            from: "number_of_parties",
                            nullable: true
                        },
                        created_by: {
                            from: "created_by",
                            nullable: true
                        },
                        creation_timestamp: {
                            from: "creation_timestamp",
                            nullable: true
                        },
 
                        //Recurrence specific fields
                        recurrenceId: {
                            from: "RecurrenceID"
                        },
                        recurrenceRule: {
                            from: "RecurrenceRule"
                        },
                        recurrenceException: {
                            from: "RecurrenceException"
                        },
                        attendies: {
                            from: "Attendies"
                        },
                        type: {
                            from: "Type"
                        },
                        deadline: {
                            from: "Deadline"
                        },
                        priority: {
                            from: "Priority"
                        },
                        labelAs: {
                            from: "LabelAs"
                        }
                    }
                }
            }
        },

 

Help is greatly appreciated.

Andrew
Top achievements
Rank 1
 answered on 22 Dec 2015
1 answer
152 views
Is there a way to customize the behavior of the MobileListView so that the blue Go button replaces the Enter button on the virtual keyboard when using the search (filter) textbox?
Alexander Valchev
Telerik team
 answered on 22 Dec 2015
4 answers
691 views

 

Hi,

 I get this data from the server:

{
  "id": 4215,
  "route_id": 181,
  "route_name": "Test Task",
  "start": "2015-12-04T01:00:00Z",
  "end": "2015-12-04T03:00:00Z",
  "recurrenceRule": "FREQ=WEEKLY;BYDAY=SU,MO,TU,WE,TH",
  "isAllDay": false
}

 

I want to display the task start and end has i get it from the server.

 I tried to use:

timezone: "Etc/UTC", but it still convert to local timezone.

here my code:

http://dojo.telerik.com/@idoglik6/ocavO

Has you can see the scheduler display the task from 3-4 (in my local timezone +2) and not like i want to see it (1-3)

Thanks,

 

Ran

 

Vladimir Iliev
Telerik team
 answered on 22 Dec 2015
3 answers
699 views

Hi,

we're using Kendo UI with the MVVM implementation for on of our web applications (SPA) and I have a question regarding the list view.

To provide the option to change the language on the fly, we're using a script library that basically looks for html-elements with a specific attributes replaces their text with a string based on the value of the attribute and the current culture you selected. To trigger this, a function needs to be called that translates the current document.

Now this wasn't problem so far, since I always found the right places to trigger the translation, but now I'm at a loss with the ListView templates. Both the data and the edit template have such tags that need to translated (<dl> tags to be specific). Basically what needs to happen is the following:

  1. Site loads -> ListView loads -> Template is loaded and filled via a dataSource -> Translate the Template after loading finished
  2. Click on Edit or Add -> ListView loads EditTemplate -> Translate the EditTemplate
  3. Click Save in Edit -> ListView loads Template -> Translate the Template
  4. Click on Cancel in Edit -> ListView loads Template -> Translate the Template

Cases 1-3 are no problem.

  1. Hook into the dataBound event, Template is loaded, start translation
  2. Hook into the edit event, EditTemplate is loaded, start translaton
  3. Hook into the save event, Template is loaded, start translation
  4. Now I know can hook to the cancel event but here's the problem: Hook into the cancel event, Template is not loaded, translation starts, Template is loaded

The cancel event, unlike the other events, fires before the template is loaded. So the translation runs, but at this point the Template is not loaded and therefore not translated.

Is there any way to do this? The best option (which I could not find on the internetz) would be to hook into the "load template" event if there is one or simply any other possibility to call this translation after the template loaded.

I tried many other ways and many other events - my best option was to bind to the "DOMSubTreeModified" event, but that backfires (literally) because the translation algorithm also modifies the subtree :/

Any solution would be appreciated.

Alexander Valchev
Telerik team
 answered on 22 Dec 2015
2 answers
221 views

Hi,

 I'm trying to load data using custom read function in DataSource transport. I have to use the angular service due to usage of angular $http interceptors providing the user authentication mechanism.

 The problem start when I try to use the controller's "MyService" field in the read function, as shown bellow:

 export class CountersController {

constructor(private $scope: ng.IScope,
            private $q: ng.IQService,
            myService: LonginusCountersApp.Services.IMyService) {
            this.MyService = myService;
}

    private MyService: LonginusCountersApp.Services.IMyService;

public counterGroups = new kendo.data.HierarchicalDataSource({
            transport: {
                read: function (options) {
                    this.MyService.GetCounters().then((data: ng.IHttpPromiseCallbackArg<{}>) => {});
}
}
});
}

 

The problem is, that on Runtime i get error, that I try to call GetCountes() on undefined or null object (MyService).

It there any way to pass the service reference to the read function? 

I followed the response to the thread: http://www.telerik.com/forums/unable-make-treeview-work-with-angulajs-service

but it seems not to work, or at least not to work with TypeScript.

Do You have any idea, how to achieve this?

 

Best regards

Marcin Danek

Marcin
Top achievements
Rank 1
 answered on 22 Dec 2015
7 answers
1.0K+ views
I need to alter a single cell of a databound grid. Grid is editable, and has single row selection.   Just having trouble getting the syntax right -  given the currently selected row:

var r = grid.dataItem(grid.select());

how can I pick a cell (say the 4th column of the grid on the currently selected row), place that cell in edit mode, alter it and force a save.  I have the jist of:

var g = $("#grid").data("kendoGrid");
    var r = grid.dataItem(grid.select());
    g.editCell( ??? );
    ...
    g.saveChanges();

Zen
Top achievements
Rank 1
 answered on 21 Dec 2015
18 answers
246 views

When using spreadsheet - IE (11) dies out on:

SCRIPT5007: Unable to get property 'start' of undefined or null reference.
File:  kendo.web.min.js, Line 61, Column 22350

Using build 2015.3.1111

I've tried using either kendo.all.min.js or kendo.web.min.js

Firefox, Chrome - no problem as usual. 

 

 

Alex Gyoshev
Telerik team
 answered on 21 Dec 2015
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?