Telerik Forums
UI for WPF Forum
0 answers
97 views
Hi every body
 

I'm trying to use RadPropertyGrid in my wpf application. and I can use it but I can't make a property have a brows button like visual studio property pane. Hove can I make it?
Ahad
Top achievements
Rank 1
 asked on 06 Aug 2012
0 answers
453 views
I'm working on a radgridview and I want the user to be able to have an option to show or hide the columns of the grid withing the application. Is there any property that I can set to true that would do this? If not,  Would the best way to implement this be a context menu? I have no room for a checkbox in the application or anything like that. Any code or suggestions would help. Here is the code I currently have to build the grid in the xaml. I am working in C# WPF.
<telerik:RadGridView Name="ExceptionsListBox" 
                                     IsReadOnly="True"
                                     ReorderColumnsMode="Interactive"
                                     UseLayoutRounding="False"
                                     EnableRowVirtualization="True"
                                     AutoGenerateColumns="False" 
                                     RowIndicatorVisibility="Collapsed"
                                     Background="#FF202020"
                                     RowHeight="20"
                                     GroupPanelBackground="#FF202020"
                                     GroupPanelForeground="white" 
                                     telerik:StyleManager.Theme="Expression_Dark" Grouped="ExceptionsListBox_Grouped">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Key}"
                                                    Header="Type"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding TypeText}"
                                                    Header="Error" />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Message}"
                                                    Header="Error Message" />
                    </telerik:RadGridView.Columns>
                    <telerik:RadGridView.Resources>
                        <Style TargetType="telerik:GridViewHeaderRow">
                            <Setter Property="MinHeight" Value="15" />
                        </Style>
                        <Style TargetType="telerik:GridViewGroupPanel">
                            <Setter Property="MinHeight" Value="10" />
                            <Setter Property="Height" Value="10" />
                        </Style>
                          
                    </telerik:RadGridView.Resources>
                </telerik:RadGridView>
 
Tyler
Top achievements
Rank 1
 asked on 06 Aug 2012
1 answer
337 views

Hi Team Telerik,

My Code to list spell Check Suggestions in the Context Menu upon right clicking on the wrongly added text in the RichTextBox is n't working any more.
Actually what I did is :-

1. Enabled Richtextbox spell check property.
2) Enabled Richtextbox ContextMenu Enabled Property
3) Read * .tdf file as stream and load dictionary directly from the tdf stream

                               Private Sub LoadDictionary(ByVal tdfFileStream As Stream)

                                              Dim dictionary As New RadDictionary()

                                              dictionary.Load(tdfFileStream)

CType(Me.radRichTextBox.SpellChecker, DocumentSpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture)

                               End Sub

RadRichtextBox property IsContextMenuEnabled is set to True ,but it is not working.

Is there any property to show
spell Check Suggestions apart from customizing the Context menu ?
Will it show the spell Check Suggestions in the Context Menu by adding the Reference to
Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll assembly by default ?

Does anyone have any suggestions why this may be?

Thank you for your time,

Lakshmi

Iva Toteva
Telerik team
 answered on 06 Aug 2012
11 answers
325 views
I am using WPF MVVM and having some trouble dragging an image from my application to the desktop. Any time I drag outside of the application the DragStatus becomes DragStatus.Cancel.

What am I doing wrong? I can post the relative code if this is not a simple thing.
Nick
Telerik team
 answered on 06 Aug 2012
0 answers
101 views
Hi,

Can I disable sorting on Group Header?
I want this sorting feature only on Columns not on the Grouped headers. How can i achieve this?
Balaji
Top achievements
Rank 1
 asked on 06 Aug 2012
6 answers
261 views
Have a PersonInCharge of List type Person in my ViewModel which bind to a GridView.

A comboboxcolumn in the grid, with ItemsSource of a PeopleList of List type Person

the grid shows well, but when i select different items in the combobox, it always return to the original value.

also the > in the grid leftmost column is always on row 1 instead of the highlighted row

anything wrong?


<telerik:RadGridView x:Name="PersonInCharge" Margin="5,5,5,0" Height="100" ShowGroupPanel="False" AutoGenerateColumns="False"
                 ItemsSource="{Binding Path=PersonInCharge}" CanUserInsertRows="True">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewComboBoxColumn x:Name="cbPersonInCharge"  Header="Person In Charge" UniqueName="PersonInCharge" EditTriggers="CellClick"
                                                             
                                                            ItemsSource="{Binding Path=PeopleList}"     DataMemberBinding="{Binding Person}"
                                                            SelectedValueMemberPath= "PeopleList/Person.ID}"   >                                                       
                        <telerik:GridViewComboBoxColumn.EditorStyle>
 
                        </telerik:GridViewComboBoxColumn.EditorStyle>
                        <telerik:GridViewComboBoxColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock Text="{Binding Path=FirstName}" />
                                    <TextBlock Text="{Binding Path=LastName}"/>                            
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewComboBoxColumn.CellTemplate>
 
                        <telerik:GridViewComboBoxColumn.ItemTemplate  >
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock Text="{Binding Path=FirstName}" />
                                    <TextBlock Text="{Binding Path=LastName}"/>
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewComboBoxColumn.ItemTemplate>
                    </telerik:GridViewComboBoxColumn>
Neogeo
Top achievements
Rank 1
 answered on 06 Aug 2012
3 answers
220 views
Hello,

I have set up an editable column, with separate templates for view and edit defined.

