Telerik Forums
UI for WPF Forum
1 answer
118 views
In my RadGridView I define common style for all items via RowStyle. Unfortunately, it works properly only for 1,3,5.... - ItemsSource's items with odd numbers.
What am I missing?
Aleksandr
Top achievements
Rank 1
 answered on 04 Jun 2014
1 answer
200 views
Hi,

we have an encoding problem in a autocompletenbox. As you can see on the attached file all "ä", "ü", "ö", "ß", are something like
a "?". We bind a txt-file to the autocompletebox.
using (StreamReader reader = new StreamReader(file, System.Text.Encoding.UTF8))
{
    string line;
    Int32 i = 0;
    while ((line = reader.ReadLine()) != null)
    {
        i++;
        string[] tmp = line.Split(';');
        vartab.Add(new Vartab(tmp[1], tmp[0], i));
    }
}

How can we solve this problem?

Thanks a lot
Best Regrads from Austria
Rene
Rosen Vladimirov
Telerik team
 answered on 03 Jun 2014
4 answers
268 views
I'm using DropDownButton in TabControl TabItem header with UserControl as DropDownContent.
When DropDown opens and i'm clicking on UserControl elements for example trying to resize OutlookBar or clicking other elements - DropDown always closes.
This problem does not show itself when using DropDownButton on clear Form as usual, but not when in TabItem header as Style.
Also i have Rotation problems. You can see that UserControl in upper ToggleButton is rotated like a crazy.

Here is Window xaml:
<Window
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="MainWindow"
    xmlns:me="clr-namespace:WpfApplication1"
    Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <Style x:Key="ClosableStyle" TargetType="telerik:RadTabItem">
            <Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content, Mode=TwoWay}" Grid.Column="0"></TextBlock>
 
                            <telerik:RadDropDownButton Width="30" Height="30" x:Name="MachinesKnopka3" Margin="5,0,0,0" DropDownButtonPosition="Right" DropDownIndicatorVisibility="Visible" DropDownPlacement="Right" DropDownHeight="600" DropDownWidth="800" Grid.Column="1" Padding="0" ClickMode="Release" IsOpen="False">
                                <telerik:RadDropDownButton.LayoutTransform>
                                    <RotateTransform Angle="-90"/>
                                </telerik:RadDropDownButton.LayoutTransform>
                                
                                <telerik:RadDropDownButton.DropDownContent>
                                    <me:UserControl1></me:UserControl1>
 
                                </telerik:RadDropDownButton.DropDownContent>
                            </telerik:RadDropDownButton>
                        </Grid>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid>
 
        <telerik:RadTabControl ItemContainerStyle="{StaticResource ClosableStyle}" TabOrientation="Horizontal" TabStripPlacement="Left"   FlowDirection="LeftToRight" Align="Right"  Grid.Row="1" DropDownDisplayMode="Visible" telerik:StyleManager.Theme="Vista" AllowDragReorder="True">
            <telerik:RadTabControl.Background>
                <LinearGradientBrush EndPoint="0.504,1.5" StartPoint="0.504,0.03">
                    <GradientStop Color="#FFB7B7B7" Offset="0"/>
                    <GradientStop Color="#FFFFFFFF" Offset="0.567"/>
                </LinearGradientBrush>
            </telerik:RadTabControl.Background>
 
            <telerik:RadTabItem Header="Tab1"/>
            <telerik:RadTabItem Header="Tab2"/>
        </telerik:RadTabControl>
 
 
 
    </Grid>
</Window>


Here is UserControl:
<UserControl x:Class="UserControl1"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid VerticalAlignment="Stretch" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <telerik:RadOutlookBar HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0">
                <telerik:RadOutlookBarItem Header="Online Games">
                    <TextBlock>BattleField IV</TextBlock>
                </telerik:RadOutlookBarItem>
                <telerik:RadOutlookBarItem Header="Social Network">
                    <TextBlock>FaceBook</TextBlock>
                </telerik:RadOutlookBarItem>
            </telerik:RadOutlookBar>
             
            <TextBox  Grid.Column="1">Text1</TextBox>
        </Grid>
    </Grid>
</UserControl>

