Telerik Forums
Kendo UI for jQuery Forum
1 answer
263 views
Hi Telerik Team,

I've a time picker and when I put lower case characters in, validation is false, like instead of PM if I put pM, I get the following message as in the picture.

Also the validation message is not coming from Data Annotation.

Please let me know.

Thank you
Georgi Krustev
Telerik team
 answered on 31 Mar 2014
1 answer
201 views
Hi,

I have the following NumericTextBox configured with the options:

$("#weight").kendoNumericTextBox({
culture: "nl-NL",
format: "n1"
});

When I set the weight to 80.8 (invariant) like this: $("#weight").data("kendoNumericTextBox").value("80.8"); , the NumericTextBox outputs 808,00, instead of 80,8.

Any ideas?

Kind Regards,

Marco





Georgi Krustev
Telerik team
 answered on 31 Mar 2014
1 answer
238 views
OK, this is what I need:

I need to do some complex calculations every time when user edits any cell of two of the specific Columns. Let's Say User can edit Columns A and B, but C is read only and calculated by my custom function.. C is also designed like this
template: kendo.template("<span class='columnC'></span>")
OK, I need to loop through all of the A and B columns every time when any of those cells is edited..
My problem is that if I do it on "save" event, when I loop through the dataSource.view() elements I got the old value for the cell which user just edited.. I assume that this is because the dataSource is not synced yet with the user input.. This makes my calculation wrong and it's not acceptable.

If I do it on "change" event it works fine but then it's called too many times unnecessarily and it does stress the client's cpu.

Is there a way under the "save" event to force the dataSource update and then do some things when the new values are stored into dataSource?
I'd like to avoid something like this:
"this.dataSource.getByUid(e.model.uid).set("ColumnA",e.model.ColumnA);"
"this.dataSource.getByUid(e.model.uid).set("ColumnB",e.model.ColumnB);"

as I don't know what is the cell which the user has changed.. ColumnA or ColumnB.. Maybe there is a simple way around this..

Help pls
Vladimir Iliev
Telerik team
 answered on 31 Mar 2014
1 answer
186 views
While coding a hybrid mobile application using kendo ui mobile I faced a the following problem :the drop down list does not have a down arrow when run on android devices. in app.js I am forcing the IOS7 platform to get the same experience on both android and ios

app.application = new kendo.mobile.Application(document.body, {platform: "ios7"});


here is the simple code I used at the example and there are no added styles.
 
<div data-role="view" id="test-view">

<
h3>Drop down list </h3>
<
select>
<
option>Option 1</option>
<
option>Option 2</option>
<
option>Option 3</option>
</
select>
</div>



please check this image showing the different results on different platforms , works fine on ios and the simulator but not on
 android

Demo


I wonder if there is a style rule that I can change to force the drop down arrow to show on the android device.
Kiril Nikolov
Telerik team
 answered on 31 Mar 2014
1 answer
212 views
While coding a hybrid mobile application using kendo ui mobile I faced a the following problem :the drop down list does not have a down arrow when run on android devices. in app.js I am forcing the IOS7 platform to get the same experience on both android and ios app.application = new kendo.mobile.Application(document.body, {platform: "ios7"});here is the simple code I used at the example and there are no added styles.<div data-role="view"
id="test-view">

<h3>Drop down list </h3>
<select>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>

</div>please check this image showing the different results on different platforms , works fine on ios and the simulator but not on androidhttp://postimg.org/image/8378mmy7f/I wonder if there is a style rule that I can change to force the drop down arrow to show on the android device.
Kiril Nikolov
Telerik team
 answered on 31 Mar 2014
3 answers
163 views
Hi,

Can I use the Kendo editor in a Kendo mobile application?

Thanks,
Martin
Kiril Nikolov
Telerik team
 answered on 31 Mar 2014
1 answer
93 views
How can I detect which background theme (light/dark) Windows Phone is operating under?
Kiril Nikolov
Telerik team
 answered on 31 Mar 2014
2 answers
195 views
Hi experts,

I'm using Kendo MultiSelect controller, I use MVVM design to bind this controller to a viewModel.
1. 
<select id="selectedCategories" style="width: 700px" data-role="multiselect" data-value-field="name" data-text-field="name" data-bind="source: selectedCategoryOptions, value: selectedCategory, events: { change: selectedCategoryChange }" />
2. 
var viewModel = kendo.observable({
        selectedCategory: [],
        selectedCategoryOptions: [],
});
3.
        var preCustomSubCategories = ["newItem1"];
        var selectedCategory = viewModel.selectedCategory;
        var selectedCategoryOptions = viewModel.selectedCategoryOptions;
        for (var i = 0; i < preCustomSubCategories.length; i++) {
            var item = { name: preCustomSubCategories[i] };
            if (!IsInCategoryArray(item, selectedCategory)) {
                selectedCategory.push(item);
            }
            if (!IsInCategoryArray(item, selectedCategoryOptions)) {
                selectedCategoryOptions.push(item);
            }
        }
        viewModel.set("selectedCategoryOptions", selectedCategoryOptions);
        viewModel.set("selectedCategory", selectedCategory);

If preCustomSubCategories item is exist in the options, it will be selected; but if preCustomSubCategories item is not exist in the options, it will be added to both options list and select list, but in the controller UI show nothing select. It's interesting that when i select a newItem2  again, the previous added newItem1 will show in controller UI, but newItem3 not show in controller UI.


















Chuanlong
Top achievements
Rank 1
 answered on 31 Mar 2014
3 answers
118 views
I keep getting the following error. I have sql server 2008 express full edition on my windows 7 laptop. How can I configure this demo so that it works?

​[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)]<br>   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352431

Sebastian
Telerik team
 answered on 31 Mar 2014
4 answers
231 views
I have a Stock Chart, and somehow I cannot seem to format its CategoryAxis' labels' formatting... 
I use

categoryAxis: {
            labels: {
            dateFormats:
                {
                    months: "MMM",
                    years: "yyyy",
                    weeks: "dd/MM",
                    days: "dd/MM",
                }
            }
}

But I still get the default formats... I need to have "MMM" for months but I always get "MMM 'yy"...
Is there a way to fix this? I am unable to fix it... I know the baseUnit for StockCharts with Navigator is "fit", 
but I tried modifying demos on the web, and it worked, my case is special somehow...

Hope to get the solution asap! Thanks :)
Burak
Top achievements
Rank 2
 answered on 31 Mar 2014
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?