Telerik Forums
UI for WPF Forum
1 answer
131 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
117 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
68 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
176 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
881 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
281 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
113 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
1 answer
149 views
I've read the documentation on sampling but it's still not clear to me exactly what RadChart is doing. For example I have a Scatter chart with approximately 3000 data points. The data points are spread, fairly evenly, across approximately 6 hours of time along the X axis. In other words, data is not disproportionately bunched anywhere along the X axis. It's pretty evenly spread out. The Y axis values range from approximately 60 to 66, with no particular pattern. Can you tell me exactly how RadChart would sample this data, assuming I select a sampling value of say 300 (1/10 of the data). I have not specified the method of sampling (average, min, max etc.), because I don't really know which would be best in my case.

Thank you.
Yavor
Telerik team
 answered on 20 Jan 2012
1 answer
148 views
Hi telerik,

I wish to abuse the chart.
Since ChartLegend is a separate object referenced by the RadChart, I thought I could re-use the legend object to obtain a single legend for several RadCharts. This way I wanted to achieve the interactivity effects of hovering over graphs / legends and seeing the highlight in the other.

My starting point was four charts, where the first three were real plots (with hidden legend) where as the last was a RadChart with hidden ChartArea. That worked well, but with no interactivity.

If I create the ChartLegend object first and reference it from the remaining three RadCharts, I do get the legend headers in the ChartLegend, but still no interactivity.

Is this even possible? Or should I just 'accept' the separation and 'manually' handle the highlighting? Can you send me in a direction where I might get lucky?

Thanks,

Anders, Denmark
Petar Marchev
Telerik team
 answered on 20 Jan 2012
3 answers
180 views
Hi,

Just wondering, can I modify background color of a disable GridViewCell instead of grey can I change it to other color. I tried using data trigger and directly set background color to white however it's not working. Is there a way to achieve this?

Type Description
Air  Air
Fire  Fire
Land  
Water  Water
Land  

Regards,
Howell
Maya
Telerik team
 answered on 20 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?