Telerik Forums
UI for WPF Forum
1 answer
97 views
Hello!

I have added some TileViewItems to my TileView using RegionManager.AddToRegion() and it's working fine (I think RequestNavigate would do the trick also).

Now I would like to allow user to configure each tile separately. One configuration option would require me to change the configured tile to show another view (and maybe use its own viewmodel also).

Is this possible?

Now that I try RequestNavigate to this TileView region it always adds a new TileItem and that is not what I want in this case. I'd like to be able to only change the view/viewmodel for the tile I'm configuring.

Br,

Kalle
Pavel R. Pavlov
Telerik team
 answered on 03 Feb 2014
0 answers
124 views
Hi,
Can You please tell me why this code is not working. In code behind:
private void Button_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
             
            ofd.Filter = "Pdf-Dateien (*.pdf)|*.pdf";
 
            if (ofd.ShowDialog() == true)
            {
 
                this.documentStream = new FileStream(ofd.FileName, FileMode.Open);
                RadFixedDocument doc = new PdfFormatProvider(this.documentStream, FormatProviderSettings.ReadOnDemand).Import();
 
                this.pdfViewer.Document = doc;
 
            }
        }
and in XAML:
<telerik:RadPdfViewer Grid.Row="1" x:Name="pdfViewer" Grid.ColumnSpan="2"/>
System report no errors, simply nothing is showing in viewer.

Best Regards
Nebojsa Danilovic
Nebojsa
Top achievements
Rank 1
 asked on 03 Feb 2014
2 answers
294 views
Hi,

I thought (from the first look it seems so) AutoCompleteBox is what I'm looking for.
Searching the help I found not a single word how to bind Text with this control.

Further investigations brought me to a mix of "SearchText" and "SelectedItems" - which barely works

Anyhow - what I expected was:
a.) A TextBox (with validation and binding for the text)
b.) Suggestions with the possibility to choose (and also change) an item

Or (except for Validation) - the thing you see in Internet Explorer.

Can I do this with RadAutoCompleteBox?

Approach:
User has give a "Reason" for something.
In my Model I have Item.Reason - which must be filled.
Since the resons are often the same - I have a list of default reasons - as suggestions whild entering text.
The user chan choose an existing one - his own one - at the end there is text in the box - which has to be validated (IDataErrorInfo)
If it fails  - red markers.....

Manfred
ManniAT
Top achievements
Rank 2
 answered on 03 Feb 2014
1 answer
68 views
Hi,

I am trying to migrate a project from RadControls for WPF Q1 2011 SP1 version to UI for WPF Q3 2013.

The project was working before changing Telerik dll, now I get this message error :

Error    1    Unknown build error, 'Derived method 'OnItemsCollectionChanged' in type 'Telerik.Windows.Controls.GridView.BaseItemsControl' from assembly 'Telerik.Windows.Controls.GridView, Version=2013.3.1316.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' cannot reduce access. Line 1047 Position 51.'   

The line 1047 is the first line of this part of code :

