You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I change the placeholder text of a Kendo UI ComboBox after it has already been initialized?
27
+
28
+
## Solution
29
+
30
+
To set the text of the Kendo UI ComboBox's placeholder, refer to its [input element](https://docs.telerik.com/kendo-ui/api/javascript/ui/combobox/fields/input) and change the [placeholder attribute using jQuery](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#The_placeholder_attribute).
31
+
32
+
```javascript
33
+
var comboBox =$("#combobox").data("kendoComboBox");
<td>DatePicker for Progress® Kendo UI®, DateTimePicker for Progress® Kendo UI®, Calendar for Progress® Kendo UI® </td>
17
+
</tr>
18
+
19
+
<td>Product Version</td>
20
+
<td>2019.2.514</td>
21
+
</tr>
22
+
</table>
23
+
24
+
## Description
25
+
26
+
How can I format the weekNumber section in the calendar to include the year in the Kendo UI DatePicker, DateTimePicker, or Calendar?
27
+
28
+
## Solution
29
+
30
+
The weekNumber can be formatted in the [month.weekNumber configuration](https://docs.telerik.com/kendo-ui/api/javascript/ui/datepicker/configuration/month#monthweeknumber) using a template. There are two properties which can help modify its appearance: **currentDate** and **weekNumber**.
if (data.weekNumber == 1 && data.currentDate.getMonth() == 11) {
74
+
year++;
75
+
}
76
+
return year;
77
+
}
78
+
79
+
$("#datepicker1").kendoDatePicker({
80
+
weekNumber: true,
81
+
month: {
82
+
// template for dates in month view
83
+
weekNumber: $("#week-template").html()
84
+
},
85
+
});
86
+
</script>
87
+
```
88
+
89
+
## See Also
90
+
91
+
*[month.weekNumber - DatePicker - Documentation and API Reference](https://docs.telerik.com/kendo-ui/api/javascript/ui/datepicker/configuration/month#monthweeknumber)
92
+
*[month.weekNumber - DateTimePicker - Documentation and API Reference](https://docs.telerik.com/kendo-ui/api/javascript/ui/datetimepicker/configuration/month#monthweeknumber)
93
+
*[month.weekNumber - Calendar - Documentation and API Reference](https://docs.telerik.com/kendo-ui/api/javascript/ui/calendar/configuration/month#monthweeknumber)
title: Fix Position of Arrows in Kendo UI NumericTextBox
3
+
description: An example demonstrating how to fix position of arrows
4
+
type: how-to
5
+
page_title: Fix Arrows Not Centered | Kendo UI NumericTextBox
6
+
slug: numerictextbox-arrows-not-in-wrong-position
7
+
tags: numerictextbox, arrows, not, in, wrong, position, style, textbox, k-textbox
8
+
ticketid: 1405455
9
+
res_type: kb
10
+
---
11
+
12
+
## Environment
13
+
<table>
14
+
<tr>
15
+
<td>Product</td>
16
+
<td>NumericTextBox for Progress® Kendo UI®</td>
17
+
</tr>
18
+
19
+
<td>Product Version</td>
20
+
<td>2019.2.514</td>
21
+
</tr>
22
+
</table>
23
+
24
+
## Description
25
+
26
+
The Kendo UI NumericTextBox's arrows appear to be shifted in the wrong location. How can I adjust them to be centered as expected?
27
+
```dojo
28
+
<input id="numeric" class="k-textbox" />
29
+
30
+
<script>
31
+
$(document).ready(function() {
32
+
33
+
$("#numeric").kendoNumericTextBox({
34
+
min: 0,
35
+
max: 100,
36
+
value: 1,
37
+
format:"n0",
38
+
});
39
+
40
+
});
41
+
</script>
42
+
```
43
+
44
+
## Solution
45
+
46
+
A common reason for the arrows to be misplaced is due to the inclusion of the **k-textbox** class in the input element. By removing the class, the Kendo UI NumericTextBox's appearance will be fixed.
0 commit comments