<telerik:GridViewDataColumn Name="TargetPercentOfAccountMarketValue" Header="% Of Total"  
 Width="75" HeaderCellStyle="{StaticResource columnHeaderStyle}"                                            
CellStyle="{StaticResource whatIfCell}"
                                            
DisplayIndex="8" EditTriggers="CellClick,TextInput"
                                            
IsReadOnlyBinding="{Binding NodeType, Converter={StaticResource nodeTypeToIsReadOnlyConverter}}"
                                            
ColumnGroupName="WhatIfAllocation">
                    
<
telerik:GridViewDataColumn.CellTemplate>                        
<
DataTemplate>                            
<
TextBlock Text="{Binding Node.TargetPercentOfAccountMarketValue, StringFormat={}{0:P1}}"                                       
Foreground="{Binding Node.TargetPercentOfAccountMarketValue, Converter={StaticResource negativeColorFormatter}, UpdateSourceTrigger=PropertyChanged}">
                            
</
TextBlock>                       
</
DataTemplate>                    
</
telerik:GridViewDataColumn.CellTemplate>                    
<
telerik:GridViewDataColumn.CellEditTemplate>                        
<
DataTemplate>                            
<
TextBox BorderBrush="Transparent" BorderThickness="1"
Text="{Binding Node.TargetPercentOfAccountMarketValue, Converter={StaticResource StringToPercentageConverter}, StringFormat={}{0:N2}}"  Background="Transparent"                                     
Foreground="{Binding Node.TargetPercentOfAccountMarketValue, Converter={StaticResource negativeColorFormatter}}"/><
br>                       
</
DataTemplate>                  
</
telerik:GridViewDataColumn.CellEditTemplate>                
</
telerik:GridViewDataColumn>

The reason for the two separate templates is that I need the values formatted differently for viewing and editing.
I can enter into edit mode, i.e. I see the blinking cursor, but I cannot enter any values; backspace works strangely enough, so I can delete any existing value but when I try and enter it fails.

I'd like to know what is wrong with a column setup in this manner.

Thank You

Hasanain

Vlad
Telerik team
 answered on 06 Aug 2012
2 answers
151 views
Hi,
I am using 2011 Q3 SP1 ver GridView.
In this Grid i have a column called Status. and it is binded with type of Enum values.
And the sorting should be based on this Status column. (The order what we have in Enum Declaration)
So as binded enum type to datacolumn it is working fine even when I group by Status (Sorting wise)
One more thing is I am using CellTemplate to display the image at row level.
My Problem is
When I group By Status column, as I used Enum Value as DataMemberBinding,  Enum Type name is  coming as Group Header name.
So I have to show this Group Header names should be human readable.

If I am trying to update the groupheadertemplate with humanreadable text, then again i am facing the issue with sorting when grouping done.

Please help me in this regard.
Balaji
Top achievements
Rank 1
 answered on 06 Aug 2012
1 answer
115 views
hi,

is it possbile to add a busyindicator for each group in gridview rows? And how?

thanksbest
regards
rene
Vlad
Telerik team
 answered on 06 Aug 2012
1 answer
106 views
Hi,

I'm using Telerik Control now for quite some time and telerik ist doing a great job on enhancing them. I like Telerik Controls a lot! But I live in Germany so I need to have all those nice features with german texts.

To simplify this task I build a very little app. And this App I want to share here, because I see a lot of questions in this direction...

I would like to attach the Code but it is not allowed to attach .zip files here in the forum...
so:

Create a WPF Solution, reference the Your telerik WPF DLLS and add the following Code and you will get all you need in the Textbox to implement in your real CustomLocalizationManager to get the Texts in your language.

MainWindow.xaml

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="1*" />
        </Grid.ColumnDefinitions>
 
        <TextBox Grid.Column="1" Text="{Binding Code}" Margin="10" VerticalScrollBarVisibility="Auto"/>
        
        <StackPanel Margin="10">
            <!-- TODO Put here all Telerik Controls to Localize-->
            <telerik:RadTreeView />
            <telerik:RadGridView />
        </StackPanel>
    </Grid>

ManiWindow.xaml.cs
    public partial class MainWindow : Window {
        private readonly MainWindowViewModel _mainWindowViewModel;
 
        public MainWindow() {
            _mainWindowViewModel = new MainWindowViewModel();
            LocalizationManager.Manager = new CustomLocalizationManager(_mainWindowViewModel);
            InitializeComponent();
            DataContext = _mainWindowViewModel;
        }
    }

MainWindowViewModel.cs
    public class MainWindowViewModel {
        public string Code { getset; }
    }

CustomLocalizationManager.cs

    public class CustomLocalizationManager : LocalizationManager {
        private readonly MainWindowViewModel _mainWindowViewModel;
 
        public CustomLocalizationManager(MainWindowViewModel mainWindowViewModel) {
            _mainWindowViewModel = mainWindowViewModel;
        }
 
        public override string GetStringOverride(string key) {
            var defaultText = base.GetStringOverride(key);
            _mainWindowViewModel.Code += GenerateCode(key, defaultText);
            return defaultText;
        }
 
        private static string GenerateCode(string key, string ret) {
            //TODO Change this line to get the Code you need
            return string.Format("   case \"{0}\": return \"{1}\";{2}", key, ret, Environment.NewLine);
        }
    }


Have fun :-)
Markus
Vlad
Telerik team
 answered on 06 Aug 2012
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?