Telerik Forums
Kendo UI for jQuery Forum
5 answers
397 views
Hello, My WCF Service return json format data where Field name contain space and dot,  which through error in kendo datasource.
Is there any other method to overcome this drawback?
Daniel
Telerik team
 answered on 18 Nov 2016
13 answers
2.5K+ views
Hi, I'm having an issue here; I have a TabStrip in my page, almost in the middle of the page so, to reach that, I need to scroll down a little. When I do, and select a tab to open, the scroll position is changed, it scrolls up as soon as the tab is opened. It happens in Chrome and Safari; though, sometimes Safari works fine, without this issue. Can anyone tell me why it happens or/and how can I solve this issue?

Thanks,

Umais
Graham
Top achievements
Rank 2
 answered on 17 Nov 2016
1 answer
247 views

I have a kendoGrid. Each time I change a value in the row (after clicking the "Edit" button) the "Change" event fires.

I only want this event to fire when the "Update" button is clicked. 

The event does fire when the "Update" button is clicked. I just need to stop the event from firing when a value changes and the user leaves the field.

Can anyone help?

Scott
Top achievements
Rank 1
 answered on 17 Nov 2016
1 answer
315 views

How to make the Treelist column popluate dynamically (something like autogenerate columns)?

I want to configure the columns based database table data. 

 

Thanks

Vessy
Telerik team
 answered on 17 Nov 2016
2 answers
1.1K+ views

Right now I'm working through removing an item from the grid. I can't seem to find a way to use the destroy transport to mark a row as one that should be deleted, make a request to delete those rows, and only if those rows were successfully deleted from by a service, THEN visually remove the row from the grid. Everything I try (grid.removeRow, dataSource.remove, dataSource.sync) just removes the row from the grid right away, before the request is made to the server to remove the row. I need the ability to notify the user of a failed attempt to remove those rows, and keep those rows displayed if the service was unable to delete those rows.

Any ideas?

Stephen
Top achievements
Rank 2
 answered on 17 Nov 2016
2 answers
395 views

Hi, 

I'd like to use the Grid's detailTemplate, but is it possible to only render it based on a condition?

Example: http://dojo.telerik.com/uyIja

This is a basic example, that only displays the template contents if the 'male' field is true. But is it possible to prevent the details template drop down arrow from being displayed, I mean its useless displaying a way to view a details template if its empty.

Thanks,
Grant

Grant
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 17 Nov 2016
3 answers
141 views
Hi, I have appended a menu item on grid's columnmenuinit event.
But my new item won't close menu after select and the others will.
I have tried This and This . Hope someone can give me a hand.
Stephen
Top achievements
Rank 2
 answered on 17 Nov 2016
2 answers
299 views

Hi,
I have a data model for an everlive datasource, and I've added some extra fields that help manage some functions around what is displayed in a ListView. However I don't want the extra field saved back to the dataSource when it is synced.

I've sketched what I thought might work below. Am I on the right track? And/or what sort of code would I need to ensure the showAnimalDetails is not saved?

Many thanks

-Paul

In the following, the animalName is from the dataSource and the showAnimalDetails is an extra field.

01.var animalModel = {
02.    id: 'Id',
03.    fields: {
04.        animalName: {
05.            field: 'animalName'
06.        },
07.        showAnimalDetails: {
08.            defaultValue: false
09.        }
10.    ...

 

That all works fine. However, I don't want to include the showAnimalDetails field when I sync the dataSource back via Everlive. 

I thought the way to do it would be like this ...

01.var animalsDataSource = new kendo.data.DataSource({
02.    type: 'everlive',
03.    schema: {
04.        model: animalModel
05.    },
06.    transport: {
07.        typeName: 'Animals',             
08.        update: function(options) {
09.            // Put code here to remove extra field before sync?
10.        }
11.    }
12.});
ptw
Top achievements
Rank 1
 answered on 17 Nov 2016
4 answers
322 views

Hi,

 

I'm using MVVM paradigm with the kendo scheduler. I am attempting to add custom templates for editing and display of tasks. Using the following code the templates seem to be ignored and the default templates used instead. These templates are fine, I use them in non MVVM mode. 

 

<div id="responsiveCalendarView">
    <div class="k-content wide">
        <div>
            <div id="responsiveCalendar" 
            
                 data-role="scheduler"
                             
                 
                 data-views="[{ type: 'day', title: 'Day' },
                              { type: 'week', title: 'Week', eventTemplate: $('#event-template').html()},
                              { type: 'workWeek', title: 'Work Week'},
                              { type: 'agenda', title: 'Agenda' },
                              { type: TasksView, title: 'Tasks' }]"
                              
                 data-editable= "{template: $('#customEditorTemplate').html()}"   
                 
                 data-bind="source: tasks,
                            visible: isVisible,
                            events: {edit: onEdit, requestStart: requestStart, requestEnd: requestEnd, navigate: navigate, dataBound: dataBound, dataBinding: dataBinding}"  style="height: 800px"></div>
        </div>
    </div>
</div>

 

Has anyone else had similar problems using templates with MVVM on the scheduler? Has anyone successfully used templates in the scheduler with MVVM?

 

Appreciate any assistance.

 

John
Top achievements
Rank 1
 answered on 17 Nov 2016
1 answer
936 views

My back-end prefers a null value in the primary key for adding new records, but kendo uses 0 for numeric fields. If I change the "defaultValue" for a numeric model field that is defined as the 'id' field for the model, will this cause any problems with create operations or anything else that deals with new instances of the model?  Model has a "isNew" function, so it looks like things should work even if the defaultValue is changed from the normal zero value, I just wanted to be sure in the real world there won't be any nasty side-effects or anything that explicitly compares to zero instead of relying on isNew().  So:

var dataSource = new kendo.data.DataSource({
  schema: {
    model: {
      id: "dbID"
      fields:{
         dbID: {type:"number", defaultValue:null},
      }
    }
  }
});

 

Rosen
Telerik team
 answered on 17 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?