Telerik Forums
Kendo UI for jQuery Forum
1 answer
518 views
US zipcodes come in two varieties, a 5-digit code (e.g. "90210") and a 5-digit-hyphen-4-digit code (e.g. "19063-2345").   I am interested in the former.  

Both formats can begin with a leading zero, e.g. Princeton NJ zipcode is "08540".

Can the NumericTextBox  be made to preserve the leading zero, and to display the value as a string of five digits without commas, decimal points?

I'm looking to adapt the NumericTextBox into a masked text box that accepts a string of five digits.
Does KendoUI have a masked text box that I've overlooked?

Thanks
Georgi Krustev
Telerik team
 answered on 07 Jun 2013
1 answer
48 views
Hi

I am using the same javascript function for several columns, filterable, ui in my grid
In the function I would like to get the field name used.
So is there an option to get the field name within that javascript function?

Thanks and best regards

Pascal
Alexander Valchev
Telerik team
 answered on 07 Jun 2013
1 answer
45 views
Hi
 
I am using the following syntax to use a the javascript function for adding a dropdown to a filter within a column of a grid:
 
columns: [  
            {
                title: "Typ",
                field: "FileExtension",
                width: 50,
                filterable: {
                    ui: dropDownFilter
                }
            },       
            {
                title: "Titel",
                field: "Title",
                width: 360,
                filterable: {
                    ui: dropDownFilter
                }
            },
 
 
Within the javascript function "typeFilter" I would like to know the column or better the field of the column
to build a javasript function that can work dynamically for several columns.
So is there a way to get the field ("FileExtension") within the javascript function or a way to pass it down to it?
 
function dropDownFilter(element) {
       element.field ?????
}
 
Thanks for your help!
 
Best regards,
 
Pascal Hohensträter

Alexander Valchev
Telerik team
 answered on 07 Jun 2013
4 answers
102 views
Thanks in advance for any help you can provide.

I'm pulling my hair out trying to figure out why this simple example wont work.

Here's the jsFiddle: http://jsfiddle.net/cmichaelgraham/NWsSj/

Seems like the content of my <div>'s end up on the 1st tab.

-Mike Graham


Kamen Bundev
Telerik team
 answered on 07 Jun 2013
4 answers
496 views
I've got html form and Kendo UI Multiselect in it. In js function i will reset form by usin form.reset(). How do i clear user made selections of it? It seems that selected values are still visible but my Kendo UI validator gives me required error.
ICT
Top achievements
Rank 1
 answered on 07 Jun 2013
1 answer
122 views
hi , i have the following problem in a form with three kendo validators .
im using the latest stable release for a form to validate the inputs of 3 divisions in the same page.
My problem is the .net textbox returns after compiling the page a different id and name for the textbox. but so far in chrome ,  IE & opera seems to work just fine.
My issue starts in Mozilla firefox when on focus of a input textbox from the one division the page i click on another on mozilla adds in all input textboxes the class k-invalid for the required fields and the aria-invalid becames true without triggering the validator though the enter key or pressing the button i have for the form.
Concluding the problem in Firefox is that if i focus on an input of a validated division on the form and then i click on 2ndary validated division of the form all input textboxes in the form appear with red border due to class k-invalid.
im attaching you the files html and JS for it.
any suggestion for that ? 
Rosen
Telerik team
 answered on 07 Jun 2013
1 answer
94 views
Hi,

We need different sizes for the popover on different platforms (on iOS and Android).
Please suggest how to set different popup for the popover, thanks.
Petyo
Telerik team
 answered on 07 Jun 2013
1 answer
75 views
My grid won't group in Chrome but works fine in IE, FF, and Opera.  In Chrome, the grid is distinguishing correctly between the columns that are set to be groupable and those that are not, but when I drag the column header up to the group panel, the dragged item has the forbidden icon (circle/slash).

Is this a known issue?
Tim R
Top achievements
Rank 1
 answered on 06 Jun 2013
0 answers
99 views
Hi,

I'm looking to validate date fields on a page, which is simple (see this JSBin from this thread).

BUT, when a page has multiple date fields on a page, things start to get wacky. See this JSBin and play around with invalid dates. The invalid message doesn't know which input to bind to, causing error messages on the wrong inputs.

Thanks for any help.

EDIT:

Simply instead of doing $("#MyForm").kendoValidator(...); targeting the date fields $(".datepicker").kendoValidator(...); resolved the issue.

Marking as 'answered'
Dan
Top achievements
Rank 1
 asked on 06 Jun 2013
1 answer
1.3K+ views
I have a trivial NumericTextBox in my application:
$("#number").kendoNumericTextBox({
    format: "c0",
    decimals: 2,
    spinners: false
});
I have an event handler elsewhere that tries this:
function updateNumber() {
    var numberBox = $("#number").data("kendoNumericTextBox");
    var anothernumberBox = $("#anotherNumber").data("kendoNumericTextBox");
    var yetanothernumberBox = $("#yetanotherNumber").data("kendoNumericTextBox");
    try {
        numberBox.value(anothernumberBox.value() - yetanothernumberBox.value());
    }
    catch (err) {
        //
    }
};
This works great as long as the number that numberBox.value() is set to is positive.
If the number is negative it fails.

I've tried messing with the min on the numberBox with no improvement.

How can I set the value() property on a NumericTextBox to a negative value?
DJo
Top achievements
Rank 1
 answered on 06 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
Chat
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?