<Style TargetType="{x:Type telerik:RadGridView}">
  <Setter Property="HeaderRowStyle" Value="{DynamicResource MyGridViewHeaderRow}"/>  <Setter Property="Template">
   <Setter.Value>
    <ControlTemplate TargetType="{x:Type telerik:RadGridView}">
     <AdornerDecorator>
      <Border x:Name="PART_MasterGridContainer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
       <Grid x:Name="HierrarchyBackground" Background="{TemplateBinding Background}">
        <Grid.ColumnDefinitions>
         <ColumnDefinition Width="0.032*"/>
         <ColumnDefinition Width="0.968*"/>
         <ColumnDefinition x:Name="ScrollBarColumn" MinWidth="0" Width="0"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
         <RowDefinition Height="Auto"/>
         <RowDefinition x:Name="PART_AttachedBehaviorRow" Height="Auto"/>
         <RowDefinition/>
         <RowDefinition x:Name="ScrollBarRow" Height="0" MinHeight="0"/>
         <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <telerik:GridViewGroupPanel x:Name="PART_GroupPanel" BorderBrush="#FF848484" Grid.ColumnSpan="2" Foreground="{TemplateBinding GroupPanelForeground}" IsTabStop="False" Grid.Row="0" d:LayoutOverrides="GridBox">
         <telerik:GridViewGroupPanel.Background>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
           <GradientStop Color="#FFDFDFDF" Offset="1"/>
           <GradientStop Color="{DynamicResource ColorTresClair}"/>
          </LinearGradientBrush>
         </telerik:GridViewGroupPanel.Background>
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
        </telerik:GridViewGroupPanel>
        <telerik:GridViewScrollViewer x:Name="PART_ItemsScrollViewer" Background="Transparent" CanContentScroll="True" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="1">         <telerik:GridViewScrollViewer.FooterRow>
          <telerik:GridViewFooterRow x:Name="PART_FooterRow" IsTabStop="False" IndentLevel="{TemplateBinding GroupCount}">
           <telerik:StyleManager.Theme>
            <telerik:Office_BlackTheme/>
           </telerik:StyleManager.Theme>
          </telerik:GridViewFooterRow>
         </telerik:GridViewScrollViewer.FooterRow>
         <telerik:GridViewScrollViewer.HeaderRow>
          <telerik:GridViewHeaderRow x:Name="PART_HeaderRow" IsTabStop="False" IndentLevel="{TemplateBinding GroupCount}">
           <telerik:StyleManager.Theme>
            <telerik:Office_BlackTheme/>
           </telerik:StyleManager.Theme>
          </telerik:GridViewHeaderRow>
         </telerik:GridViewScrollViewer.HeaderRow>
         <telerik:GridViewScrollViewer.NewRow>
          <telerik:GridViewNewRow x:Name="PART_AddNewRow" IsTabStop="False" IndentLevel="{TemplateBinding GroupCount}" Visibility="Collapsed">
           <telerik:StyleManager.Theme>
            <telerik:Office_BlackTheme/>
           </telerik:StyleManager.Theme>
          </telerik:GridViewNewRow>
         </telerik:GridViewScrollViewer.NewRow>
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
         <telerik:GridViewVirtualizingPanel x:Name="PART_GridViewVirtualizingPanel"/>
        </telerik:GridViewScrollViewer>
        <telerik:ScrollPositionIndicator x:Name="PART_ScrollPositionIndicator" Grid.ColumnSpan="1" ContentTemplate="{TemplateBinding ScrollPositionIndicatorTemplate}" HorizontalAlignment="Right" IsHitTestVisible="False" IsTabStop="False" Margin="0,0,28,0" Grid.Row="2" Grid.Column="1" d:LayoutOverrides="GridBox">
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
         <telerik:ScrollPositionIndicator.Visibility>
          <Binding Mode="TwoWay" Path="IsScrolling" RelativeSource="{RelativeSource TemplatedParent}">
           <Binding.Converter>
            <telerik:BooleanToVisibilityConverter/>
           </Binding.Converter>
          </Binding>
         </telerik:ScrollPositionIndicator.Visibility>
        </telerik:ScrollPositionIndicator>
        <Border x:Name="PART_FrozenColumnsPreview" Background="#33000000" HorizontalAlignment="Stretch" Grid.Row="2" Grid.RowSpan="1" Visibility="Collapsed" VerticalAlignment="Stretch" Width="Auto" Margin="0,0,5,0"/>
        <telerik:GridViewLoadingIndicator x:Name="PART_GridViewLoadingIndicator" Grid.ColumnSpan="2" IsTabStop="False" Grid.RowSpan="3" Visibility="Collapsed">
         <telerik:StyleManager.Theme>
          <telerik:Office_BlackTheme/>
         </telerik:StyleManager.Theme>
        </telerik:GridViewLoadingIndicator>
       </Grid>
      </Border>
     </AdornerDecorator>
     <ControlTemplate.Triggers>
      <Trigger Property="IsBusy" Value="True">
       <Setter Property="Visibility" TargetName="PART_GridViewLoadingIndicator" Value="Visible"/>
      </Trigger>      <Trigger Property="IsBusy" Value="False">
       <Setter Property="Visibility" TargetName="PART_GridViewLoadingIndicator" Value="Collapsed"/>
      </Trigger>      <Trigger Property="ShowColumnFooters" Value="False">
       <Setter Property="Visibility" TargetName="PART_FooterRow" Value="Collapsed"/>
      </Trigger>      <Trigger Property="ShowColumnHeaders" Value="False">
       <Setter Property="Visibility" TargetName="PART_HeaderRow" Value="Collapsed"/>
      </Trigger>
      <Trigger Property="ShowGroupPanel" Value="False">
       <Setter Property="Visibility" TargetName="PART_GroupPanel" Value="Collapsed"/>
      </Trigger>
      <Trigger Property="ComputedVerticalScrollBarVisibility" SourceName="PART_ItemsScrollViewer" Value="Collapsed">
       <Setter Property="Width" TargetName="ScrollBarColumn" Value="0"/>
      </Trigger>
      <Trigger Property="ComputedHorizontalScrollBarVisibility" SourceName="PART_ItemsScrollViewer" Value="Collapsed">
       <Setter Property="Height" TargetName="ScrollBarRow" Value="0"/>
       <Setter Property="Grid.RowSpan" TargetName="PART_ItemsScrollViewer" Value="1"/>
      </Trigger>      <Trigger Property="ShowInsertRow" Value="True">
       <Setter Property="Visibility" TargetName="PART_AddNewRow" Value="Visible"/>
      </Trigger>     </ControlTemplate.Triggers>    </ControlTemplate>
   </Setter.Value>  </Setter>  <Setter Property="Background" Value="White"/>
  <Setter Property="BorderBrush" Value="#FF848484"/>
  <Setter Property="Foreground" Value="Black"/>
  <Setter Property="BorderThickness" Value="1"/>
  <Setter Property="AlternateRowBackground" Value="#FFF4F4F4"/>
  <Setter Property="VerticalGridLinesBrush" Value="#FFCBCBCB"/>
  <Setter Property="HorizontalGridLinesBrush" Value="#FFCBCBCB"/>
  <Setter Property="GroupPanelBackground">   <Setter.Value>
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
     <GradientStop Color="#FFDFDFDF" Offset="1"/>
     <GradientStop Color="#FFBABABA"/>
    </LinearGradientBrush>   </Setter.Value>
  </Setter>  <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>  <Setter Property="VerticalAlignment" Value="Stretch"/>
  <Setter Property="HorizontalAlignment" Value="Stretch"/>
  <Setter Property="SnapsToDevicePixels" Value="True"/>
 </Style>


