Hi,
I'm trying to use the ScheduleView control to create a kind of calender for shift planning. (a bit like the Shifts app in Teams)
But I'm having some troubles styling it in the way I want.
Based on the documentation, I have this at the moment.
<telerik:RadScheduleView x:Name="ScheduleView" AppointmentsSource="{Binding Appointments}">
<telerik:RadScheduleView.ViewDefinitions>
<!--<telerik:DayViewDefinition/>-->
<telerik:WeekViewDefinition Orientation="Vertical" ShowWeekGroupHeaders="True" ShowAllDayArea="False" ShowTimeRuler="True" MinorTickLength="1d" MajorTickLength="1d" WeekGroupHeaderStringFormat="Week number {0}, {1:D}" FirstDayOfWeek="Monday"/>
</telerik:RadScheduleView.ViewDefinitions>
<telerik:RadScheduleView.ResourceTypesSource>
<telerik:ResourceTypeCollection>
<telerik:ResourceType Name="Team">
<telerik:Resource ResourceName="DAG" DisplayName="Dag"/>
<telerik:Resource ResourceName="PL1" DisplayName="Ploeg 1"/>
<telerik:Resource ResourceName="PL2" DisplayName="Ploeg 2"/>
<telerik:Resource ResourceName="NA" DisplayName="Nacht"/>
<telerik:Resource ResourceName="WK1" DisplayName="Weekend 1"/>
<telerik:Resource ResourceName="WK2" DisplayName="Weekend 2"/>
</telerik:ResourceType>
</telerik:ResourceTypeCollection>
</telerik:RadScheduleView.ResourceTypesSource>
<telerik:RadScheduleView.GroupDescriptionsSource>
<telerik:GroupDescriptionCollection>
<telerik:DateGroupDescription/>
<telerik:ResourceGroupDescription ResourceType="Team"/>
</telerik:GroupDescriptionCollection>
</telerik:RadScheduleView.GroupDescriptionsSource>
</telerik:RadScheduleView>
This is already pretty close to what I need. But I want my Team resource to be displayed horizontally.
The goal is that per day, I can fill in if for that team it's a working day or a not. So 1 entry per day per team. (I don't care about the shift timing yet since it's fixed per shift anyway)
Something like this
Is this possible? And could somebody help me guide me in the right direction please? :-)
Hello,
We are needing to retrieve all map tiles for both Bing and Open Street over https instead of http. Using this forum post we were able to successfully retrieve Open Street tiles over https.
https://www.telerik.com/forums/openstreetmapprovider-through-https#1146262
However after structuring the Bing requests similarly, it appears the initialization of the Bing map service will only go out over http. With only https allowed through the firewall, this call fails and the tiles are never retrieved. If we open http, then the initialization is successful, and the map tiles will come through over https.
This is an example of the Bing endpoint that is only requested over http while launching the map.
Is there a way to override the initialization or imagery setup with Bing, to have all the mapping calls use https, similar to the GetTile override?
Example Code In Use:
namespace Map.RadMap
{
public class CustomHttpsMapProvider : TiledProvider
{
public CustomHttpsMapProvider(MapMode mapMode = MapMode.Road, bool hasLabels = false, string applicationId = Strings.BING_MAPS_KEY, string osmUserAgent = null)
: base()
{
// Open Street
if (osmUserAgent != null)
{
OsmTileMapSource source = new HttpsOpenStreetMapSource();
source.WebHeaders.Add(HttpRequestHeader.UserAgent, osmUserAgent);
this.MapSources.Add(source.UniqueId, source);
return;
}
// Bing Hybrid, Aerial or Road
switch (mapMode)
{
case MapMode.Aerial:
{
if (hasLabels)
{
BingRestAerialLabelSource source = new HttpsBingAerialLabelSource(applicationId);
MapSources.Add(source.UniqueId, source);
}
else
{
BingRestAerialSource source = new HttpsBingAerialSource(applicationId);
MapSources.Add(source.UniqueId, source);
}
break;
}
case MapMode.Road:
{
BingRestRoadSource source = new HttpsBingRoadSource(applicationId);
MapSources.Add(source.UniqueId, source);
break;
}
}
}
public override ISpatialReference SpatialReference
{
get
{
return new MercatorProjection();
}
}
}
public class HttpsBingAerialSource : BingRestAerialSource
{
public HttpsBingAerialSource(string applicationId) : base(applicationId)
{
}
protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
{
Uri baseURI = base.GetTile(tileLevel, tilePositionX, tilePositionY);
string uriString = baseURI.AbsoluteUri.Replace("http", "https");
return new Uri(uriString);
}
}
public class HttpsBingAerialLabelSource : BingRestAerialLabelSource
{
public HttpsBingAerialLabelSource(string applicationId) : base(applicationId)
{
}
protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
{
Uri baseURI = base.GetTile(tileLevel, tilePositionX, tilePositionY);
string uriString = baseURI.AbsoluteUri.Replace("http", "https");
return new Uri(uriString);
}
}
public class HttpsBingRoadSource : BingRestRoadSource
{
public HttpsBingRoadSource(string applicationId) : base(applicationId)
{
}
protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
{
Uri baseURI = base.GetTile(tileLevel, tilePositionX, tilePositionY);
string uriString = baseURI.AbsoluteUri.Replace("http", "https");
return new Uri(uriString);
}
}
public class HttpsOpenStreetMapSource : OsmTileMapSource
{
public HttpsOpenStreetMapSource() : base(@"https://{prefix}.tile.openstreetmap.org/{zoom}/{x}/{y}.png")
{
}
protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
{
Uri baseURI = base.GetTile(tileLevel, tilePositionX, tilePositionY);
string uriString = baseURI.AbsoluteUri.Replace("http", "https");
return new Uri(uriString);
}
}
}
In a RadCartesianChart, zero values and very small values (relative to the Maximum of the axis) don't show up. I would like to have them show up as a horizontal line, like in the attached picture.
I got that picture by setting a small value for y. But if you increase the height the chart, it starts to look like the bar has some height rather than just being a horizontal line.
Is there a better way to get zeros to show up?
Hello! Could you please help me to fix the following issue when I call _radCombobox.ToggleDropDown():
The control was found, was expanded and then this exception was thrown:
Message: System.TimeoutException : Wait for condition has timed out Stack Trace: Server stack trace: WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target) WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) VisualWait.ForVisible(Int32 timeout) VisualWait.ForNoMotion(Int32 initialWait, Int32 motionCheckInterval, Int32 timeout) RadComboBox.WaitDropDownAnimation(Int32 millis) RadComboBox.ToggleDropDown()
Here is the combobox (as a part of UserControl):
<telerik:RadComboBox x:Name="CmbAddressType" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="3">
<TextBlock>LG Nexus 5X</TextBlock>
<TextBlock>Huawai Nexus 6P</TextBlock>
<TextBlock>iPhone 6S</TextBlock>
<TextBlock>iPhone 6S Plus</TextBlock>
<TextBlock>Microsoft Lumia 950</TextBlock>
</telerik:RadComboBox>
Application: WPF
Testing Framework: Progress Telerik Test Studio 2021.3(213.11.3.0)
I'm attempting to following the instructions at https://docs.telerik.com/devtools/wpf/controls/radrichtextbox/mef to improve the loading time of the RadRichTextBox control. However the given example is in c#. I've tried to convert that over to vb.net but I can't seem to find the right assemblies.
For example:
RadCompositionInitializer.Catalog = new TypeCatalog(
// format providers
typeof(XamlFormatProvider),
typeof(RtfFormatProvider),
typeof(DocxFormatProvider));
trying:
Imports Telerik
Imports Telerik.Windows.Documents.UI.Extensibility
Dim oTest as
RadCompositionInitializer.Catalog = new TypeCatalog(
typeof(XamlFormatProvider),
typeof(RtfFormatProvider),
typeof(DocxFormatProvider))
RadCompositionInitializer seems to come from Telerik.Windows.Documents.UI.Extensibility, but RadCompsitionInitializer.Catalog is unknown and TypeCatalog is unknown. Anyone have success in implementing this in vb.net? Many thanks!
I have a linear chart that contains data from 1/4/2019 to 31/3/2020. However, the last tick is not displayed? How to always display the last tick with the corresponding label. Thanks
<telerik:RadCartesianChart
HorizontalZoomRangeStart="0.0" HorizontalZoomRangeEnd="1.0" RenderTransformOrigin="0.5,0.5">
<telerik:RadCartesianChart.Resources>
<Style BasedOn="{StaticResource LineSeriesStyle}" TargetType="{x:Type telerik:LineSeries}">
<Setter Property="CategoryBinding" Value="X" />
<Setter Property="ValueBinding" Value="Y" />
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="Stroke" Value="#0083A9" /> <!-- Aon blue. See: https://brandmatters.aon.com/bms/damui/index.cfm?category=1450&assetID=4993 -->
</Style>
</telerik:RadCartesianChart.Resources>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:DateTimeContinuousAxis LabelFormat="{Binding HorizontalAxisFormatString}"
SmartLabelsMode="SmartStep" />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis
LabelFormat="{Binding VerticalAxisFormatString}"
RangeExtendDirection="None"
SmartLabelsMode="SmartStep" />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.SeriesProvider>
<telerik:ChartSeriesProvider Source="{Binding ItemsSource}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:ChartSeriesDescriptor ItemsSourcePath="Points" TypePath="SeriesType" />
</telerik:ChartSeriesProvider.SeriesDescriptors>
</telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
<telerik:RadCartesianChart.Grid>
<telerik:CartesianChartGrid MajorLinesVisibility="XY" />
</telerik:RadCartesianChart.Grid>
</telerik:RadCartesianChart>
Hi,
So, I have been tasked with fixing a XAML issue in RadGridView where FilterMemberPath has been set in the CustomGridViewDataColumn…This creates Custom Filter Options....
However, the Column Header isn’t highlighting as expected when the Filter is applied…
Is there a solution to this issue…
Hello.
Same gridview exists in RowDetails in GridView.
I want to hide columns at the same time.
I applied the hide/show column function in the parent gridview right from the sdk example.
However, it is difficult to apply in row details.
I tested it in a slightly different way, but it didn't work.
How should I approach it?
Width column synchronization was also applied to make visible similarly, but it failed.
Thanks.
Hi,
Is there a way I can insert text in Hebrew and scan it?
Because by default I see that it only supports English.
Thanks.