
Hi,
I have following RadComboBox:
<telerik:RadComboBox x:Name="cmbSvtAreaManagers" Grid.Row="0" Grid.Column="2" ItemsSource="{Binding SvtAreaManagers}" TextSearch.TextPath="DisplayPerson" DisplayMemberPath="DisplayPerson" SelectedValue="{Binding CurrentCustomerFabrics.AreaManagerID, Mode=TwoWay}" SelectedValuePath="PersonID" ClearSelectionButtonContent="{bx:LocalizeBinding ClearSelectedItem, Global=true}" ClearSelectionButtonVisibility="Visible">As you can see, the SelectedValue is bound to the CurrentCustomerFabrics object (my Model class) defined in my ViewModel.
private CustomerFabricsModel customerFabricsModel;public CustomerFabricsModel CurrentCustomerFabrics{ get { return customerFabricsModel; } set { if (customerFabricsModel != value) { customerFabricsModel = value; NotifyPropertyChanged(); } }}
When the form is launched, the CurrentCustomerFabrics object is null (it's not initialized) so I would expect to see an empty combobox, but instead the first record is shown (SelectedIndex = 0). How is this possible ?
Regards,
Hans

I have a GridViewDataColumn, in the first column is an AutoCompleteBox for searching names in a ObservablceCollection.
I have build the RadGridView with AutoCompleteBox like this:
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="*" IsReadOnly="False">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate DataType="{x:Type detailViews:MyViewModel}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<telerik:RadAutoCompleteBox DisplayMemberPath="Name"
TextSearchMode="Contains"
WatermarkContent="Suche..."
AutoCompleteMode="Suggest"
SelectionMode="Single"
ItemsSource="{Binding Project.Names, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}" />
<telerik:RadButton Grid.Column="1" HorizontalAlignment="Right" Style="{StaticResource RadImageButton}" ToolTip="Search"
Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}, Path=DataContext.SearchFromDatabaseCommand}"
CommandParameter="{Binding Path=.}">
<Image Grid.Column="1" Source="{framework:ApplicationImage image}" Width="16" Height="16" />
</telerik:RadButton>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
My Problem is that the items of ObservableCollection not binded in autocompletebox. Is it possible with my type of implemetation of the AutoCompleteBox in the GridViewDataColumn?

Hello,
I have a RadMap that is throwing an exception which is putting my wpf application into 'break mode'. I am unable to locate where exactly the exception is occurring as it seems to be within the RadMap library. Any suggestions?
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Telerik.Windows.Controls.DataVisualization
StackTrace:
at Telerik.Windows.Controls.Map.MapShapeData.SetLogicalWidth(Int32 zoomLevel)
at Telerik.Windows.Controls.Map.MapShapeData.CalculateScreenGeometry(Int32 zoomLevel, Boolean raisePropertyChanged)
at Telerik.Windows.Controls.Map.ShapeCoordinatesProcessor.StartProcessing(Object paramObject)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

We need to change the appointment height per appointment in the RadScheduleView timeline view. Since we have multiple appointment types
with different information (amount of information), we need to change the size. We don't want scrollable content.
So my plan was to set the MinAppointmentHeight to the smallest appointment and than scale them. But if I set the MinAppointmentHeight,
all appointments just have the same size. Event if we change it in the style.
Thanks a lot!


Hi,
I'm disappointed to not successfully bind a column on a custom object: is it possible to display a custom object in a cell of a grid ?
If i use DataMemberBinding jointly with CellTemplate, the dataContext of the gridviewcell is not my property but still the 'row object':
Is GridViewDataColumn's purpose to bind on 'simple properties' ?
Thanks a lot,
Example: The 2nd column doesn't display the button content neither bind the command because the datacontext of the cell is still a 'Row' object and not and 'Item' object.
Code:
public class MyViewModel : Telerik.Windows.Controls.ViewModelBase { public MyViewModel() { this.ItemsSource = new ObservableCollection<Row>() { new Row() { RowName = "Row 1" }, new Row() { RowName = "Row 2" }, new Row() { RowName = "Row 3" }, }; } public ObservableCollection<Row> ItemsSource { get; set; } } public class Row { public Row() { this.Item = new Item(); } public Item Item { get; private set; } public string RowName { get; set; } } public class Item { private static Random rnd = new Random(); public Item() { this.Display = string.Format("Item {0}", rnd.Next(1, 999)); this.FireItem = new Telerik.Windows.Controls.DelegateCommand((object o) => { System.Diagnostics.Debug.WriteLine("Double click on " + this.Display); }); } public string Display { get; set; } public ICommand FireItem { get; set; } }
Xaml :
<Window.Resources> <local:MyViewModel x:Key="MyViewModel" /> <DataTemplate x:Key="ItemTemplate"> <Button Width="75" Height="75" Command="{Binding FireItem}" Content="{Binding Display}" /> </DataTemplate> </Window.Resources> <Grid> <telerik:RadGridView AutoGenerateColumns="False" DataContext="{Binding Source={StaticResource MyViewModel}}" IsReadOnly="True" ItemsSource="{Binding ItemsSource}"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding RowName}" Header="Stage" /> <telerik:GridViewDataColumn CellTemplate="{StaticResource ItemTemplate}" DataMemberBinding="{Binding Item}" Header="Item" /> </telerik:RadGridView.Columns> </telerik:RadGridView> </Grid>Please, I need show a RadWindow inside to RadNavigationView.
Could you help me!
Hello
What are the possible drawbacks of disabling the AutomationManager?
AutomationManager.AutomationMode = AutomationMode.Disabled;
It drastically improved shape manipulation. It was extremelly slow when resizing and creating shapes before changing the AutomationMode.
My question is, what is this for? What am I losing by disabling it? I've read the documentation but didn't understand it well.
Thank you!!