Telerik Forums
UI for WPF Forum
4 answers
253 views

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!

Chris
Top achievements
Rank 1
 answered on 06 Nov 2013
0 answers
88 views
Hello,

I have a RadGridView on a user control, which is switched in/out via a ContentControl. The view model behind the grid is a singleton instance, and will be reused.

When the Content property of the ContentControl is changed, a new view is created as it should, however the grid nulls out the SelectedItem property, which then changes the view model underneath when this view/view model goes out of scope. Why does this occur?

I would like to be able to switch this view back in and display the selected item when the user comes back to it, which should be possible, but the grid changes the view model when unbinding.
<UserControl x:Class="InventoryView"
 
 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 
 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 
             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}}" />


Joe
Top achievements
Rank 1
 asked on 06 Nov 2013
1 answer
98 views
Hello Telerik,

I my application, i have around 20 RadGridViews in a single UserControl and its working fine. Here i just want to know, is there any possiblities to export all the Grid's data to a single excl sheet one below another one or else exporting as like in the UI.

Please let me know any solution.

Regards,
Ramesh
HCL Technologies
Ivan Ivanov
Telerik team
 answered on 06 Nov 2013
1 answer
219 views
Hi,

We have been developing a WPF dashboard application that uses extensions (class libraries) that use Telerik WPF controls like Charting.
Is it possible to somehow embed needed Telerik control assemblies to each extension DLL so that we would not have to add these control assemblies also to hosting application (dashboard)? We are using MEF and PRISM.

I've seen some information about setting "Embed interop" property to True on class libraries but I'm not sure if that would do the trick. We would like our Dashboard and its extensions to be as loosely coupled as possible.

One "solution" would be to copy all needed control DLLs to Dashboard's running directory but we would like our extensions to only have one class library.

Br,

Kalle
Yana
Telerik team
 answered on 06 Nov 2013
10 answers
198 views
Hi,
again my RadScheduler's CustomTheme stopped working after upgrading to the new version. Its just dark-grey. No appointments or anything. And no error!
The theme.xaml has 3200 lines of code and its very frustrating and time-consuming to make it work again without having a clue why it stopped working. I already did that a couple of times. Could you please post a working custom-theme (or the default theme) so I can find the differences? I can't post my theme.xaml because your website hangs when I try to paste it into the code-block.


Best Regards
Steffen
Yugank
Top achievements
Rank 1
 answered on 06 Nov 2013
5 answers
129 views
Hi,

I want to DisAllow dropping Floating window over TabHeader. 
Hereby I Attached a ScreenShot.
On dragging the Floating Window over the Mainwindow, that Yellow Region in Tabheader allows me to drop the Floating 
Window over there.
My application doesn't need this facility.


Thanks in Advance,
M.Vinnarasi


Vladi
Telerik team
 answered on 06 Nov 2013
3 answers
138 views
Like the pic,because the part which shows 1 is two small,I hardly click on it,so I choose the spider mode,but I do wanna do something when clicking it,But how can I raise an event when I click the number,not on the part of the pie?
Petar Marchev
Telerik team
 answered on 06 Nov 2013
3 answers
121 views
Hello.

Could you help to resolve my issue. My application is similar VS. I have panes like Project Explorer, Database Explorer etc. All those panes are not in DocumentHost. DocumentHost is empty by default (see code):

<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>


So, you can see the content of DocumentHost is binded to property in my viewmodel. When I try to save layout all document panes are included too into xml, but I do not need them. And after, when I try to load back my layout the Documents pane are restoring too with no content (just empty).

How to supress loading DocumentHost when restoring layou?

Thanks in advance!
Vladi
Telerik team
 answered on 06 Nov 2013
1 answer
368 views
Hi everyone,

I have developped a sample application showing an issue I have in a real application.
Here is the markup of the sample application's main window :

<Window x:Class="DockedPaneOverflow.MainWindow"
        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>

Here is the markup of UserControl1 :

<UserControl x:Class="DockedPaneOverflow.UserControl1"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             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>

The user control's grid overflows the pane as shown on the attached picture.
Is it a bug ?

I use the 2012.2.912.40 version of Telerik assemblies.

Thank you in advance for your answer.
Vladi
Telerik team
 answered on 06 Nov 2013
6 answers
442 views

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?

Maya
Telerik team
 answered on 06 Nov 2013
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?