Range Types
17 Nov 20171 minute to read
RangeNavigator control is designed to visualize large number of data and navigate to particular data from the large collection at ease. The data for the RangeNavigator is either Numeric values or DateTime values and the ValueType
property in RangeNavigator indicates the type of the data that should be passed for the control. By default the ValueType
of RangeNavigator is DateTime
- Numeric
- DateTime
Numeric Type
RangeNavigator is also used with numeric data and the ValueType
for this data is “numeric”
@(Html.EJ().RangeNavigator("container")
.ValueType("numeric")
)
The following screenshot displays the RangeNavigator with numeric data.
DateTime
By default the ValueType
of the RangeNavigator is “datetime” and represents the DateTime values.
@(Html.EJ().RangeNavigator("container")
.ValueType("datetime")
)
DateTime Intervals
The DateTime range type contains an IntervalType
property that sets the DateTime interval to one of the following:
- Years
- Quarters
- Months
- Weeks
- Days
- Hours
By default IntervalType
for higher level labels are Years and for lower level labels its Quarters.
@(Html.EJ().RangeNavigator("container")
.LabelSettings(ls=>ls
.HigherLevel(higher=>higher.IntervalType(NavigatorIntervalType.Years))
.LowerLevel(li=>li.IntervalType(NavigatorIntervalType.Quarters))
))