Telerik Forums
UI for WPF Forum
1 answer
139 views

Hello,

In Raddiagram, when i set IsRotationEnabled property to true, i am able to use in-build rotate arrow for rotation.
How can i customize the size of this rotate arrow?

Martin Ivanov
Telerik team
 answered on 19 Jul 2017
4 answers
200 views
I have several dictionaries stored outside of the XAP file and I load the approriate one manually.   I did this in order to minimize the size of the xap.

To load the dictionary, I use the 'WebClient()' class and do the following in OpenReadCompletedEventHandler
System.IO.Stream st = e.Result;
dictionary = new RadDictionary();
dictionary.Load(st);
((DocumentSpellChecker)this.txtDesc.SpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture);

The dictionary is loading properly, however adding to the dictionary only works for the session, which makes sense.  So my question is, how do I sync the .tdf file when the user selects "Add to dictionary".  I am able to capture the "DataChanged" event, so I guess in that event handler I just need to pass the dictionary ( or even better just the word) to my webservice and overwrite the existing .tdf.  How do I do that?

Also I realize this means all users will be editing the same .tdf, and that is not ideal, but right now it doesn't work at all and I just want to get it working.  I am still on the latest SL4 build.
Tanya
Telerik team
 answered on 19 Jul 2017
7 answers
161 views

Quite awhile back I posted a change request on the feedback portal to get support for the RadWizard in the Document Outline window of Visual Studio. Unfortunately, I've been informed that even after nearly two years it's still not on their plans due to low demand.

The Document Outline is an amazing feature with Visual Studio that allows you to quickly see the hierarchy of your WPF XAML. This is invaluable when you have complex layout -- which you probably have unless you're dealing with trivial solutions. Most controls enumerate all their children. The RadWizard swallows it up and displays nothing (image added to illustrate the difference).

I'd appreciate everyone reading this to take a look at the Document Outline feature if you're not already familiar with it, and once you do I hope you'll see why the RadWizard needs the support and then please go and upvote my feedback.

Yoan
Telerik team
 answered on 19 Jul 2017
6 answers
232 views

Hello

is it possible, to bind the Edit-Button to a Command in ViewModel?

If it's not possible: could i place a Custom-Button (with VM-Command-Binding) inside the RadCollectionNavigator?

 

Kind regards

Birgit

 

Dilyan Traykov
Telerik team
 answered on 18 Jul 2017
1 answer
162 views

Hello,

There is an issue when RadGridView does not re-evaluate row item if filter property of viewmodel (datacontext of the row) was changed.

For example, RadGridView contains the FilterDescriptor to display all customers where address property is "Address1". It works fine i.e. RadGridView  shows only customers where address property equals to "Address1. But then I'll change the address property of viewmodel item from "Address1" to "Address2". And I can see this row on GridView. Expected behavior is RadGridView should filter out customer where address property equals to "Address2".

Is here any workaround?

Thank you,

Yuriy.

Ivan Ivanov
Telerik team
 answered on 18 Jul 2017
1 answer
213 views

Hi,

I tried to use "search as you type" on my GridViewComboBoxColumn. But it doesn't work.

When I type something on the search bar doesn't found anything on grid.

<UserControl.Resources>       
        <CollectionViewSource x:Key="DirectionsCollectionViewSource" x:Name="DirectionsCollectionViewSource" />
    </UserControl.Resources>
 
......
<telerik:GridViewComboBoxColumn UniqueName="Direction" Header="Direction"
                                          DataMemberBinding="{Binding Path=Direction, UpdateSourceTrigger=PropertyChanged}"
                                          SelectedValueMemberPath="Value"
                                          ItemsSource="{Binding Source={StaticResource DirectionsCollectionViewSource}}"                                                                                                       
                                          DisplayMemberPath="Label">                   
              </telerik:GridViewComboBoxColumn>

 

Collection View Source is populated with the following values:

