Telerik Forums
UI for WPF Forum
1 answer
125 views
Hello,

I am using RadGridView for WPF. After changing cell's value in the grid and selecting another control (for example dropdown list or button on the same window) row is still in editable mode and changes in the cell is not applyed to corresponding model (I am using default binding). How could I force Grid to switch from Edit mode back to view mode on losing focus or when some command is executed (for example, command that is binded to the button).

Thanks,
Alexey Smirnov
Nedyalko Nikolov
Telerik team
 answered on 21 Jan 2012
0 answers
155 views
I need to bind string format dynamically in the grid column.
Vishwajeet
Top achievements
Rank 1
 asked on 21 Jan 2012
1 answer
151 views
Hello,

the MiniToolbar and the ContextMenu are not visible.
If I select a text or cklick left in the RTB nothing happens.

This is my (simple) code:

<telerikRtf:RtfDataProvider
            Rtf="{Binding ElementName=simpleRichTextBox, Path=Text, Mode=TwoWay}"
            RichTextBox="{Binding ElementName=radRichTextBox}" />
        
        <telerik:RadRichTextBox Margin="2"
                                x:Name="radRichTextBox"
                                IsSelectionMiniToolBarEnabled="True"
                                IsContextMenuEnabled="True"
                                MinHeight="100"
                                IsReadOnly="{Binding ReadOnly}"
                                DocumentInheritsDefaultStyleSettings="True"
                                FontSize="8"
                                >
        </telerik:RadRichTextBox>


Thanks for you help,
Manuel
Iva Toteva
Telerik team
 answered on 20 Jan 2012
2 answers
345 views
Hi,

I am using RadRibbonView(with title) within a RadRibbonWindow. The title shows up in the center on the top of the window. I want to display it right next to the Window Icon. I tried modifying the template for RadRibbonView but I couldn't figure this out.

Any suggestions about how I can achieve this?

Thanks,
Nav
Hyddude
Top achievements
Rank 1
 answered on 20 Jan 2012
4 answers
702 views
What is the use of Command when using RadComboBox, when it does not seem to fire when the selection inside the RadComboBox changes?

When I hook the command, it seems to fire once, when the command is initialized, then it never fires. 

Gautam
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
1.1K+ views
Hi,

I would like to allow either comma and dot as decimal separator in GridViewDataColumn.

<telerik:GridViewDataColumn Header="Qté" DataMemberBinding="{Binding Quantity, Mode=TwoWay}"/>

Where Quantity is :

private double _quantity;
        public double Quantity
        {
            get { return OrderUnit == PackagingUnit.Kilogram ? Math.Round(_quantity, 3) : Math.Round(_quantity, 0); }
            set
            {
                if (_quantity == value) return;
                _quantity = value;
                RaisePropertyChanged(ReflectionUtility.GetPropertyName(() => Quantity));
 
                Refresh();
            }
        }

The ViewModel set those parameters in constructor :

var culture = new CultureInfo("fr-FR", false);
 
            culture.NumberFormat.CurrencyDecimalSeparator = ".";
            culture.NumberFormat.NumberDecimalSeparator = ".";
            culture.NumberFormat.PercentDecimalSeparator = ".";
 
            culture.Parent.NumberFormat.CurrencyDecimalSeparator = ".";
            culture.Parent.NumberFormat.NumberDecimalSeparator = ".";
            culture.Parent.NumberFormat.PercentDecimalSeparator = ".";
 
            LocalizationManager.DefaultCulture = culture;
 
            Dispatcher.CurrentDispatcher.Thread.CurrentCulture = culture;
            Dispatcher.CurrentDispatcher.Thread.CurrentUICulture = culture;
 
            Thread.CurrentThread.CurrentCulture = culture;
            Thread.CurrentThread.CurrentUICulture = culture;

Result :

When the cell isn't in EditMode, if quantity is 4,268, the cell displays 4.27 : it's why I want.

But when the cell is in EditMode: if user write 4.58 for example, the value isn't recognize as a valid double and is converted back. When writting 4,58, the value is successfully recognized.

Thanks
Dimitrina
Telerik team
 answered on 20 Jan 2012
1 answer
155 views
When the RichTextBox is empty upon start, the caret does not show when I click on the control.  However, when I type into the richtextbox, the text shows and the caret appears as well.  I tried setting the caretposition of the document in the constructor, but that doesn't work.  How do I make the caret show upon start?  

Below is the xaml of the usercontrol.

<UserControl x:Class="CommonControl.HtmlEditor"
    xmlns:telerikHtml="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
    xmlns:telerikHtmlMain="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents"
    mc:Ignorable="d">
 
    <telerik:RadRichTextBox HorizontalAlignment="Stretch" LayoutMode="Flow" x:Name="editor" AllowDrop="True" Drop="editor_Drop" ShowComments="False"
                            BorderBrush="Transparent" BorderThickness="0" MinWidth="536" IsSelectionMiniToolBarEnabled="False"
                            IsContextMenuEnabled="True" IsInHeaderFooterEditMode="False" DocumentPresentationChanged="EditorDocumentContentChanged"
                            MaxWidth="1024">
    </telerik:RadRichTextBox>
</UserControl>
Martin Ivanov
Telerik team
 answered on 20 Jan 2012
3 answers
128 views
Hi,

I was wondering if it is possible to setup the WPF data form to do a soft delete without removing the item "deleted" from the collection.  Thanks in advance for any advice/help.

Sincerely,

Jon
Pavel Pavlov
Telerik team
 answered on 20 Jan 2012
1 answer
81 views
Hallo.

Why is RadDataPager disabled if an entity form the connected RadDataServiceDataSource is modfied?
And how can change this behaviour?

Hoping for a useful reply
Florian
Dimitrina
Telerik team
 answered on 20 Jan 2012
4 answers
183 views
Hi

   If I click the close button in my TabItem it closes the first time the tab is opened, from then on to close any open tabs I must click the close button twice, has anyone seen this and is there a workaround?

Thank you,
Patrick

<telerik:RadTabControl ItemsSource="{Binding Path=ActiveControllers}">
    <telerik:RadTabControl.ItemTemplate>
        <DataTemplate>     
            <telerik:RadButton ToolTip="Close" Click="OnClose">
                <Image Width="12" Height="12" Source="/O;component/I/Delete.png"/>     
            </telerik:RadButton>
        </DataTemplate>
    </telerik:RadTabControl.ItemTemplate>   
</telerik:RadTabControl>
Petar Mladenov
Telerik team
 answered on 20 Jan 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?