I don't really understand this message error, could you please help me with this issue.


Regards,

Benoît.
Benoît
Top achievements
Rank 1
 answered on 03 Feb 2014
5 answers
147 views
My calendar, see attached image, when setting the theme to Office 2013 loses some of the key styling.  The days seem to be missing, selected range doesn't show any highlighting, and the current day is not formatting the day fore color.

Any assistance would be greatly appreciated.



<UserControl.Resources>
    <ResourceDictionary>
        <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
  
        <DataTemplate x:Name="cFontTemplate"
                  x:Key="cFontTemplateKey">
            <TextBlock Text="{Binding Text}"
                   Foreground="Black"
                   FontWeight="ExtraBold" />
        </DataTemplate>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.RibbonView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</UserControl.Resources>
Yana
Telerik team
 answered on 03 Feb 2014
4 answers
371 views
Hi,

I would like to know when Information Layer is preferred over Visualization Layer and vice versa.

Thank you !
Abder Rezak
Top achievements
Rank 1
 answered on 31 Jan 2014
6 answers
207 views
Hi,

when the user use CTRL + Drag&Drop to duplicate appointments, I would like to know how I can raise a custom event with all new duplicated appointments...

Thank's
Alain
Kalin
Telerik team
 answered on 31 Jan 2014
3 answers
500 views
Hi

