Hi!
I am using RadDiagram where we have custom controls that show up on the mouse hover of some shapes.
When we zoom and create these custom controls, the zoom affects our custom controls as well (which has buttons and text, making them unusable)
I've tried to use the layouttransform to my control:
LayoutTransform="{Binding ElementName=Shape, Path=LayoutTransform.Inverse}"/>
But it didn't work. Any ideas?
Dear support,
how can I implement date-dependencies in GanttView. That means
1. task2 depends on task1 (defined in "Dependencies")
2. if end-date of task1 changes for example from 31st of January to the 28th of February also the begin-date from task2 "automatically" has to change from 31st to 28th
Thanks in advance
Marcus
I have an RadAutoCompleteBox with a dynamic ItemSource that works some places and not others. In the setter for the SearchText I run a search and populate the ItemSource. In the box I'm working on now, the ItemSource's ObservableCollection is giving me "Exception thrown: 'System.ArgumentException' in System.Core.dll" when i try and add item to it. This method works many places elsewhere, and If i manually set the SearchText elsewhere the offending code runs without error. Any help would be greatly appreciated.
Here's the XAML:
<telerik:RadAutoCompleteBox
Grid.Column="2" Grid.Row="3"
x:Name="AutoCompleteBoxMakeModel"
ItemsSource="{Binding MakeModelCollection}"
SearchText="{Binding MakeModelTerm, Mode=TwoWay}"
SelectedItem="{Binding SelectedMakeModel, Mode=TwoWay}"
SelectionMode="Single"
HorizontalAlignment="Left"
TextSearchPath="Display"
TextSearchMode="Contains"
AutoCompleteMode="Suggest"
IsDropDownOpen="{Binding IsMakeModelDropDownOpen, Mode=TwoWay}"
DropDownItemTemplate="{StaticResource MakeModelSearchTemplate}"
DropDownWidth="300"
VerticalAlignment="Top" Width="275" Height="25" Margin="0,3,0,0" >
<telerik:StyleManager.Theme>
<telerik:VisualStudio2013Theme/>
</telerik:StyleManager.Theme>
</telerik:RadAutoCompleteBox>
And here's the offending code:
private string makeModelTerm;
public string MakeModelTerm
{
get { return makeModelTerm; }
set
{
if (makeModelTerm == value)
{
return;
}
makeModelTerm = value;
RaisePropertyChanged("MakeModelTerm");
if (value.Length > 2)
{
SearchMakeModel(value);
}
}
}
private void SearchMakeModel(string value)
{
LookUpRepository er = new LookUpRepository();
var list = er.SearchMakeModel(value);
MakeModelCollection.Clear();
list.ForEach(MakeModelCollection.Add); // This triggers the System.ArgumentException on each value in list
this.IsMakeModelDropDownOpen = true;
}
I have a celledittemplate with a button inside that template, bound with command and command parameter.
When i enter the cell in edit mode it initializes the command but it is missing it's datacontext.
I found out that when i retrigger my command's RaiseCanExecuteChanged on the PreparedCellForEdit the datacontext is known.
So i was wondering if the datacontext is being set to late on the celledittemplate.
I would find it rather stupid to have to use the PreparedCellForEdit event everytime i need this behaviour
Is there any way to bind a command to the built-in Previous/Next/Cancel buttons in the RadWizard?
I'd like to handle it in my viewmodel and not the xaml code behind.
Thanks,
Mahdieh,
Whenever the user selects the time before the date on the RadDateTimePicker DropDown, the date gets defaulted to today's date (even though today's date is outside of the specified selectabledates). I'm looking for a way to default the date to SelectableDateStart or have the RadDateTimePicker wait for the user to select a date.
I included two pictures:
1. What the user sees when he clicks on the DepartureDateTime RadDateTimePicker
2. What gets selected when the user clicks on the time first (and hasn't selected any dates)
My XAML code looks like this:
<telerik:RadDateTimePicker x:Name="ItineraryDepartureDateTimePicker"
SelectedValue="{Binding Itinerary.DepartureTime}"
SelectableDateStart="{Binding Itinerary.TravelRequestFromDate}"
SelectableDateEnd="{Binding Itinerary.TravelRequestToDate
IsInputRestrictedToSelectableDates="True"
DisplayDate="{Binding Request.FromDate}"
DisplayDateStart="{Binding Itinerary.TravelRequestFromDate}"
DisplayDateEnd="{Binding Itinerary.TravelRequestToDate}"
CalendarStyle="{StaticResource CalendarStyle}" HorizontalAlignment="Left" DateTimeWatermarkContent="{DynamicResource LocalTime}" Width="140"/>
Where:
What am I missing? Why is the date being defaulted to today's date whenever the user selects a time before a date on the Dropdown?
Hi,
Press Clear All button and do:
DatagridResults.FilterDescriptors.SuspendNotifications();
foreach
(var col
in
DatagridResults.Columns)
{
if
(col.ColumnFilterDescriptor.IsActive)
{
col.ClearFilters();
}
}
DatagridResults.FilterDescriptors.ResumeNotifications();
Filter icon is still black (indicating we are still filtering). Note that this actually shows a false information to the user, because the Filter has been removed, but it is not reflected.
Only occurs with columns I load default filters (which had saved). To load the saved filters:
public
IColumnFilterDescriptor LoadColumnFilter(IColumnFilterDescriptor columnFilterDescriptor)
{
if
(FilterSettings !=
null
&& FilterSettings.Count > 0)
{
foreach
(FilterSetting setting
in
FilterSettings)
{
if
(setting.ColumnUniqueName.Equals(columnFilterDescriptor.Column.UniqueName))
{
if
(setting.Filter1 !=
null
)
{
columnFilterDescriptor.FieldFilter.Filter1.Operator = setting.Filter1.Operator;
columnFilterDescriptor.FieldFilter.Filter1.Value = setting.Filter1.Value;
columnFilterDescriptor.FieldFilter.Filter1.IsCaseSensitive = setting.Filter1.IsCaseSensitive;
}
columnFilterDescriptor.FieldFilter.LogicalOperator = setting.FieldFilterLogicalOperator;
if
(setting.Filter2 !=
null
)
{
columnFilterDescriptor.FieldFilter.Filter2.Operator = setting.Filter2.Operator;
columnFilterDescriptor.FieldFilter.Filter2.Value = setting.Filter2.Value;
columnFilterDescriptor.FieldFilter.Filter2.IsCaseSensitive = setting.Filter2.IsCaseSensitive;
}
return
columnFilterDescriptor;
}
}
}
return
columnFilterDescriptor;
}
As I have to remove a load default filter to the filter icon actualize correctly?
Thanks, Gerard.