Skip to content

Commit 792fcd4

Browse files
author
User Jenkins
committed
Sync with Kendo UI Professional
1 parent 11599d6 commit 792fcd4

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs-aspnet/html-helpers/data-management/grid/how-to/editing/apply-dates-that-ignore-timezones.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@ slug: howto_applydatesignoretimezones_gridaspnetmv
88

99
# Apply Dates that Ignore Timezones
1010

11+
Use the property of the model that should ignore the timezone. Set the value of the property as UTC time by using its ticks. Here is an example:
12+
13+
```
14+
public class Person
15+
{
16+
public int PersonID { get; set; }
17+
public string Name { get; set; }
18+
private DateTime birthDate;
19+
public DateTime BirthDate
20+
{
21+
get { return this.birthDate; }
22+
set
23+
{
24+
this.birthDate = new DateTime(value.Ticks, DateTimeKind.Utc);
25+
}
26+
27+
}
28+
}
29+
```
30+
1131
To see the example, refer to the project on how to [apply dates that ignore timezones when working with the Kendo UI Grid](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/date-ignoring-timezones) in ASP.NET MVC applications.
1232

1333
## See Also

docs-aspnet/html-helpers/data-management/grid/scrolling/overview.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ When scrolling is enabled, the vertical scrollbar of the Grid is always visible
8585
overflow-y: visible;
8686
}
8787

88+
## Visualizing only the Horizontal ScrollBar
89+
90+
In order to activate the Horizontal Scrollbar, set width to the columns of the Grid, so their sum to be bigger than the total width of the Grid. For hiding the Vertical ScrollBar use the following CSS(replace the `#GridID` with the Id of your Grid. The needed Id is the name of the Grid):
91+
92+
#GridID .k-grid-content {
93+
overflow-y: hidden;
94+
}
95+
96+
.k-grid-header {
97+
padding: 0px !important;
98+
}
99+
88100
## Restoring the Scroll Position
89101

90102
In some scenarios, the scroll position of the Grid might be reset when the widget is rebound. To prevent the restoration of the scroll position:

0 commit comments

Comments
 (0)