Telerik Forums
UI for WPF Forum
0 answers
152 views
Hello there,

I need to dynamically draw a RadDiagramShape nested in a RadDiagramShape. I need to allow user move the internal/inner RadDiagramShape (just like the outer/container RadDiagramShape can be moved within the RadDiagram). I created a custom WPF control and I set its ContentControl property as a Canvas. Then I'm adding all children to the canvas Children collection from code behind.
The problem is that the added RadDiagramShape controls can not be moved/manipulated within the nested Canvas.
How do I allow this nested RadDiagramShape to be moved?

Thanks,


javier
Top achievements
Rank 1
 asked on 15 Oct 2012
4 answers
149 views

Hi,

I'm using Telerik V2012.1.325.35 and I have a strange behaviour with my RadCarousel component.
 
In our application we have a RadGridView and beside de RadGridView we have a RadTabControl with 2 TabItems, in the first TabItem I have a RichTextBox and in the second RadTabItem I have a RadCarousel. When I click on one Item in my GridView, I load 2 images on disk, for both image, I create and object of type "InterDependencyImage" (definition at the end) and I added to my carousel using the following piece of code:

    var img = pPdf as InterDependencyImage;
    img.Image = new Image();
    img.Image.Source = img.Frame;    
    theCarousel.Items.Add(img);

When the loading images process ended, I click on my RadTabItem containing my RadCarousel and I can see my 2 images. The first one is perfectly visible but the 2nd one is blank!!! If I scroll the blank image outside the RadCarousel and I scroll it back into the view portion of the RadCarousel, I can see it perfectly now!!!

I'm I missing something???

Thank's

    public class InterDependencyImage
    {
        #region Contructors.
        public InterDependencyImage()
        {
            No = 1;
            TotalImages = 1;
            Notes = "";
            Type = "";
            PrimaryImageGUID = Guid.Empty;           
        }
        #endregion

        #region Public properties.
        public int No { get; set; }
        public int TotalImages { get; set; }
        public Image Image { get; set; }
        public BitmapFrame Frame { get; set; }
        public string Notes { get; set; }
        public string Type { get; set; }
        public Guid PrimaryImageGUID { get; set; }
        #endregion
    }

Oliver
Top achievements
Rank 1
 answered on 15 Oct 2012
4 answers
428 views

Is there a way to change the appointment item height in timeline view?

I tried with:

<Style x:Key="CategoryStyle" TargetType="telerik:AppointmentItem">
  <Setter Property="Height" Value="100" />
</Style>

and when I compile+run, the height doesn't change.

Please advise.

Vladi
Telerik team
 answered on 15 Oct 2012
1 answer
90 views
I'm having a brutal time styling the RadCalendar nested in RadDateTImePicker.

Mainly, when I follow the instructions here:

http://www.telerik.com/help/wpf/raddatetimepicker-styling-raddatetimepicker.html

The resources are not created in my ResourceDictionary as documented.  I'm simply presented with one style and control template; it appears to be using the native styles built into the control natively instead of spawning the resources in the above walk through.

I'm able to style my own header elements, but getting at the colours for the Calendar grid is where I'm stumped--it's using the 'office black' theme colours.

Any help is appreciated.

-Sheldon
Vladi
Telerik team
 answered on 15 Oct 2012
1 answer
861 views
I've looked through your forum about this but can only find half working workarounds.

Consider the following GridView:

<telerik:RadGridView ItemsSource="{Binding ItemsView}" AutoGenerateColumns="False"
        IsSynchronizedWithCurrentItem="True"
        ValidatesOnDataErrors="InViewMode" 
        EditTriggers="CellClick"
        CanUserDeleteRows="True"
        CanUserInsertRows="True">
    <telerik:RadGridView.Columns>
        <telerik:GridViewComboBoxColumn Header="Currency" 
            DataMemberBinding="{Binding CurrencyCode,UpdateSourceTrigger=PropertyChanged}" 
            ItemsSource="{Binding Path=DataContext.AllCurrencyCodes,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"
            />
        <telerik:GridViewDataColumn Header="Rate"
            DataMemberBinding="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"
            />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

Here I bind to POCO objects that implement INotifyPropertyChanged. As soon as a change is detected, I light up a Save button.
However, the property does not get changed until the user steps out of the cell, thus preventing the immediate click on the save button!