List<SSCStringValueObject> directions = new List<SSCStringValueObject>();
           directions.Add(new SSCStringValueObject("O", "Out");
           directions.Add(new SSCStringValueObject("I", "In");
 
           return directions;

 

Telerik version used: 2017.2.614.45

 

What am I missing? Can you provide me an example, please?

 

Thank you

Dilyan Traykov
Telerik team
 answered on 18 Jul 2017
1 answer
779 views

Hi,

The following code works by searching text on telerik:RadGridView . It highlights all appearance of the text on all columns (i.e. 12 columns) of the data.

Our client requests to only highlight the appearance of the text on the specific 3 columns of the data. no highlights happen on the rest of columns of data no matter if it matches.

Can somebody help me out?

Thanks in advance.

Zhen

public void DoSearch(string text)
{
var grid = this.ExtendedControl;
var searchBytextCommand = RadGridViewCommands.SearchByText as RoutedUICommand;
searchBytextCommand.Execute(text, grid);
}

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Jul 2017
1 answer
199 views

Hello,

In my code, for Raddiagram, default SettingsPaneHomeControl is used. In that there are options such as Bring to Front,Back,Forward,Backward.

Bring to Back, Front works properly. But Bring to forward, backward does not detect first click, and after second it works properly for some diagrams, and for some diagrams it does not work.

How i should i debug this? 

Is there any way i can change its properties?

 

Thanks in advance.

Martin Ivanov
Telerik team
 answered on 18 Jul 2017
2 answers
219 views

Hi, 

I have these comboboxes that use a keyed style that defines the ClearSelectionButtonContent, the first combobox that is clicked looses its ClearSelectionButtonContent after clicking on another one. To try it out, create a new WPF app and paste the code below in the MainWindow.xaml file and experiment with it, you will see what I mean. It can even be seen in design mode. I'm using VS 2017 (15.2 2643.15) and telerik 2017.1.222.45. 

Thanks for looking into this issue.

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
    x:Class="WpfApp2.MainWindow"
    Title="MainWindow" Height="150" Width="325">
    <Window.Resources>
        <Style x:Key="radcomboboxstyle" TargetType="{x:Type telerik:RadComboBox}">
            <Setter Property="ClearSelectionButtonVisibility" Value="Visible"/>
            <Setter Property="ClearSelectionButtonContent">
                <Setter.Value>
                    <Grid>
                        <Ellipse Height="20" Width="20" Fill="Red"/>
                        <TextBlock Text="X" TextElement.FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
                    </Grid>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Label Content="ComboBox1" VerticalAlignment="Center"/>
            <telerik:RadComboBox Width="150" Height="30" Style="{StaticResource radcomboboxstyle}" >
                <telerik:RadComboBoxItem Content="Item 1"/>
                <telerik:RadComboBoxItem Content="Item 2"/>
                <telerik:RadComboBoxItem Content="Item 3"/>
            </telerik:RadComboBox>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <Label Content="ComboBox2" VerticalAlignment="Center"/>
            <telerik:RadComboBox Width="150" Height="30" Style="{StaticResource radcomboboxstyle}" >
                <telerik:RadComboBoxItem Content="Item 1"/>
                <telerik:RadComboBoxItem Content="Item 2"/>
                <telerik:RadComboBoxItem Content="Item 3"/>
            </telerik:RadComboBox>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="2">
            <Label Content="ComboBox3" VerticalAlignment="Center"/>
            <telerik:RadComboBox Width="150" Height="30" >
                <!-- Setting the style explicitly instead of via a reference to the keyed style defined in the resources -->
                <telerik:RadComboBox.Style>
                    <Style TargetType="{x:Type telerik:RadComboBox}">
                        <Setter Property="ClearSelectionButtonVisibility" Value="Visible"/>
                        <Setter Property="ClearSelectionButtonContent">
                            <Setter.Value>
                                <Grid>
                                    <Ellipse Height="20" Width="20" Fill="Red"/>
                                    <TextBlock Text="X" TextElement.FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
                                </Grid>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </telerik:RadComboBox.Style>
                <telerik:RadComboBoxItem Content="Item 1"/>
                <telerik:RadComboBoxItem Content="Item 2"/>
                <telerik:RadComboBoxItem Content="Item 3"/>
            </telerik:RadComboBox>
        </StackPanel>
    </Grid>
</Window>

Michel Cossette
Top achievements
Rank 1
 answered on 17 Jul 2017
13 answers
545 views
Hi
I have a problem with the RadDocking pane which doesn't auto-hide after selecting an item in a list box contained within the RadPane. I want the user to be able to mouse-over the pane header to show the pane (in unpinned mode) and then click or double click an item in the list contained within the pane. When the user moves the mouse away or sets focus to another part of the application, the pane should auto-hide.
Currently if the user mouses over the pane header, the pane slides into view, and on mouse leave the pane auto-hides correctly. However, if they mouse over the header and then select an item in the list box on the pane, the pane then refuses to auto-hide, no matter what control gets focus after that. The only way to hide the pain is then to manually pin and unpin it.

How can I get the pane to auto-hide correctly?

XAML below:

<
telerik:RadDocking>
      <telerik:RadDocking.DocumentHost>
          <!--document here-->
      </telerik:RadDocking.DocumentHost>
           
      <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft">
          <telerik:RadPaneGroup>                       
              <telerik:RadPane IsPinned="True" Header="Products" CanUserClose="False"
                              CanFloat="False"
                              CanDockInDocumentHost="False"
                              ContextMenuTemplate="{x:Null}">
                  <telerik:RadPane.HeaderTemplate>
                      <DataTemplate>
                          <TextBlock Text="{Binding}" Margin="0, 0, 80, 0"/>
                      </DataTemplate>
                  </telerik:RadPane.HeaderTemplate>
                       
                  <!--Product List-->
                  <telerik:RadListBox>
                             <!--- databound to product list -->
                  </telerik:RadListBox>
              </telerik:RadPane>
          </telerik:RadPaneGroup>
      </telerik:RadSplitContainer>
  </telerik:RadDocking>

Thanks,
Guy
Kevin
Top achievements
Rank 1
 answered on 17 Jul 2017
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?