Telerik Forums
UI for WPF Forum
2 answers
350 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
712 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
160 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
133 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
85 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
187 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
22 answers
983 views
Can anyone suggest an elegant way to animate a cell (i.e. flash it) when the data in it changes. I'm using GridViewDataColumn and DataMemberBinding.

The only thing I've been able to come up with is to use the grid's RowLoaded to iterate through each cell in the row and pick out the DataContext and the binding's source to create a new event handler to run an animation. Unfortunately, RowLoaded isn't the best because it's called when re-sorting etc.
hermann
Top achievements
Rank 1
 answered on 20 Jan 2012
5 answers
306 views
Hallo,

I've bound an OData service via RadDataServiceDataSource to a RadGridView and a RadDataPager.

Unfortunately the sorting does not work across pages. I've traced trace the server side an found that the orderby property is not set on the query.

The connection is very simple:

<telerik:RadDataServiceDataSource x:Name="_partnerSource" AutoLoad="True" QueryName="AllPartners" />


<
telerik:RadDataPager Name="_pager" 
                           

Source="{Binding DataView, ElementName=_partnerSource}" IsEnabled="True" PageSize="10"/>


<
telerik:RadGridView Name="gridPartner"
AutoGenerateColumns="False" DataLoadMode="Synchronous" IsFilteringAllowed="True" ItemsSource="{Binding DataView, ElementName=_partnerSource}">

The DataServiceQuery<PartnerInfo> AllPartners is take from the Service Reference


What may be missing or wrong?

Greetings Florian
Florian
Top achievements
Rank 1
 answered on 20 Jan 2012
5 answers
134 views
Hi,

in the toolbar with the buttons week, month and so on, there is a dateformat. In weekview for example its 5 - 11 December 2011. I want to change the format in 05.12.2011 - 11.12.2011. Where can i do this? I tested the property GroupHeaderDateStringFormat with:
GroupHeaderDateStringFormat="{}{0:dd.MM.yyyy} - {1:dd.MM.yyyy}
but nothing happend. And the CurrentVisibleRangeText property is get only.

Thanks
Annett
Annett
Top achievements
Rank 1
 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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?