Pov Ser
Top achievements
Rank 1
 answered on 03 Jun 2014
1 answer
215 views
As I can see during debug, Telerik.Windows.DragDrop.DragEventArgs has a private field eventArgs which has a field KeyStates. But since Telerik DragEventsArgs hide eventArgs I cannot access KeyStates property.
How am I supposed to figure out if any modifier keys were pressed at the moment of any DragDropManager's events?
Polya
Telerik team
 answered on 03 Jun 2014
1 answer
253 views
I'm using the StyleSelectors_WPF example.  I'm able to conditionally set both the shape and the connector.  However, I'd also like SettingsPaneView to be set based on the ShapeType I've selected.  Do you have an example of how to do this?

I'm currently using this style for everything.  However, it should only apply to my GroupNode where I have ID and Description.  Now, when I have a PersonNode, I need it to display ID, FirstName and LastName fields.  Thanks in advance for your help:

<Style TargetType="extensions:SettingsPaneView">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="extensions:SettingsPaneView">
                    <Border Background="{TemplateBinding Background}"
                            BorderThickness="1"
                            BorderBrush="{StaticResource SettingsPaneBorderBrush}">
 
                        <GroupBox
                            Header="Group Properties">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="26"/>
                                    <RowDefinition Height="26"/>
                                </Grid.RowDefinitions>
 
                                <Grid
                                    Grid.Row="0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="125"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
 
                                    <Label
                                        Grid.Column="0"
                                        Content="ID:"
                                        HorizontalAlignment="Right"
                                        FontSize="12"
                                        Foreground="Black"/>
 
                                    <TextBox
                                        Grid.Column="1"
                                        Margin="10,0,10,0"
                                        extensions:SettingsPaneView.EditorPropertyName="DataContext.ID"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Custom"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Text, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                </Grid>
 
                                <Grid
                                    Grid.Row="1">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="125"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
 
                                    <Label
                                        Grid.Column="0"
                                        Content="Name:"
                                        HorizontalAlignment="Right"
                                        FontSize="12"
                                        Foreground="Black"/>
 
                                    <TextBox
                                        Grid.Column="1"
                                        Margin="10,0,10,0"
                                        extensions:SettingsPaneView.EditorPropertyName="DataContext.Description"
                                        extensions:SettingsPaneView.EditorItemType="Shapes, Custom"
                                        extensions:SettingsPaneView.EditorValue="{Binding Path=Text, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
                                </Grid>
                            </Grid>
                        </GroupBox>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

Milena
Telerik team
 answered on 03 Jun 2014
1 answer
228 views
Hi

I am unable to bind to the Geo_Bounds property of the rad map control.

If that's not possible, would it be possible to calculate the NW and SE Bounds of the map based on the Center and Zoom level (binding works on these 2 properties !!) of the rad map control ?


Thanks,
Sai Dhalli
Andrey
Telerik team
 answered on 03 Jun 2014
4 answers
350 views
Hi Team,

Thank you for your continuous support.I have the urgent issue with the Rad Pivot Grid,Please help me out.

Here is the Scenario,I have the Rad Pivot Grid Cell Template Where a Text block is placed i need to set the foreground based on the condition,have used multi binding for it, i need to pass few parameters which are in the collection which is bound to the item source of data provider,how can i access those objects in order to bind it to the foreground, i have browsed for it , where we only bind the data as Text="{Binding Data}",but could not bind any property which is in the collection.How can i do this....
  <DataTemplate x:Key="CellTemplate">
            <TextBlock Margin="6" VerticalAlignment="Center" HorizontalAlignment="Right"  Text="{Binding Data,Mode=OneWay,Converter={StaticResource PpcConverter}}"  FontSize="{Binding Path=FontSize,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type pivot:RadPivotGrid}}}">
                <TextBlock.Foreground>
                    <MultiBinding Converter="{StaticResource MultiConverter}" >
                        <Binding Path="Data" Mode="OneWay"/>
                        <Binding Path="Product1"/>
                        <Binding Path="Product2" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type pivot:RadPivotGrid}}"></Binding>
                                             
                    </MultiBinding>
                </TextBlock.Foreground>
            </TextBlock>
        </DataTemplate>

