Telerik Forums
Kendo UI for jQuery Forum
1 answer
116 views
Basically I want the editor to look like a text area. Why not just use a text area you ask? I am putting this inside a Kendo grid, which disables the default behavior of enter to begin a new line. This is used for simple editing of text, just want a bit more viewing space than a standard textbox.

Thanks
Vladimir Iliev
Telerik team
 answered on 27 Jun 2013
1 answer
34 views
I've got a dataSource which consumes a WCF service. On an update the parameterMap "data" argument has a "_type" field in addition to all the fields in the schema, while on a create the data lacks this field. The WCF service will not accept the data without the "_type" field, so the create operation fails.

Any tips?
Petur Subev
Telerik team
 answered on 27 Jun 2013
1 answer
121 views
Hi, I want to get an alphabetical order for my chart legends, I have been looking in the documentation and I have not found anything. I would like to know if is there a value in the "Legend" option that helps me to achieve this, or if is there another way to get this. (Without ordering it directly in the server). Thanks
Iliana Dyankova
Telerik team
 answered on 27 Jun 2013
1 answer
161 views
Do we have any alternative for window.scrollTop? I was hoping I could use it as the event to trigger the incrementation of the parameter of my ajax post.


Will wait for the reply!


Thanks a lot!


Emma
Ivan Ivanov
Telerik team
 answered on 27 Jun 2013
1 answer
524 views
Hello!
Could you, please, help find property that will "turn off" bar chart "borders" -- see attach.
I need to display just 2 bars without axis or these "boreders" -- just 2 bars.

Thanks!

Here is chart declaration:

 $("#chart20").kendoChart({
                chartArea: {
                    height: 300,
                    width: 400,
                    margin: 0
                },
                dataSource: dataSourceMetrics,            
                legend: {
                    visible: false
                },
                seriesDefaults: {
                    type: "bar"
                },
                series: [{                 
                    field: "F1"
                },
                {                  
                    field: "F2"
                }],
                valueAxis: [{                            
                    labels: {
                        visible: false
                    },
                    line: {
                        visible: false
                    },
                    minorGridLines: {
                        visible: false
                    },
                    majorGridLines: {
                        visible: false
                    }
                }],
                yAxis: {
                    labels: {
                        visible: false
                    },
                    line: {
                        visible: false
                    }
                },              
                tooltip: {
                    visible: true,
                    template: "#= series.name #: #= value #"
                }
            });


KendoUI ver: 2013.1.319
Browsers: FireFox 20.0.
Iliana Dyankova
Telerik team
 answered on 27 Jun 2013
1 answer
629 views
Hi, How to bind grid with property is boolean  but  i want to bind is image .

I follow  http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/faq  and do it 

but i result is not to me need.
columns.Template(p => p.IsPublished).ClientTemplate(
          "# if(IsPublished.GetValueOrDefault(false)) { #" +
          "<img src='"+ Url.Content("~/Images/icon_true.gif") +"' alt='#= IsPublished #' />"+
          "# } else { #" +
          "<img src='"+ Url.Content("~/Images/false-icon.png") +"' alt='#= IsPublished #' />"+
          "# } #"
          );

Dimiter Madjarov
Telerik team
 answered on 27 Jun 2013
5 answers
258 views
See this jsbin for a working example - http://www.jsbin.com/icidip/3/edit

This applies to both the Slider and RangeSlider widgets.  I have tried this on builds up through the latest internal build, 2013.1.614 commercial (KendoUI Web), with the same results.

It appears as though the events defined declaratively via data-bind, are looking for a callback function contained with the Model rather than the ViewModel. This behavior is different from the other kendo controls we are using (DropDownList, etc.).  The bind value also displays ODD behavior, in that it will accept a collection to bind to that exists EITHER on the ViewModel OR the Model.

Can you help straighten this one out?  We are looking to bind the Slide event to an event we define inside of the ViewModel, not nested inside of the Model (meaning, we expect events on the control to act like events on other Kendo Controls).  Thanks.

Brian

Alexander Valchev
Telerik team
 answered on 27 Jun 2013
1 answer
203 views
Hello! How can I make just such a structure? I using Kendo UI Web.
Kiril Nikolov
Telerik team
 answered on 27 Jun 2013
2 answers
1.4K+ views
Hi,

I'm new to kendo ui grid and i would like to use remote binding as grid's data source. When i try binding grid with yahoo's api, i meet a problem where the footer is not showing any data count or paging although the grid has successful bind.  I have attached my code below. 

Any help would be greatly appreciated.. Thanks

Attachment

 
Yew
Top achievements
Rank 1
 answered on 27 Jun 2013
4 answers
1.1K+ views
So I'm using the DatePicker control for a field that only requires the month and year. I have the behavior of the popup working properly, by setting the Start and Depth to "Year". In doing so, I ran into a problem where the month would be different than the one I selected. I'm not sure if it was this issue, or an issue where, because the date was coming down as the first of the month, the server was on GMT, and the client was GMT-4. So when it got client-side, the date came back as the last day of the previous month at 8pm.

I solved this problem by intercepting the date during inserts on the server, setting it to the 10th of the month and year at Noon, and then saving it. This should have solved the problem, but when I use the DatePicker in a Grid (MVC or Web), the cell goes red once I leave it, whether I actually changed the date or not. This is *extremely * confusing to my end users, and given that I am using the MVC grid, subclassing it with my own functionality is not necessarily an option.

The problem lies in how the textbox blur function works, and how it compares values. When it has the following ParseFormats:

.ParseFormats(new[] {"MM/yyyy", "MM yyyy"})

the DateTime object in the browser doesn't have a day to assign, so it assumes the first of the month. When you leave the field, the function simply compares the old value to the new one, sees that the old day (the 10th) is different from the new day (the 1st) and changes the value, which bubbles back to the DataSource, and tells the Grid the data has changed.

I believe that the blur function should work in a vastly different way. It should break down the date into its various components, and call the set methods on the old value, instead of just doing a wholesale replacement on the date value. In this example, the function cycle through each component of the date, checking if any of the ParseFormats contain the string representation of that part (d, m, y, etc). If it does, it should call the getXXX method of the old date, and compare it to the getXXX method of the new date. If they are different, it should call setXXX on that component alone, instead of doing a wholesale replacement of the current value of the control.

I know that this would complicate the blur function a bit, but it would more accurately represent how the picker should work, given the already-built-in ability to adjust the depth of the control.

Please let me know if you have any questions or need code to reproduce the issue.

Thanks!
Georgi Krustev
Telerik team
 answered on 27 Jun 2013
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
MultiColumnComboBox
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?