How to create a Rad Diagram canvas with fixed height and width and get only the positive quadrant (x,y) in the view port?
The issue is when I add shapes to the canvas it can be dragged to any quadrant of the canvas, which I want to restrict.
In any case the shapes should not go outside the positive x,y coordinates. I could not find any setting or implementation related to this any samples.
We currently having issues using the RadMultiColumnComboBox when we change property on the view model which we are binding to.
1. We have multiple items with properties and one property is connected to the ComboBox.
2. We select one item in the view and the connected property is displayed in the ComboBox correctly.
3. We select a different item with the same value in the connected property, but the ComboBox does not display any text (null text).
4. Selecting another item with different value in the connected property results in displaying text again in the ComboBox.
For example items could be employees with a display name (DisplayName) property. We have a list of employees populated as item source provider.
The DisplayMemberPath in the ComboBox is set to the DisplayName property.
The SelectedItem property is set to the employee. We also have three more ComboBoxes on the same page that behave correctly (just binding to different properties) and cause no issue.
Any idea what could go wrong?
Regards, Martin
/// <summary>
/// Adds a new ViewDefinition in the Collection
/// </summary>
/// <param name="viewDefinitionId">id of the view</param>
/// <param name="viewDefinitionName">display text for the view (localized)</param>
private
void
AddViewDefinition(
int
viewDefinitionId,
string
viewDefinitionName)
{
ViewDefinitionBase viewDefinition =
null
;
int
activeViewDefinitionIndex = ScheduleView.ActiveViewDefinitionIndex;
switch
(viewDefinitionId)
{
case
0: ScheduleView.ViewDefinitions.Add(viewDefinition =
new
DayViewDefinition { Title = viewDefinitionName, TimerulerMajorTickStringFormat =
"{0:t} "
});
break
;
case
1: ScheduleView.ViewDefinitions.Add(viewDefinition =
new
WeekViewDefinition { Title = viewDefinitionName, TimerulerMajorTickStringFormat =
"{0:t} "
});
break
;
case
2: ScheduleView.ViewDefinitions.Add(viewDefinition =
new
WeekViewDefinition
{
Title = viewDefinitionName,
TimerulerMajorTickStringFormat =
"{0:t} "
,
GroupFilter = obj =>
{
if
(obj
is
DateTime)
{
var day = ((DateTime)obj).DayOfWeek.GetRecurrenceDay();
return
(day & WorkingDays) == day;
}
return
true
;
}
});
break
;
case
3: ScheduleView.ViewDefinitions.Add(viewDefinition =
new
MonthViewDefinition { Title = viewDefinitionName });
break
;
}
if
(viewDefinition ==
null
)
return
;
viewDefinition.SetValue(IdProperty, viewDefinitionId);
viewDefinition.SetValue(DayViewDefinition.EnableSmallAppointmentRenderingProperty,
true
);
ScheduleView.ActiveViewDefinitionIndex = activeViewDefinitionIndex;
}
and the Issue I have seems to lies within this function (see attached screenshot for details on the exception)
do you have any idea what is happening here? (I don't)
I have tried to migrate one project in a big solution to the new csproj SDK style
But I get this error
Error MC1000 Unknown build error, 'Cannot resolve dependency to assembly 'Telerik.OpenAccess, Version=2013.2.702.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.' Reports C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets
To avoid having nuget packages inside our git repository we have all the telerik packages on our own private nuget server
<PackageReference Include="Seges.Dms.Telerik" Version="1.0.2" />
<PackageReference Include="Seges.Dms.Telerik.Reporting" Version="1.1.0" />
And it seems that in the old style all the telerik packages inside our Seges.Dms.Telerik package are added individually, but when I look now in "Manage nuget packages" they both have the same.
One "funny" note is that on my machine in the Repository where I changed the code it builds, but if I do a new clone and build again I get the error and so do TeamCity and a fellew programmer
Also when looking at https://www.telerik.com/forums/could-not-load-assembly-telerik-openaccess it sounds like people have installed OpenAccess SDK, but this have never been installed on our Teamcity server or my machine, so didnt find any help in this
Old csproj https://paste.ofcode.org/RBMWb74Mh75PNLAEkkAiE9
New csproj https://paste.ofcode.org/udNjMVcJLTQRJhGM4uSSEw
I was wondering how the Treeview actually extracts the icons from the icon file? Probably me geeting too old LOL!!. Is it using pixel positions?
What I was trying to do is modify the Treeview so that links to files are embedded correctly (i.e. one level in from the parent.). It seemed easy to just make it a new level (that works!!). But then I would need to use an alternate set of icons. For example, replace the folder icon with a "- " graphic and then set the other two graphics to blanks.
But perhaps their is a better approach. (see attached screenshot)
BTW … just in case I can convince my boss of really doing something using this … are you available for a small project?
Hi,
I need to retrieve the recurrence pattern and set it to our custom object. I tried various methods. In all these cases, I am not able to retrieve DaysOfWeekMask which holds values like "Sunday" or "Monday|Tuesday|Wednesday" and cast it to our custom object DaysOfWeek which is also an enum.
1st Method
a) RecurrenceDays days = new RecurrenceDays();
days = days.AddDay(CurrentCreatedAppointment.RecurrenceRule.Pattern.DaysOfWeekMask);
var s = days.GetDaysOfWeek().Select(x => (DaysOfWeek)Enum.Parse(typeof(DaysOfWeek), x.ToString())).AsEnumerable();
viewModel.BackupArchiveSettings.ByDay = new ObservableCollection<DaysOfWeek>( s);
var k = s.GetEnumerator();
var k1 = k.Current;
2nd Method
RecurrenceDays days = new RecurrenceDays();
days = days.AddDay(CurrentCreatedAppointment.RecurrenceRule.Pattern.DaysOfWeekMask);
var s = days.GetDaysOfWeek().Select(x => (DaysOfWeek)Enum.Parse(typeof(DaysOfWeek), x.ToString())).AsEnumerable();
newcol = new ObservableCollection<DaysOfWeek>();
foreach (var item in s.ToList())
{
viewModel.BackupArchiveSettings.ByDay.Add(item);
}
Please help
Thanks,
Divya