Telerik Forums
Kendo UI for jQuery Forum
1 answer
112 views

Hi, 

I've stumbled upon a problem implementing the messages and culture into my Kendo UI scheduler. 

I've followed http://demos.telerik.com/kendo-ui/scheduler/localization, and was able to change the language - but there is still a few things that doesn't change such as "Owner" in the popup-window when I create a new event. I've search through the messages file and can't find it there. 

 

----------

resources:

[{ field: "ownerId",

title: "owner",

dataSource:

[{ text: "Alex", value: 1, color: "#f8a398" },

{ text: "Bob", value: 2, color: "#51a0ed" },

{ text: "Charlie", value: 3, color: "#56ca85" }]}]

 

So i've tried to implement the "Owner" into the messages.js file, but it doesn't work. Here is what I've done so far:

editor:{owner:"Owner",title:"Title" .........}

Im quite new to this and was wondering if someone would care to give me a hint on what I'm doing wrong? :-) 

Alexander Popov
Telerik team
 answered on 14 Jan 2016
1 answer
430 views

I have browsed around and found several thread, concluding that style binding an kendo MVC widget is just not supported.

Example of style binding: $('#kendoWidgetID').attr("data-bind", "style : { backgroundColor : modelColorAttribute } ");

I have, however, been unable to determine the following.

1: Is it in the works? Or will it be?

2: If style binding is not supported on kendo MVC Widgets, then how on earth am I meant to dynamically change the styles of my kendo widgets on my grid popup, depending on my selected model properties?

 

 
 
Dimo
Telerik team
 answered on 14 Jan 2016
1 answer
122 views

I have a grid defined with a few columns of type "date".  An example of the json for a date column is as follows:

{

     title: "myDate",

 

}

 

Alexander Popov
Telerik team
 answered on 14 Jan 2016
1 answer
334 views

I have a grid containing a few date columns.  An example of the json for a data column is as follows:

{
    title: "My Date Field",
    field: "myDate",
    type: "date",
    format: "{0:MM/dd/yyyy hh:mm tt}",
    filterable: { ui: "datetimepicker", format: "MM/dd/yyyy hh:mm" }
}

The column displays in the proper date format (MM/dd/yyyy hh:mm tt) and the filter uses the proper datetimepicker control, which also shows the selected date/time in the proper format (MM/dd/yyyy hh:mm).  The problem is that the filter value in the parameterMap object for the date column is always in this format:

"Tue Jan 12 2016 00:00:00 GMT-0700 (Mountain Standard Time)"

I realize that I could override the parameterMap function in the grid and write code to look up the column type and, if it is a date, convert the filter value to the format that I want, but before I do that I would like to know if there is a way to simply control the default format that the parameterMap uses for the filter value when the filter value comes from a datetimepicker control.  Any info you can provide would be appreciated.  

 

Alexander Popov
Telerik team
 answered on 14 Jan 2016
1 answer
325 views

Hello all,

 

I have a call to a service that will always return a single object with properties on said object. I have a form bound to a view model. I have a property on the view model that is a reference to the dataSource (service call) so that when I update the object I can call the dataSource.sync() method to save the changes back to the server.

 

This workflow works well with collections of items (grid). However I am having a tough time figuring out how to bind the form elements to the single object that is being returned by this specific service. the basics are as follows:

Create View Model

Create DataSource, then call .read() method. In the response from the read method I set a property on the viewModel vm.set("myProp", myDS)

Then in my HTML form I would like to bind elements to data from myDS. However if I do something like:

var data = myDS.view()[0];

vm.set("myProp", data);

I of course lose access to the sync() method.

 

What is the proper way to bind form field values to data from a dataSource object that will only ever have a single object returned?

 

Hope this makes sense.

 

Thanks for any and all help.

Alexander Popov
Telerik team
 answered on 14 Jan 2016
2 answers
748 views
Hello.  Apologies if this issue is covered elsewhere, I couldn't find a clear statement of what to do with this kind of scenario:

I have a Kendo (v2014.2.716) grid on a page with a couple of custom commands defined.  I'm also using Bootstrap (v3.0.1) for styling purposes, therefore I'm including both kendo.bootstrap.min.css and kendo.common-bootstrap.min.css in my project.   I'm trying to apply a couple of Bootstrap CSS classes to the command such that the colors are consistent with buttons in other parts of the page:

                    command: [
                    {
                        name: "view", text: "View", className: "btn btn-warning",
                        click: function (e) {
                            // some irrelevant code here.....
                        }
                    }

However, when the buttons are rendered, the colors defined by the Bootstrap CSS are getting overridden.  After taking a look with a DOM explorer in a browser, I see that the command link is getting the following classes applied to it:

<a class="k-button k-button-icontext btn btn-warning k-grid-view" href="#"><span class=" "></span>View</a>

It appears that the k-button class is defining a color, border-color, and background-color.  

So my questions are: 
1) Why are these two CSS classes prepended to the classes specified by the className attribute?  I could understand this for critical sizing issues, but not for colors.
2) Is there a recommended workaround short of re-defining all the Bootstrap styles I need with an !important next to the values that must take precedence?











Erik
Top achievements
Rank 2
 answered on 14 Jan 2016
1 answer
4.1K+ views
I doing an angular implementation of the Kendo Grid and need to be able to insert rows in addition to the in-built Add/Update Row features. The data is read from the server and in sync whenever any changes are made on the client-side. How do I implement the insert row capability in Kendo Grid?
Alexander Valchev
Telerik team
 answered on 14 Jan 2016
7 answers
88 views

http://docs.telerik.com/kendo-ui/api/javascript/ui/pager#methods-page

The example source code calls pager.page with the value 2 but the data type says this parameter should be a boolean. I am assuming this is incorrect?

Thanks

Nikolay Rusev
Telerik team
 answered on 14 Jan 2016
6 answers
314 views

Hi guys. I'm using Q2 2015 Kendo UI Pro. we're using Visual Studio (2013 Ultimate) to work on a HTML5 and ASP WebAPI product. on the HTML5 (HTML5 only, no ASP.Net in the backend for the HTML5 Page). KendoUI intellisense works fine in any .js file but there is no intellisense in my HTML file for kendo attributes. I am using Kendo in conjunction with Angular. Angulars intellisense for element attributes works without issue. Is there suppsoe to be HTML Intellisense for Kendo UI. I would hope so as "UI" is normally HTML and it's in the name. :P.

 

Kendo.all.min.js and kendo.all.min.intellisense.js both reside in the same place along with jquery.min.js and angular.min.js.

Kendo intellisense works great in js (ts files actually, but you get the idea)

 

as an aside the kendoUI typings for typescript also work faultlessly too, this appears to be purely the HTML Intellisense. :)

Joe
Top achievements
Rank 1
 answered on 14 Jan 2016
1 answer
82 views

Hello guys,

 It is possible to change the visual location on the marker form the middle to the left ?

    

Iliana Dyankova
Telerik team
 answered on 14 Jan 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?