There is a workaround for simple textboxes;
<telerik:GridViewDataColumn Header="Rate" 
        DataMemberBinding="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"
    <telerik:GridViewDataColumn.CellEditTemplate
        <DataTemplate
            <TextBox Text="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"/> 
        </DataTemplate
    </telerik:GridViewDataColumn.CellEditTemplate
</telerik:GridViewDataColumn>

However, this trick fails miserably for Date-fields, since your otherwise great date picker gets supressed. :(

I really want a fix for this, that I consider a bug. Is there any chance of that ever happening?
Dimitrina
Telerik team
 answered on 15 Oct 2012
4 answers
614 views
I have placed a radlistbox in a dropdown button.  I have SelectionMode = Single.  I have an event handler for the selectionchanged to know which item they selected.  In that handler I set the dropdown button to close, get the item and clear the selection.  I do this so that the next time the user opens the menu there is not an item selected in the listbox.  I have tried 3 different things but the highlight of the item does not go away.  I have tried:

SelectedItems.Clear();
SelectedItem = null;
SelectedIndex = -1;

As previously stated, none of these clear the UI selection.  The SelectedItem property is set to null, but all previously clicked on items are still highlighted in the UI.

Thanks in advance,
Lee
Georgi
Telerik team
 answered on 15 Oct 2012
1 answer
268 views
I have the following chart set up where I would like to display gridlines:

<telerik:RadCartesianChart Grid.Row="1">
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartTrackBallBehavior />
        <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" />
    </telerik:RadCartesianChart.Behaviors>
    <telerik:LineSeries ItemsSource="{Binding PraGasProductionChartPoints}"
                        CategoryBinding="Date"
                        ValueBinding="Value">
        <telerik:LineSeries.HorizontalAxis>
            <telerik:DateTimeContinuousAxis  Minimum="{Binding MinimumChartDate}"
                                                Maximum="{Binding MaximumChartDate}"
                                                LabelStyle="{StaticResource labelFontStyle}"
                                                MajorStepUnit="Year"
                                                MajorStep="3"
                                                LabelFormat="yyyy"
                                                />
        </telerik:LineSeries.HorizontalAxis>
        <telerik:LineSeries.VerticalAxis>
            <telerik:LinearAxis LabelFormat="#,#" />
        </telerik:LineSeries.VerticalAxis>
    </telerik:LineSeries>
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
    </telerik:RadCartesianChart.Grid>
</telerik:RadCartesianChart>

My chart displays fine but I don't get any gridlines to show up on the chart. I assume I'm doing some basic thing wrong. Please help.

Thanks,
Mike 
Petar Kirov
Telerik team
 answered on 15 Oct 2012
1 answer
54 views
Here comes another similar question, Since I have already known that the copy of cell will only copy the raw text. How about print and export to excel ? Is that possbile to retain the format in every possible way ? (Mainly font family, font size, font stretch are defined as functional requirement) 

Thanks,

Fan, Yi-Jie
Vlad
Telerik team
 answered on 15 Oct 2012
1 answer
117 views
Hi,

I am using radgridview panel in side a grid , but as a default behaviour the GridviewGroupPanel of radgridview occupy the area above radgridview as shown in the attatchment (currentBehaviour.png)

My requirement is to move the GridviewGroupPanel to a column inside parent grid rather than having it at default position as shown in the attatchment (RequiredBehaviou.png), can this be done , if yes then could you please provide the solution ?

Thanks,
Ankush
Vlad
Telerik team
 answered on 15 Oct 2012
2 answers
126 views
Hello friends,

I have a RadGridView in which I want to give Edit as the last column. I want it to be either a link or a button so that when I click on Edit(which is there as the last column value for all the rows), I can display a page in which I can give provision for editing the fields. I cannot use inline edit option since I cannot display all the columns of the data source in the grid. But when user clicks on Edit, the user must be able to edit all the fields of the data source rather than what is being displayed in the grid. How can I do this??

When I did a search I found that GridViewCommandColumn can be used for similar purposes but I don't know how to add this coulmn through xaml.

Please help.

Thanks in advance
Priya

Priyalakshmi
Top achievements
Rank 1
 answered on 15 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?