Telerik Forums
UI for WPF Forum
1 answer
150 views

I have a fairly complex WPF app running on a surface tablet.

Occasionally touch just stops working.

Mouse and keyboard work fine if they are attached or if I connect with a remote program.

I have posted this in the buttons area but really it could be anywhere.

It does matter where in the software it is . it can occur anywhere

Has any one seen this ?

Any help from telerik or community would be appreciated.

 

Yoan
Telerik team
 answered on 28 Aug 2017
1 answer
113 views

Hi,

I have a GridViewDataColumn binded to an object field. All records are of the same type (homogeneous).

In this case data are shown in the GridViewDataColumn but the column cannot be filtered nor sorted.

For example if you have a string data and you set DataType Property and FilterMemberType Property with value typeof(string), you can filter and sort the column. Moreover, if you use the function Search As You Type (CTRL+F) it does not work for this column.

 

Any suggestions?

Thank you

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Aug 2017
1 answer
116 views

Hi all

 

I am new for telerik control. In my company need to do POC for world-continent.In the wpf demo in telerik control view model passed constant string

i.e protected const string ShapeRelativeUriFormat = "/Map;component/Resources/{0}.{1}";

But i did'nt get the details of component/resources.

Please send me the details of there files.


Martin Ivanov
Telerik team
 answered on 25 Aug 2017
2 answers
97 views

Hi,

I want to disable the TabStop mecanism in the RadPanelBar so that the user can't focus on the RadPanelBar or RadPanelBarItems using the "tab" key. I've managed to disable most TabStop mecanism in the RadPanelBar except for one that I really don't understand.

The following project demonstrates my problem. I would like for the tab key to navigate between the 3 textbox without the focus going to the RadPanelBarItem.

https://drive.google.com/open?id=0B9yNrE596_TZcGg5MzZvdUdTSG8

Thank you for your time!

Louis

Louis
Top achievements
Rank 1
 answered on 25 Aug 2017
5 answers
538 views

I currently implemented Excel Export behind code, I'm trying to have it be implemented in the ViewModel Instead. How abouts would I do that?

 

 

 

        private void MenuItem_OnClick(object sender, RoutedEventArgs e)
        {
            try
            {
                string content;

                var extension = "xml";
                content = DrillThroughGridView.ToExcelML(true);

                string path = String.Format("Export.{0}", extension);

                if (File.Exists(path))
                {
                    File.Delete(path);
                }

                using (FileStream fs = File.Create(path))
                {
                    Byte[] info = Encoding.Default.GetBytes(content);
                    fs.Write(info, 0, info.Length);
                }

                Process.Start(path);
            }
            catch (Exception)
            {
                Notification.Error("Process Busy", "Please exit excel instance.");
            }
        }​

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Aug 2017
2 answers
105 views

Hello I need to Maximize RadTileViewItem Programatically  Using the MVVM concept 

But when I run it doesn't happens 

 

 

My XAML is this :

 <telerik:RadTileViewItem x:Name="rdTileViewMain" Header="Main" RestoredHeight="100" MinimizedHeight="200" RestoredWidth="80" Style="{StaticResource RadTileViewItemStyle}" BorderBrush="{x:Null}" SnapsToDevicePixels="True" Foreground="#FFFDFBFB" TileState="{Binding TileStaterdTileViewMain}">
                                <Grid x:Name="grdMain">
                                    <Grid x:Name="grdProcessInfo" Visibility="{Binding GrdProcessInfoVisibility}">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="576.8"/>
                                            <RowDefinition />
                                        </Grid.RowDefinitions>

                                        <Border x:Name="pnlShopOrder" CornerRadius="5" Margin="5,10,5,462.8" BorderBrush="{StaticResource AccentBrush}" BorderThickness="1" Grid.Column="0" Grid.Row="0">
                                            <TextBlock x:Name="txtShopOrder" Grid.Column="1" Grid.Row="0" Style="{StaticResource ProcessInfoMainStyle}" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding ProcessShopOrder}" TextWrapping="Wrap"></TextBlock>
                                        </Border>
                                        <Border x:Name="pnlInfoMeter" CornerRadius="5" Margin="0,119,0,354.8" BorderBrush="{StaticResource AccentBrush}" BorderThickness="1" Grid.Column="0">
                                            <TextBlock x:Name="txtInfoMeter" Grid.Column="1" Grid.Row="0" Style="{StaticResource ProcessInfoMainStyle}" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding ProcessInfoMeter}" TextWrapping="Wrap"></TextBlock>
                                        </Border>
                                        <Border x:Name="pnlProcessStepStatus" CornerRadius="5" Margin="0,234,-0.2,228.8" BorderBrush="{StaticResource AccentBrush}" BorderThickness="1" Grid.Column="0" Grid.ColumnSpan="2">
                                            <TextBlock x:Name="txtProcessStepStatus" Grid.Column="1" Grid.Row="0" Style="{StaticResource ProcessInfoMainStyle}" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding ProcessStepStatus}" TextWrapping="Wrap"></TextBlock>
                                        </Border>

                                        <Border x:Name="pnlProcessStatus" CornerRadius="5" Margin="0,353,-0.2,109.8" BorderBrush="{StaticResource AccentBrush}" BorderThickness="1" Grid.Column="0" Grid.ColumnSpan="2">
                                            <TextBlock x:Name="txtProcessStatus" Grid.Column="1" Grid.Row="0" Style="{StaticResource ProcessInfoMainStyle}" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding ProcessStaus}" TextWrapping="Wrap"></TextBlock>
                                        </Border>
                                        <Border x:Name="pnlProcessImg" CornerRadius="5" Margin="5,5,-0.2,2.8" Background="White" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0" Width="0">
                                            <Image x:Name="imgProcess" HorizontalAlignment="Left" VerticalAlignment="Top" Source="{Binding ProcessImageSource}" Height="200" />
                                        </Border>
                                    </Grid>
                                </Grid>
                            </telerik:RadTileViewItem>

 

