Telerik Forums
UI for WPF Forum
4 answers
120 views
I'm trying to render the RadMap as an image at the request of a user via a command. I need the command to be disabled until the RadMap is finished rendering otherwise it is possible for the rendered image to be missing parts of the map. How do I know when the RadMap is finished rendering?   
D Warren
Top achievements
Rank 1
 answered on 05 Aug 2011
2 answers
250 views
I'm trying to render the RadChart as an image at the request of a user via a command. I need the command to be disabled until the RadChart is finished rendering otherwise it is possible for the rendered image to be missing parts of the chart. How do I know when the Rad Chart is finished rendering?
D Warren
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
110 views
Hi,

How override the default HighlightItem template. In scheduleview we have ResizeHighlightStyle, DragDropHighlightStyle, MouseOverHighlightStyle, SelectionHighlightStyle and SpecialSlotStyleSelector. With this we can override the these styles. What is the property to change the style for HighlightItem...
Pana
Telerik team
 answered on 05 Aug 2011
0 answers
132 views
Hi.

I need to create a control that behaves like the "To" field in Outlook. In short words it´s a TextBox with AutoComplete and the items that have been added by the AutoComplete are styled differently from text entered manually.

Another important thing is how backspace works, Backspace on a manually entered text will remove a char. Backspace on an item added by AutoComplete will remove the whole item.

Do you have any tips on how this can be achieved in WPF with the use of the Telerik library?

Best regards
Øystein
Øystein
Top achievements
Rank 1
 asked on 05 Aug 2011
1 answer
63 views

It seems, there was somesort of latency in content initialization of the RadExpander Control while loading the content using xaml reader, 
but the same process works as expected with the first quarter release.



Vladislav
Telerik team
 answered on 05 Aug 2011
3 answers
601 views
Hello,

When I hover over a RadComboBox and scroll the mouse wheel the selecteditem changes.  I get this behavior with a ComboBox only when the control has focus.  I want the RadComboBox to work the same.  Is there anyway for me to disable that on the RadComboBox?

Thanks,

Jason
Jason
Top achievements
Rank 1
 answered on 05 Aug 2011
0 answers
114 views
Hi there ,

I need to define maximum input length (like property MaxLength in TextBox) on editing mode in gridview.

<telerik:RadGridView x:Name="ctlStockGridView" AutoGenerateColumns="False" Background="AliceBlue" 
                telerik:StyleManager.Theme="Office_Blue" ShowInsertRow="False" SelectionMode="Extended" 
        RowEditEnded
="ctlStockGridView_RowEditEnded" ValidatesOnDataErrors="None" ShowGroupPanel="False" 
                IsFilteringAllowed="False" RowValidating="ctlStockGridView_RowValidating" 
                PreparingCellForEdit="ctlStockGridView_PreparingCellForEdit">
      <telerik:RadGridView.Columns>
       <telerik:GridViewDataColumn DataMemberBinding="{Binding Amount}" TextAlignment="Right"
     UniqueName="Amount" Header="Posting Amount" Width="auto" HeaderTextAlignment="Center" />
     </telerik:RadGridView.Columns>
</telerik:RadGridView>

please give me some advice.

ps. I'm using version 2010.2.0924.35

Thank you,
SweNz
SweNz
Top achievements
Rank 1
 asked on 05 Aug 2011
1 answer
422 views
I have a drop down button that contains a context menu as the drop down content. I'm binding my ItemsSource of the ContextMenu to a collection of Items on my view model. Because it's inside a DropDownButton, I'm handling the ItemClick event to close the drop down. But I'd like to also use a command on my view model and pass the bound object as the parameter.
Right now, I'm using a DataTemplate, but then I get a menuItem inside a menuItem.
Here is my button and context menu code.
<telerik:RadDropDownButton Content="Assign" DockPanel.Dock="Right" Margin="3" Name="RolesMenu">
   <telerik:RadDropDownButton.DropDownContent>
      <telerik:RadContextMenu ItemsSource="{Binding RolesList}" ItemClick="RolesMenu_ItemClick">
         <telerik:RadContextMenu.ItemTemplate>
            <DataTemplate>
                <telerik:RadMenuItem Header="{Binding RoleName}" Command="{Binding AssignRole}" CommandParameter="{Binding DataContext, RelativeSource={RelativeSource Mode=Self}}" />
            </DataTemplate>
         </telerik:RadContextMenu.ItemTemplate>
      </telerik:RadContextMenu>
   </telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>

How can I do the same thing as above without getting a menuItem inside a MenuItem?
Konstantina
Telerik team
 answered on 05 Aug 2011
1 answer
101 views
Please try the next code and fill the difference when the Chart used as DataTemplate and as control.

WPF 4.0 (4.0.30319)
Telerik.Windows.Controls.Charting.dll 2011.2.725.40


