Telerik Forums
UI for WPF Forum
2 answers
195 views

Hello!

I have a problem with Layout in RadDiagram. While using this example after applying Layout() method to my diagram (Sample.jpg), arrangement of layers and connections between them became very strange. Examples of applying Tree-down and Tree-up layouts are in the files TreeDown.jpg and TreeUp.jpg respectively.

Is it possible to place layers applying Layout() method, according to their connection?  

Thank You!

Alex
Top achievements
Rank 1
 answered on 02 Oct 2015
1 answer
122 views

Hi, II have a RadListBox with an attached DragDropBehavior and a custom itemTemplate:

<telerik:RadListBox.ItemTemplate>
    <DataTemplate>
        <Grid>
            <TextBox Text="{Binding Name}" />
        </Grid>
    </DataTemplate>
</telerik:RadListBox.ItemTemplate>

Technically everything works as expected, apart of the fact that reordering elements via drag&drop is nearly impossible.

Replacing the TextBox with a TextBlock fixes the issue but, of course, is not a viable option: the "Name" property should be editable...

Any advice on this?

Nasko
Telerik team
 answered on 02 Oct 2015
3 answers
304 views
I want to use ContextMenu on the dates in RadCalendar so i can pick the dates and show ContextMenu using right-click, there is an issue that makes me able to right-click on header and somewhere else(but still in Calendar) and the ContextMenu also showed up. this is the code
<telerik:RadCalendar x:Name="calendar">
        <telerik:RadContextMenu.ContextMenu>
            <telerik:RadContextMenu Opened="RadContextMenu_Opened">
                <telerik:RadMenuItem Header="Copy" />
                <telerik:RadMenuItem Header="Paste" />
                <telerik:RadMenuItem Header="Cut" />
            </telerik:RadContextMenu>
        </telerik:RadContextMenu.ContextMenu>
    </telerik:RadCalendar>

 

private void RadContextMenu_Opened(object sender, RoutedEventArgs e)
    {
        var calendarButton = (sender as RadContextMenu).GetClickedElement<CalendarButton>();
        if (calendarButton != null)
        {
            var calendarButtonContent = calendarButton.Content as CalendarButtonContent;
            if (calendarButtonContent != null)
            {
                var clickedDate = calendarButtonContent.Date;
 
            }
        }
    }

i also want to do that on RadScheduleView so i can only use the ContextMenu on the empty slots or appointment.

Aldy
Top achievements
Rank 1
 answered on 02 Oct 2015
1 answer
164 views

Hi ,

I have a RadGridView, and add three GridViewCheckBoxColumn in it, I want every GridViewCheckBoxColumn have different GridViewCheckBox style(not in EditorStyle )  in â€‹view mode. But i don't know how to set it. I only know how to set a common style for all three  of GridViewCheckBoxColumn .

 

so ...can you tell me how to do it? thanks so much!

 

Petya
Telerik team
 answered on 02 Oct 2015
4 answers
191 views

Hi, I am using WPF telerik RadCartesanchart and a Radlegend control which is bound to the chart's legend Items property. It is working, but I would like to have the chart in the same way but legends to be displayed in reverse order, Could someone help me on this?

Thank you,

Kannan M

Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 02 Oct 2015
8 answers
175 views

Related to a GridView but the cell is a MAskedInput, so not sure which forum it should belong.

 

I want to have a dynamic Mask. My current mask at the moment can take in a phone number or anything. May I ask how abouts do I go doing that? 

 

http://www.telerik.com/forums/dynamically-change-mask

Stefan
Telerik team
 answered on 01 Oct 2015
10 answers
1.3K+ views
We have a complaint from a customer, and aren't sure of how to deal with it.

The problem is that when we're displaying a RadDataForm with IsEnabled="False", they are unable to select the text on the form and copy it to the clipboard. Which, apparently, is a significant problem for them.

It's an easy enough problem to replicate. You can see it in your example at https://github.com/telerik/xaml-sdk/tree/master/DataForm by simply setting IsEnabledFalse="True" on the RadDataForm.

Is there another simple way of making a form readonly, that doesn't cause this problem?
Yoan
Telerik team
 answered on 01 Oct 2015
4 answers
361 views
Ok, I figure I'm missing something blindingly obvious here. I have a class, which in turn has a list of floats within it (there is more in the class including a datetime for the category binding):

public class MyClass
{
    public string aName ...
    public List<float> aList ...
    ....
}

My LineSeries's ItemsSource is bound to an observablecollection of MyClass. Then the ValueBinding is set to "aName". When I do this all is well in the world and I get exactly what I wanted. Now I want to have item in index 1 of the "aList" as a ValueBinding. If I put in "aList[1]" I get an error stating that it can't find the property.

So where am I wrong please?



Dinko | Tech Support Engineer
Telerik team
 answered on 01 Oct 2015
9 answers
507 views
The property is visible in property grid, even after setting the browsable attribute to false.Why?
public partial class Myobjects : Page
    {
        public Myobjects()
        {
            InitializeComponent();
            radPropertyGrid1.Item = new Customer();
             
        }
 
        public class Customer
        {
            [Browsable(false)]
            public int Id { get; set; }
            public string Name { get; set; }
        }
    }

Maya
Telerik team
 answered on 01 Oct 2015
8 answers
142 views
Hi All,

We have a custom field NoteNumberingField inherited from CodeBasedField, overridden CopyPropertiesFrom , CopyPropertiesFromCodeExpression and
BuildCodeOverride.

NoteNumberingField shows a number in the span and it is rendered below in the xaml. 

<t:FieldRangeStart AnnotationID="2">
<t:NoteNumberingField DateTimeFormatting="" DisplayMode="Result" GeneralFormatting="" NumericFormatting="" Text="1" xmlns:t="clr-namespace:KPMG.TMT.Trinity.Documents.TelerikWpf.Fields;assembly=KPMG.TMT.Trinity.Documents.TelerikWpf" />
</t:FieldRangeStart>
<t:Span FontFamily="Comic Sans MS" FontSize="34.67" Text="1" />
<t:FieldRangeEnd AnnotationID="2" />

When I change the font size of the text from the telerik font size dropdown, I see the overridden method CopyPropertiesFrom get fired and this copies the properties.

But when I change the font size of the same span by code, I dont see the CopyPropertiesFrom being fired as a result I lose all the properties being modified on the span.

So when I say UpdateAllFields on Richtextbox it bring back the default style of the text rather than the previous style what I changed.

In essence when I call RadDocumentEditor.UpdateAllFields, span (inside the field) properties are retained if I have changed using telerik font size drop down, 
but I lose all properties if span properties are changed by code.

Could some one help me in this issue please ? 

Thanks in Advance


Tanya
Telerik team
 answered on 30 Sep 2015
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?