Many Thanks,
Ruth
Kalin
Telerik team
 answered on 03 Jun 2014
1 answer
74 views
Hi!

I'm trying to figure out if ChartView can be used to achieve charts similar to shown in following screenshots:

http://bittinikkari.com/charts/chart1.png
http://bittinikkari.com/charts/chart2.png
http://bittinikkari.com/charts/chart3.png

Should I use ScatterPointSeries or is there a more suitable type?

Also I would be more than happy if you could give me some pointers on how to proceed implementing these.

I'm using UI for WPF 2013 SP3 but I should receive latest version any time now.

Thanks in advance!

Br,

Kalle
Petar Marchev
Telerik team
 answered on 03 Jun 2014
4 answers
365 views
In my GridView I color rows differently based on the current value of a Combobox column. Each change of the combobox value triggers the PropertyChanged event of the business object.
This works just fine as long as I return one of my own styles in SelectStyle. The row gets correctly drawn using that style.
The problem is, that I want to reset the row style to default (= no style) for one particular combobox value. In this case SelectStyle returns base.SelectStyle(item, container) which is always null (= OK). But the row remains drawn using the previous style although the PropertyChanged event is correctly triggered. If I force the UI to recreate the UI controls of that row (by manually resizing the window), the row is drawn correctly.

What am I missing?

Can I force a redraw of that row to remove the previous style other than by triggering the PropertyChanged event?
I could create my own "Empty Style", but this is what I want to avoid. Any ideas?

Thanks for any help.

Markus
Markus
Top achievements
Rank 1
 answered on 03 Jun 2014
12 answers
279 views
Is there a way to control the Order of the groups shown?  It seems to be Alphabetic right now.  

I included my XAML and a screenshot for reference.  I will probably just rename "Admin" to something else which will do me for now but as my app grows I can see this being an issue.

Thanks,

<telerik:RadTileList x:Name="AppLaunchPad"
                     GroupTemplate="{StaticResource GroupTemplate}"
                     ScrollViewer.HorizontalScrollBarVisibility="Visible"
                     cal:Message.Attach="[Event SelectionChanged] = [Action OpenDoorway($eventArgs)]">
    <telerik:Tile x:Name="PendingAuthTile"
                  Background="BlueViolet"
                  TileType="Single"
                  Group="Authorizations">
        <Grid>
            <TextBlock Text="Pending"
                       Style="{StaticResource TileLabelStyle}"/>
            <TextBlock x:Name="PendingAuthCount"
                       Text="0"
                       Style="{StaticResource LiveTileLabelStyle}"/>
        </Grid>
    </telerik:Tile>
    <telerik:Tile x:Name="CreateAuthTile"
                  Group="Authorizations"
                  Background="Green"
                  TileType="Single"
                  cal:Message.Attach="[Event MouseDoubleClick] = [Action CreateAuth] ">
        <TextBlock Text="Create"
                   Style="{StaticResource TileLabelStyle}"/>
    </telerik:Tile>
    <telerik:Tile x:Name="ModifyAuthTile"
                  Group="Authorizations"
                  Background="CadetBlue"
                  TileType="Single">
        <TextBlock Text="Modify"
                   Style="{StaticResource TileLabelStyle}"/>
    </telerik:Tile>
    <telerik:Tile x:Name="DeleteAuthTile"
                  Group="Authorizations"
                  Background="Sienna"
                  TileType="Single">
        <TextBlock Text="Delete"
                   Style="{StaticResource TileLabelStyle}"/>
    </telerik:Tile>
    <telerik:Tile x:Name="AdminFrequencyTile"
                  Group="Admin"
                  Background="SeaGreen"
                  TileType="Single">
        <TextBlock Text="Frequencies"
                   Style="{StaticResource TileLabelStyle}"/>
    </telerik:Tile>
    <telerik:Tile x:Name="AdminStatusTile"
                  Group="Admin"
                  Background="Peru"
                  TileType="Single">
        <TextBlock Text="Status"
                   Style="{StaticResource TileLabelStyle}"/>
    </telerik:Tile>
</telerik:RadTileList>
Vera
Telerik team
 answered on 03 Jun 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
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?