Telerik Forums
Kendo UI for jQuery Forum
2 answers
435 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
453 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
81 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
188 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
170 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
216 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
198 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
6 answers
607 views
We are trying to port a Telerik MVC tree to a Kendo UI treeview. Most of the things works great using the hierarchical datasource, but there is one thing I'm missing in the new Kendo UI controls; the loadondemand option on the node itself.

In the old MVC controls I could indicate on each node if it had children AND if it needed a load on demand. I needed this because my tree is based on some filters and settings, so the layering can differ each time. Some of the database queries I can do more easily by retrieving two or three levels at the same time.

So for example I can load the following construct:


 - B
 - - C

With the MVC Control for both A, B and C I could indicate that they have children, but only C need to invoke another request, so it had the loadondemand value on true.

With the Kendo UI treeview, I'm unable to specify per node the loadondemand option. So I can return level A but then I need to indicate they have children (otherwise the expand icon is not shown) and the child items are not rendered. If you click the expand arrow, it will however not use the items collections, but will invoke a new request to load the next level. Not needed because that level is already loaded. In the MVC controls I could indicate this, but in Kendo UI there is no option for this. I tried to set the children property in the schema, but I'm unable to set it as a function (for example; if item has items, use it, otherwise use the datasource itself to load new level).

So is it somehow possible to use both a node with child items and a node that needs on demand loading?
Alex Gyoshev
Telerik team
 answered on 10 Feb 2015
9 answers
655 views
Hi Telerik Team,

Good day!

I would like to ask for your help with regards to text label of "Select" button is mis-aligned after I selected the file in Kendo Upload.

I already adjusted the height of my div in html, still the text label is mis-aligning and not in the center or middle.

I'm using async upload and I use IE-11 browser (Internet Explorer 11)

Thank you in advance for your immediate Help and Solution.
Dimiter Madjarov
Telerik team
 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
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?