I'm currently using a MaskedTextInput control and have noticed that the default error template used to display validation errors is different to that used by other controls on my form (TextBox, RadCombo, RadDatePicker etc).

I'm using the StyleManager to apply the Windows7 theme to all the controls...

I don't want to create a custom template and apply this to the MaskedTextInput as described in other posts, I simply want to use the same standard error template (Windows7 theme) that the other controls all seem to use so that my UI is consistent...

Please can you suggest how this may be achieved?

Thanks

Jamie
Evgenia
Telerik team
 answered on 31 Jan 2014
3 answers
303 views

Hi,
I'm looking for an example of using RadDataForm to Update and/or Insert data in a SQL Server table in a WPF MVVM Light application.

I've binding DataForm with a LIST that contains a result of a sql query but I've not idea how to update or inser a value.

Thank's a lot!

Yoan
Telerik team
 answered on 31 Jan 2014
1 answer
240 views

I have two buttons one to show and other to close my RadDoking. By default, the RadDoking is deactivated(not show), when I press the show button, the RadDoking opens but on I prese my close button it does not work

My Xaml :

<telerik:RadDocking Grid.Column="1"     x:Name="radDocking1"  Grid.Row="1" Margin="0 0 0 10" BorderThickness="0"   
                  Visibility="{Binding Hidden,ConverterParameter=True, Mode=TwoWay,  Converter={StaticResouce                                    CvtVisibilityConverter}}"
                  Padding="0" >
             
            <telerik:RadSplitContainer InitialPosition="FloatingOnly" 
                    telerik:RadDocking.FloatingLocation="450, 250" >
                <telerik:RadPaneGroup >
                    <telerik:RadPane          Title="My Pane"
                                              CanDockInDocumentHost="False"
                                              CanUserClose="False" CanUserPin="False" >
                        
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 </telerik:RadDocking>

My ViewModel

public class MyViewModel: ViewModelBase
{
 
public MyViewModel
{
    Hidden = true ;
}
 
 
public bool Hidden
        {
            get
            {
                return hidden;
            }
            set
            {
                 
                    hidden = value;
                    OnPropertyChanged("Hidden");
                 
            }
        }
 
        private ICommand showCommand;
        private ICommand closeCommand;
 
        public ICommand CloseCommand
        {
            get
            {
                if (closeCommand == null)
                    closeCommand = new RelayCommand(param => this.CloseCommandEvent());
                return closeCommand;
            }
        }
 
 
        private void CloseCommandEvent()
        {
            Hidden = true;
        }
 
 
        public ICommand showCommand
        {
            get
            {
                if (showCommand == null)
                    showCommand = new RelayCommand(param => this.ShowCommandEvent());
                return showCommand;
            }
        }
 
        private void ShowCommandEvent()
        {
            Hidden = false;
      
        }
}

My Converter 
public class VisibilityConverter : IValueConverter
   {
       public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
       {
           if (value == null || !(value is Boolean))
               return Visibility.Collapsed;
 
           var parm = parameter ?? false;
           bool flip;
           Boolean.TryParse(parm.ToString(), out flip);
           var visible = flip ? !((bool)value) : (bool)value;
           return visible ? Visibility.Visible : Visibility.Collapsed;
            
 
 
 
       }
 
       public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
       {
           throw new NotImplementedException();
       }
   }

I do not understand why it does not work, Thank you for your help :) 
Kalin
Telerik team
 answered on 31 Jan 2014
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?