Codebehind:
public partial class XAxisTest : Window
    {
        public XAxisTest()
        {
            InitializeComponent();
            InitializeComponent();
            Context = new Context();
            DataContext = this;
        }
        public Context Context { get; set; }
    }
    public class Context
    {
        public Context()
        {
            Charts = new ObservableCollection<ChartDataHolder> { new ChartDataHolder(1), new ChartDataHolder(100) };
        }
        public ChartDataHolder FirstData
        {
            get
            {
                return Charts[0];
            }
        }
        public ObservableCollection<ChartDataHolder> Charts { get; private set; }
    }
    public class ChartDataHolder
    {
        public ChartDataHolder(double delta)
        {
            ChartData = new ObservableCollection<ChartDataItem>();
            for (int i = 0; i < 20; i++)
            {
                ChartData.Add(new ChartDataItem() { ValueX = DateTime.Now.Second + i, ValueY = DateTime.Now.Second * delta + i });
            }
        }
        public ObservableCollection<ChartDataItem> ChartData { get; private set; }
    }
    public class ChartDataItem
    {
        public int ValueX { get; set; }
        public double ValueY { get; set; }
    }

View

<Window>
<Window.Resources>
        <DataTemplate x:Key="measTemplate" x:Shared="false">
            <GroupBox DockPanel.Dock="Bottom" Height="200" Header="I have a legend, but why?">
                <telerik:RadChart ItemsSource="{Binding ChartData, Mode=OneWay}"  >
                    <telerik:RadChart.DefaultView>
                        <telerik:ChartDefaultView>
                            <telerik:ChartDefaultView.ChartLegend>
                                <telerik:ChartLegend Visibility="Collapsed" UseAutoGeneratedItems="True" Header=" " x:Name="chartLegend">
                                </telerik:ChartLegend>
                            </telerik:ChartDefaultView.ChartLegend>
                            <telerik:ChartDefaultView.ChartArea>
                                <telerik:ChartArea LegendName="chartLegend" EnableAnimations="True">
                                    <telerik:ChartArea.AxisX>
                                        <telerik:AxisX />
                                    </telerik:ChartArea.AxisX>
                                    <telerik:ChartArea.AxisY>
                                        <telerik:AxisY DefaultLabelFormat="F2"/>
                                    </telerik:ChartArea.AxisY>
                                </telerik:ChartArea>
                            </telerik:ChartDefaultView.ChartArea>
                        </telerik:ChartDefaultView>
                    </telerik:RadChart.DefaultView>
                    <telerik:RadChart.SeriesMappings>
                        <telerik:SeriesMapping LegendLabel="C">
                            <telerik:SeriesMapping.SeriesDefinition>
                                <telerik:LineSeriesDefinition ShowItemLabels="False"/>
                            </telerik:SeriesMapping.SeriesDefinition>
                            <telerik:ItemMapping FieldName="ValueY" DataPointMember="YValue"/>
                            <telerik:ItemMapping FieldName="ValueX" DataPointMember="XValue"/>
                        </telerik:SeriesMapping>
                    </telerik:RadChart.SeriesMappings>
                </telerik:RadChart>
            </GroupBox>
        </DataTemplate>
            </Window.Resources>
        <DockPanel>


        <GroupBox DockPanel.Dock="Top" Height="200" Header="I have no a legend">
            <telerik:RadChart ItemsSource="{Binding Context.FirstData.ChartData, Mode=OneWay}" Margin="6" >
            <telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>
                    <telerik:ChartDefaultView.ChartLegend>
                        <telerik:ChartLegend Visibility="Collapsed" UseAutoGeneratedItems="True" Header=" " x:Name="chartLegend1">
                        </telerik:ChartLegend>
                    </telerik:ChartDefaultView.ChartLegend>
                    <telerik:ChartDefaultView.ChartArea>
                        <telerik:ChartArea LegendName="chartLegend1" EnableAnimations="True">
                            <telerik:ChartArea.AxisX>
                                <telerik:AxisX />
                            </telerik:ChartArea.AxisX>
                            <telerik:ChartArea.AxisY>
                                <telerik:AxisY DefaultLabelFormat="F2"/>
                            </telerik:ChartArea.AxisY>
                        </telerik:ChartArea>
                    </telerik:ChartDefaultView.ChartArea>
                </telerik:ChartDefaultView>
            </telerik:RadChart.DefaultView>
            <telerik:RadChart.SeriesMappings>
                <telerik:SeriesMapping LegendLabel="C">
                    <telerik:SeriesMapping.SeriesDefinition>
                        <telerik:LineSeriesDefinition ShowItemLabels="False"/>
                    </telerik:SeriesMapping.SeriesDefinition>
                    <telerik:ItemMapping FieldName="ValueY" DataPointMember="YValue"/>
                    <telerik:ItemMapping FieldName="ValueX" DataPointMember="XValue"/>
                </telerik:SeriesMapping>
            </telerik:RadChart.SeriesMappings>
        </telerik:RadChart>
        </GroupBox>
        <ItemsControl  ItemsSource="{Binding Context.Charts}" ItemTemplate="{StaticResource measTemplate}">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <UniformGrid Columns="1" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </ItemsControl>
    </DockPanel>
</Window>
Yavor
Telerik team
 answered on 05 Aug 2011
1 answer
145 views
Why is the HTML output empty when I include a mergefield in the content of my document?

thanks,

Pablo.
Ivailo Karamanolev
Telerik team
 answered on 05 Aug 2011
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?