Then in my mainWindowViewModel I have

private TileViewItemState _TileStaterdTileViewMain;

        public TileViewItemState TileStaterdTileViewMain
        {
            get {
                return _TileStaterdTileViewMain;
            }
            set {
                _TileStaterdTileViewMain = value;
                PropertyChanged(this, new PropertyChangedEventArgs("TileStaterdTileViewMain"));
            }

 private void RaiseUpUcShopOrdersButtonControl(object parameter)
        {
            TileStaterdTileViewMain = Telerik.Windows.Controls.TileViewItemState.Maximized;
   
        }

 

Can someone help me to know If I missing something?

Thanks 
        

 

Rodolfo
Top achievements
Rank 1
 answered on 25 Aug 2017
2 answers
135 views

Hello I will appreciate your help with the Next I need to Maximized RadTileViewItem Programatically, But it is not running 

 

My XAML

<telerik:RadTileViewItem x:Name="rdTileViewMain" Header="Main" RestoredHeight="100" MinimizedHeight="200" RestoredWidth="80" Style="{StaticResource RadTileViewItemStyle}" BorderBrush="{x:Null}" SnapsToDevicePixels="True" Foreground="#FFFDFBFB" TileState="{Binding TileStaterdTileViewMain}">

 

Then in my MainWindowViewModel:

     private TileViewItemState _TileStaterdTileViewMain;

     public TileViewItemState TileStaterdTileViewMain
        {
            get {
                return _TileStaterdTileViewMain;
            }
            set {
                _TileStaterdTileViewMain = value;
                PropertyChanged(this, new PropertyChangedEventArgs("TileStaterdTileViewMain"));
            }

        }

 

   private void RaiseUpUcShopOrdersButtonControl(object parameter)
        {
            TileStaterdTileViewMain = Telerik.Windows.Controls.TileViewItemState.Maximized;

}

 

Rodolfo
Top achievements
Rank 1
 answered on 25 Aug 2017
3 answers
205 views

Just now installed Telerik for WPF

Opening Visual Studio, creating project Telerik C# WPF Application, selecting "Blank" and "Finish".

Opening MainWindow.xaml, dragging RadRichTextBox from toolbox and dropping into Grid.

But here is Object reference not set in output log. When running - it crashes. Point.

 

RadButton works correctly.

Result code is here: https://pastebin.com/yVSNDbMH

Visual Studio is 2017

OS is Windows Server 2012

Locale is ru-RU

Telerik Installer is TelerikUIForWpfSetup_2017_3_0814_1.exe

C:\Program Files (x86)\Telerik\UI for WPF R2 2017\Binaries\WPF40\Telerik.Windows.Controls.RichTextBoxUI.dll file version is 2017.2.614.40

 

If you have different version and haven't problem, please give me installer or just this DLL, I'll try fix or search a bug with .NET Reflector

Peshito
Telerik team
 answered on 25 Aug 2017
11 answers
172 views
Your color Themes (VisualStudio 2013,Office2013,Windows 8 touch,Windows 8,Expression Dark, ... e.t.c) give not very rich color expression. For example, RadTreeListView is looked as in RadTreeListView.PNG file attached. What about your Green Theme - it is somewhat dark. Do you have any means for a variety of coloring?
Martin
Telerik team
 answered on 25 Aug 2017
1 answer
301 views

I have a RadAutoCompleteBox in RadGridView CellEditTemplate

public class AutoCompleteCell : RadAutoCompleteBox
{
    public AutoCompleteCell()
    {
        SelectionMode = AutoCompleteSelectionMode.Single;
        Unloaded += unloaded;
        Loaded += loaded;
    }
 
    private void loaded(object sender, RoutedEventArgs e)
    {
        //all has value
        string searchText = SearchText;
        object selectedItem = SelectedItem;
    }
 
    private void unloaded(object sender, RoutedEventArgs e)
    {
        string searchText = SearchText; //has value
        object selectedItem = SelectedItem; //no value
    }
}

 

SearchText is in dropdown ItemsSource, when I click the cell and enter edit mode, Loaded event fired and both SearchText and SelectedItem has value, but when I just press Esc to exit edit mode and in Unloaded event, SearchText still has value but SelectedItem is null.

Why this happened and how to fix it? Thanks.

<controls:AutoCompleteCell SelectedItem="{Binding Value, Mode=TwoWay}"  ItemsSource="{Binding Source, Mode=OneWay}" SearchText="{Binding Header, Mode=OneWay}" />

 

"Header" is returned from "Value".

 

 

 

Martin
Telerik team
 answered on 24 Aug 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?