Telerik Forums
Kendo UI for jQuery Forum
1 answer
128 views
In version 2014.3.1119 of Kendo UI I have a problem passing date value from view to controller, the  value passed to controller is {01/01/0001 12:00:00 a.m.}, however with the previous (2013.3.1119) version works as expected.

this my code inside parameterMap

for (var member in KPIDataEntry) {
          if (member == "Date") {
               result["KPIDataEntry[" + i + "]." + member] = kendo.toString(new Date(KPIDataEntry[member]), "G");
          }
          else {
              result["KPIDataEntry[" + i + "]." + member] = KPIDataEntry[member];
         }
}

thanks in advanced, and sorry about my english
Vladimir Iliev
Telerik team
 answered on 10 Feb 2015
2 answers
135 views
Hi,

we're having trouble rendering nice Candlestick chart in some cases.

Specifically, for some values passed, chart is not "zoomed" in to better see difference between points but rendered from the '0' on value axis instead. For other cases, it's behaving as expected. To better illustrate, please see following dojo: http://dojo.telerik.com/AnOhe and see that value axis starts from '0' where it could start from '18' for example.

Is there a way to force chart to do this, instead of calculating valueAxis.max and valueAxis.min manually?

Thanks,

Dragan
Dragan
Top achievements
Rank 1
 answered on 10 Feb 2015
2 answers
444 views
Hello,

Wenn someone adds or modifies a task, the server checks if this is possible or not.
​At certain dates or times a task cannot created (holidays, already another task,....).
​The server/database  checks if this is possbile or not. if not I return a errormessage within a JSON.
​How do I show this errormessage to the user in de scheduler-popup window ?
 
Vladimir Iliev
Telerik team
 answered on 10 Feb 2015
4 answers
3.1K+ views
I have a dropdown list that is populated via ajax call.
Depending on what the user is allowed to do the dropdownlist might only have 1 item in it.
I need to add a empty option first, then append the ajax results.

I do this all the time in asp.net webform applications, how does one configure a kendoui dropdownlist to display the empty row but not allow it to be selectable?

Wired_Nerve
Top achievements
Rank 2
 answered on 10 Feb 2015
1 answer
460 views
Is it possible to have the drawer open to a percentage of the page? Trying to make a responsive page for mobile/tablet and I want on mobile to open to 90%, but on tablet to only open to 50%.

I have implemented this with the javascript:
<div class="drawer" id="myDrawer">
</div>

 $("#myDrawer").kendoMobileDrawer({
            container: "#content-container",
            swipeToOpen: false
            }
        });


Thanks.
Kiril Nikolov
Telerik team
 answered on 10 Feb 2015
1 answer
85 views
I've noticed in working with KendoUI ComboBox widgets that the standard "labeled control" behavior within HTML breaks with these widgets.

So in the following (taken from combobox demo page), when clicking on the "Categories" label, the ComboBox widget does not automatically get focus.

<label for="categories">Categories:</label><input id="categories" style="width: 270px" />

Seems to work fine with other widgets, like the DatePicker.

Thank you.
Georgi Krustev
Telerik team
 answered on 10 Feb 2015
3 answers
196 views
I have 2 questions regarding the scheduler's popup
1) how to preselect a value in the combobox ?
2) how to remove the 'none'-item in the combobox ?
Gert
Top achievements
Rank 1
 answered on 10 Feb 2015
3 answers
171 views
Dear Telerik`s developers;
I am wondering too whether we can use Google Map api or not - in Telerik map?
I have noticed that we can use Bing. Like that,   would using Google  be  possible?
Alexander Popov
Telerik team
 answered on 10 Feb 2015
1 answer
220 views
Hi,
In my application I don't need to use all the fancy features of DataSource. So I thought to use an array of kendo.data.Model objects inside the ViewModel.

There is a property called "dirty" and another called "isNew()".

If I want to get all new objects added on client, then I can filter based on isNew = true. To get all those items that need to be updated on server, then I look at "dirty = true".

Is the above correct? Is there another way (could be better) to get list of items to be deleted, updated, created on server?

One more thing, I noticed that if I update a newly added item on client-side, its dirty becomes true and isNew is false. Is that the normal behavior?

Finally, is there a way to use DataSource as a local database on client side to track updated, created, and deleted records, however, having it based on "data" property, i.e. without any remote transport stuff? Then, I could use DataSource as a local storage to track all changes, then I can filter out rows to be deleted, created and updated on server. 

Thanks
Daniel
Telerik team
 answered on 10 Feb 2015
2 answers
203 views
The following test works (using http://mochajs.org + http://chaijs.com):

it('Test composition', function() {
    var viewModel = kendo.observable({
        obj1: {
            obj2: {
                prop: 'test'
            }
        }
    });
    expect(viewModel).to.be.an.instanceof(kendo.Observable);
    expect(viewModel.obj1).to.be.an.instanceof(kendo.Observable);
    expect(viewModel.obj1.obj2).to.be.an.instanceof(kendo.Observable);
});

The following test fails:

it('Test submodels', function() {
    var Item = kendo.data.Model.define({
        fields: {
            title: {
                type: 'string'
            },
            attributes: {
                defaultValue: {}
            }
        }
    });
    var Attributes = kendo.data.Model.define({
        fields: {
            src: {
                type: 'string'
            },
            alt: {
                type: 'string'
            },
            style: {
                type: 'string'
            }
        }
    });
    var attributes = new Attributes({alt: 'Google', src: 'http://www.google.com/logo.jpg', style: 'height: 100px; width: 100px;'}),
        item = new Item({title:'sample image', attribute: attributes}),
        viewModel = kendo.observable({ item: item });
    expect(viewModel.item).to.be.an.instanceof(Item);
    expect(viewModel.item).to.be.an.instanceof(kendo.data.Model);
    expect(viewModel.item).to.be.an.instanceof(kendo.Observable);
    expect(viewModel.item.attributes).to.be.an.instanceof(Attributes);        //Fails
    expect(viewModel.item.attributes).to.be.an.instanceof(kendo.data.Model);  //Fails
    expect(viewModel.item.attributes).to.be.an.instanceof(kendo.Observable);  //Fails
});

How can I at least test that viewModel.item.attributes is an observable? Otherwise what instance of is it?







Jack
Top achievements
Rank 2
Iron
 answered on 10 Feb 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?