Telerik Forums
UI for WPF Forum
1 answer
64 views
Hi,

I'm looking at the Mail Merge example that came with the "RadControls for WPF Q1 2013 SP1" installation and I can export to 6 different formats (Word, Web, PDF, RTF, TXT and XAML).  Now, when I implement the same functionnallity in my application I only see 2 (TXT and XAML).  See attached images.

How can I add items to the list or mergeable formats?

Can I pick and choose which formats I can allow a user to export to?

Thanks for your help!

Joel
Missing User
 answered on 24 Feb 2014
2 answers
69 views
http://www.telerik.com/forums/gridview-templateselectors-and-converters

The code in the above thread works now, but a new problem has arisen.
In our code we are using different templates. When you edit a field with a textbox and press enter, it will go to the next field and open a text box for editing. As we have different templates for different input types this is a problem when the next field has a dropdownlist control or a numeric updown control. It is suddenly possible to write a text string to these controls which of course thrown an exception. When selecting the controls with the mouse this problem doesn't occur.

How can I disable this behavior?
Theo
Top achievements
Rank 1
 answered on 24 Feb 2014
5 answers
189 views
Hello.

As the title says, I'm trying to set a node to edit mode as soon as it's created. The approach I'm using is through WPF binding and styling. Basically, my object has a property called "IsNodeInEditMode", and I have a RadTreeViewItem style that sets this property based on the object it's bound to:

        <Style TargetType="{x:Type telerik:RadTreeViewItem}"
            <Setter Property="IsExpanded" Value="{Binding IsNodeExpanded, Mode=TwoWay}" /> 
            <Setter Property="IsInEditMode" Value="{Binding IsNodeInEditMode, Mode=TwoWay}" /> 
        </Style> 

So, as soon as I insert the item, I also set its "IsNodeInEditMode" property to true, which effectively makes the tree item go to edit mode, however, when I change the name of the newly created item, and press enter, it changes back to the original name, and not what I set after creating it, you can see that in this video:


Can you think of something that might be resetting the name? I debbuged this, and checked the call stack on the Name property Set accessor, but I can't get to the code that makes this change since it's external.

Let me know. Thanks!

Pavel R. Pavlov
Telerik team
 answered on 24 Feb 2014
1 answer
67 views
Hi,
I am using Scheduleview in a TimelineView to implement a job assignment interface.  My resources are the employees and the appointments are acting as the jobs.

Behavior I am trying to achieve:
An appointment is assigned to (resource) "A" and "B".  I would like to be able to override the drag drop behavior so that if you drag the instance of the appointment from employee "B" down to employee "C" the result is the appointment assigned to the resource "A" and "C".

So far I have created a custom dragdropbehavior and have been able to successfully override the logic so that when you click and drag it adds the destination resource to the job, but I am unable to remove the resource from which I've dragged.  To be clear: 

In my overridden Drop routine I am grabbing the state.DestinationSlots and checking to see if the resource of the destination slots exists in the appointment, and if not add the resource to the appointment.  Where I am stuck is I need to know which slot the drag originated from so that I know which resource to remove from the appointment.  Is there such a way to access the source slots?
Kalin
Telerik team
 answered on 24 Feb 2014
4 answers
203 views
I'd appreciate any assistance on this as I feel I have been circling the solution for days.

Here is the scenario:

I have multiple rows of ellipses on a diagram for which the position is persisted to a backing property in my view model.

Using the PenTool, I draw a complex shape on the diagram, whose path is persisted to a backing property in my view model, it is closed and filled using Nonzero.

Upon execution of a command, I collect the selected Ellipses and evaluate whether the Path (which is a PathGeometry from the PenTool) FillContains the positions of the Ellipses.

What I have noticed:

1. The resulting PathGeometry from the PenTool contains a single figure whose StartPoint is often not the position of the of the diagram shape (the CreateShapeGeometry performs some manipulation/normalization within the DrawingService for this.)

2. Regardless of whether I use FillContains or FillContains with detail, the results of examining the ellipse shape points is inconsistent with the visual that is
rendered within the diagram.

Example attached.
Robert
Top achievements
Rank 1
 answered on 24 Feb 2014
3 answers
363 views
Hi!

I'm using a PropertyGrid which, for some string properties, requires a custom control a made, LinkTextBox.
I created a datatemplate,
            <DataTemplate x:Key="linkTextBoxDataTemplate">
                <Wpf:LinkTextBox TextMaxLength="4000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                 telerik:AutoBindBehavior.UpdateBindingOnElementLoaded="Text"/>
            </DataTemplate>
where Text is the name of the control's property the property grid property is bounded to. I noticed this is required for binding.

I have 2 problems.
1. I need to access at runtime the LinkTextBox instance, for the current selected property. Using grdPropr.SelectedPropertyDefinition.EditorTemplate I get the above template, but I cannot navigate in the Visual/Logical tree. I can't use the .LoadContent() method, because this gives me e new instance of my control, not the one inside the PropertyGrid
2. When using a custom EditorTemplate, like this one, I noticed that when clicking in the control doesn't actually select the property in the PropertyGrid. When using the default template, clicking in the TextBox (which is the default editor for strings) automatically selects the current property

Thanks,
Alex

Dimitrina
Telerik team
 answered on 24 Feb 2014
1 answer
290 views
I'm autogenerating the fields of my RadDataForm. 

Now I want to set different background colors for the TextBoxes being generated. For example Textbox of property 'Name' should have a green background and Textbox for property 'Age' should have a blue background.

In RadGridViews the autogenerator can set very comfortably GridViewAutoGeneratingColumnEventArgs.Column.CellStyle, but how do I do this in a DataForm?
Yoan
Telerik team
 answered on 24 Feb 2014
1 answer
120 views
Hello
Some abilities like "text box" and "page border" and... are not in Telerik Editor ribbon. How can I use them?
Thank you.
Missing User
 answered on 24 Feb 2014
3 answers
189 views
Hi Team

I have many grids opened  say (3) at a time. I can export individual grid to a different excel using the export functionality. Now I want to export these 3 grids in single file using the telerik functionality.

Is it possible ? As i see in current API , i cannot provide the sheet name , so any alternative to that...

I got this article : http://www.telerik.com/help/winforms/gridview-exporting-data-export-to-excel-via-excelml-format.html , but i dont have reference to the dlls mentioned there.

please suggest a way.
Dimitrina
Telerik team
 answered on 24 Feb 2014
2 answers
109 views
Hi,

I am using an aggregate function to display the sum of the column values in the footer. But in some cases I want to hide the footer text. Is this possible to do in runtime (i.e. set visibility for footer text)?

Thanks!
Petter
Top achievements
Rank 1
 answered on 24 Feb 2014
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?