Hi,
I have a WPF application running inside Internet Explorer. One of the dialogs attempts to open a RadWindow when the user presses a button. However, the user will never see the RadWindow. I see the same problem with the RadScheduleView, which does not show the edit appointment dialog in a WPF application inside IE, so I'm guessing that it uses RadWindow for this dialog.
When I call MyRadWindow.Show() it seems to create the instance, but the Owner property is null. Also, the following call does not detect any windows:
IList<WindowBase> windows = RadWindowManager.Current.GetWindows();
Just a note, the Silverlight version of RadWindow works fine in a Silverlight application running in Internet Explorer.
Thanks!
<UserControl x:Class="InventoryView" xmlns:tools="ViewModels.Tools;assembly=ViewModels" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:conv="clr-namespace:Views.Converters" xmlns:views="clr-namespace:Views" mc:Ignorable="d" d:DesignHeight="700" d:DesignWidth="1000"> <Grid d:DataContext="{d:DesignInstance Type=tools:InventoryViewModel, IsDesignTimeCreatable=True}"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition Width="5"/> <ColumnDefinition Width="2*" /> </Grid.ColumnDefinitions> <TabControl Grid.Column="0"> <TabControl.Items> <TabItem Header="Networks"> <!--<DataGrid ItemsSource="{Binding Networks}" SelectedItem="{Binding SelectedNetwork}"></DataGrid>--> <telerik:RadGridView ItemsSource="{Binding Networks}" AutoGenerateColumns="False" AlternationCount="1" GridLinesVisibility="None" CanUserDeleteRows="False" CanUserInsertRows="False" RowIndicatorVisibility="Collapsed" SelectedItem="{Binding SelectedNetwork}"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Name" UniqueName="Name" Width="100" DataMemberBinding="{Binding Name}"/> <telerik:GridViewDataColumn Header="Type" UniqueName="Type" Width="100" DataMemberBinding="{Binding IsPhysical, Converter={StaticResource NetworkTypeConverter} }"/> <telerik:GridViewDataColumn Header="Owner" UniqueName="Owner" Width="100" DataMemberBinding="{Binding ContactName}"/> </telerik:RadGridView.Columns> </telerik:RadGridView> </TabItem> </Grid></UserControl><!-- placeholder for main content area view --><ContentControl Grid.Row="1" Content="{Binding SelectedToolViewModel}" ContentTemplateSelector="{Binding Source={StaticResource SelectedToolTemplateSelector}}" /><telerikDocking:RadDocking.DocumentHost><br> <telerikDocking:RadSplitContainer x:Name="selectedItemBinder"><br> <b><telerik:RadPaneGroup DataContext="{Binding Panes}" x:Name="radPaneGroup" SelectedItem="{Binding ElementName=selectedItemBinder, Path=DataContext.SelectedPane, Mode=TwoWay}" local:RadPaneExtension.ItemsSource="{Binding}"/></b><br> </telerikDocking:RadSplitContainer><br> </telerikDocking:RadDocking.DocumentHost><Window x:Class="DockedPaneOverflow.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:sample="clr-namespace:DockedPaneOverflow" Title="MainWindow" Height="350" Width="525"> <telerik:RadDocking> <telerik:RadSplitContainer InitialPosition="DockedLeft" Width="240"> <telerik:RadPaneGroup> <telerik:RadPane> <sample:UserControl1></sample:UserControl1> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer> <telerik:RadPaneGroup> </telerik:RadPaneGroup> <telerik:RadPaneGroup> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost> </telerik:RadDocking></Window><UserControl x:Class="DockedPaneOverflow.UserControl1" xmlns:sample="clr-namespace:DockedPaneOverflow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <UserControl.Resources> <sample:RadGridViewSampleData x:Key="DataSource"/> </UserControl.Resources> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="15px"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <Canvas Grid.Column="0" Grid.Row="0"> <Menu> <MenuItem Header="Level 1"> <MenuItem Header="Level 1.1"/> </MenuItem> </Menu> </Canvas> <Canvas Grid.Column="0" Grid.Row="1"> <telerik:RadGridView x:Name="radGridView" Margin="8" ItemsSource="{Binding Source={StaticResource DataSource}, Path=Cars}" Width="600px" Height="394px"/> </Canvas> </Grid></UserControl>Hi,
I am still rather new to WPF in general but trying to come up to speed. I am using RadTileList in an app. I am using it for "recent items" in an application. Those items point to different modules. These modules are color coded. So when the tile renders, I want to select a particular background color of the tile, e.g. Employees = green, Crm = blue, etc.
I am using ItemsSource to a view model property
Here is the main radTileList
<telerik:RadTileList
CanUserSelect="False"
x:Name="HomeTileList"
ItemsSource="{Binding Path=RecentItems}"
GroupTemplate="{StaticResource GroupTemplate}"
Margin="5,5,0,0"
TileReorderMode="None"
ScrollViewer.HorizontalScrollBarVisibility="Auto">
....
I put in this style
<Style TargetType="telerik:Tile" >
<Setter Property="TileType" Value="Single" />
<Setter Property="Group" Value="{StaticResource tgRecent}" />
<!--<Setter Property="Background" Value="{Binding ModuleCode, Converter={StaticResource StringToTileBackgroundConverter}}"/>-->
<Setter Property="Background" Value="{StaticResource ModuleSolicitation}" />
<Setter Property="Background" Value="Black" />
<Style.Triggers>
<DataTrigger Binding="{Binding EntityId}" Value="1">
<Setter Property="Background" Value="Red" />
</DataTrigger>
</Style.Triggers>
</Style>
I have tried a value converter and a dataTrigger. In the current form, the app picks up the "black" background, but it does not seem to be checking against the EntityId field to render a Red tile.
Note: I eventually want to tied the background color based on the ModuleCode which is an enum. But I am doing EntityId for testing so that that I can have 1=1 so to speak while I figure this out.
this is "RecentItems" as the collection from the dataContext of the view.
public ObservableCollection<RecentItemViewModel> RecentItems { get; private set; }
and here is the class
public class RecentItemViewModel : ViewModelBase
{
private int _entityId;
private string _entityName;
private Enums.Module _moduleCode;
public int EntityId
{
get { return _entityId; }
set
{
if ((_entityId != value))
{
_entityId = value;
RaisePropertyChanged("EntityId");
}
}
}
public string EntityName
{
get { return _entityName; }
set
{
if ((_entityName != value))
{
_entityName = value;
RaisePropertyChanged("EntityName");
}
}
}
public Enums.Module ModuleCode
{
get { return _moduleCode; }
set
{
if ((_moduleCode != value))
{
_moduleCode = value;
RaisePropertyChanged("ModuleCode");
}
}
}
}
any ideas?