Telerik Forums
Kendo UI for jQuery Forum
2 answers
302 views
The View HTML window has the width set to 400px via the .k-editor-dialog class which makes the internal content scroll.

http://demos.kendoui.com/web/editor/all-tools.html 
NYePiD
Top achievements
Rank 1
 answered on 07 Aug 2013
2 answers
570 views
If I resize page after initial load - editor window stays unchanged.

1. How do I cause editor to resize?
2. Why isn't this happening automatically? Does this mean that this control is half-baked and is not ready for production use?
NYePiD
Top achievements
Rank 1
 answered on 07 Aug 2013
2 answers
248 views
Hi,

I am trying to enable/disable date pickers depending on other widgets (checkboxes and numeric text boxes). When I try to call DatePicker.enable() with true or false as a parameter, i get an error because the DatePicker isn't ready yet. Seems like Kendo widgets aren't ready until  $(document).ready too. Are there any events or something that would tell me when the date picker is ready to be manipulated ? For now I am using a setTimeout which feels really wrong.

Here is a sample of my code.

1.$(document).ready(function () {
2.        ChangeDatePickersState();
3.    });
01.function ChangeDatePickersState() {
02.    var input = $('#MyCheckbox:checked')
03.    var bool = input.length != 0 ? true : false;
04.    EnableDatePickerForCheckbox('MyDatePicker', bool);

01.function EnableDatePickerForCheckbox(inputName, inputValue) {
02.    var datePicker = $('#' + inputName).data("kendoDatePicker");
03.    if (inputValue == true) {
04.        datePicker.enable(true);
05.    }
06.    else {
07.        datePicker.enable(false);
08.        datePicker.value(null);
09.    }
10.}

I thank you in advance.
Simon
Top achievements
Rank 1
 answered on 07 Aug 2013
1 answer
93 views
Hi 

Looking at the Kendo UI web page it says that the controls are supported on Android 2.2.x+.

I have a Galaxy Tab with Android 2.3.5 and when trying to use the Editor it does not work.  When you click in the text area nothing happens.  It does not get focus and put the cursor in the text area.

Has anyone experienced this and/or know how to fix it?

Thanks
Atanas Korchev
Telerik team
 answered on 07 Aug 2013
1 answer
119 views
Is there a possibility of achieving this kind of functionality on mobile using a list view inside a drawer? Example below.

http://demos.kendoui.com/mobile/splitview/index.html#/
Petyo
Telerik team
 answered on 07 Aug 2013
3 answers
206 views
Can I define my own range and labels in the Linear Gauge?

Controller:
public ActionResult LinearGauge()
{
List<gaugeSetting> gaugeModel = new List<gaugeSetting>();

gaugeModel.Add(new gaugeSetting { From = 1, To = 2, Color = "#000099", Label = "Requirements" });
gaugeModel.Add(new gaugeSetting { From = 2, To = 3, Color = "#009900", Label = "Design" });
gaugeModel.Add(new gaugeSetting { From = 3, To = 4, Color = "#ff0000", Label = "Development" });

return View(gaugeModel)
}

View:

@(Html.Kendo().LinearGauge()
.Name("gauge")
.Pointer(pointer => pointer
.Value(2)
.Shape(GaugeLinearPointerShape.Arrow)
)
.Scale(scale => scale
.Vertical(false)
.Labels(l =>
{
//Get the Labels from the Model
})
.MajorUnit(1)
.MinorUnit(1)
.Max(7)
.Ranges(ranges =>
{
//Get the Ranges from the Model
}
)
)
.HtmlAttributes(new { style = "width:500px;" })
)
Iliana Dyankova
Telerik team
 answered on 07 Aug 2013
1 answer
755 views
I have a column that binds to an MVC Model.

When the value is negative it should be displayed in red. 

How is that done?

 
columns.Bound(e => e.UnrealizedGainLoss)
       .Title("Unrealized Gain /<br> Loss ($)")
       .HeaderHtmlAttributes(new {title = "Market Value and Book Value."})
       .Format("{0:N}")
       .ClientFooterTemplate("<div class=aright>#= kendo.format('{0:N}', sum) #</div>")
       .HeaderHtmlAttributes(new {@class = "aright"})
       .HtmlAttributes(new {@class = "aright"});
Dimo
Telerik team
 answered on 07 Aug 2013
3 answers
258 views
With the recent updates, some of my old code has become broken. The relevant part here relating to using a DataSource to pass information back to an Mvc3 controller. Specifically, the object I am using has a field that contains an array which used to get passed to parameterMap as "Array[5]", and is now getting passed as o.extend.init[5]. This isn't recognized when I attempt to send the data to my controller action. 

Currently, I am using a workaround in parameter map where I read the values from the "o.extend.init[5]" into a plain array, and assign it to the same field in the object before converting it to JSON to be returned. Is there a cleaner solution built into Kendo that will just return that field as an array when I get the object from the DataSource?

Thanks.
Cody
Top achievements
Rank 1
 answered on 07 Aug 2013
2 answers
108 views
Kendo Validator toggles class "k-invalid" only on  inputs that are validated. So I can manage the appearence of simple inputs. But how I can style whole widget?
Widget markup usually consists of several inputs and wrappers.  And validation styling should be applied to one of that wrappers. For example to ".k-widget .k-numeric-wrap" for NumericTextBox and so on. But validator does not have appropriate settings or extension points (some set of events for instance) to do that. At least I have not found that neither in docs nor in source code.  It's not complex for me to modify source code of the validator to add this feature. But I don't want to merge my modification into following versions.

Is there some approach to solve problem?
Anton
Top achievements
Rank 1
 answered on 07 Aug 2013
6 answers
269 views
hi i want to select date  and time with validation from date to todate can any one post sample datetime picker code plz...
Suma
Top achievements
Rank 1
 answered on 07 Aug 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
Drag and Drop
Application
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?