Telerik Forums
UI for WPF Forum
2 answers
527 views
Hi,

I need to re-order my tabs programmatically. Is this possible and if so how? If not, is there a workaround?

I have searched the telerik forums and carefully read the documentation, but haven't found it described anywhere.

Thanks!
Petter
Top achievements
Rank 1
 answered on 25 Feb 2014
1 answer
112 views
Hello,
the icon of RadRibbonWindow is not displayed correctly when the text size is not displayed at 100%.
Take a look at the attached screen shots, made with Office2013 theme on Windows 8.1 systems: one at 100%, the other one at 200%.
This is very annoying, because there are more and more high resolution displays.
Patrick
Evgenia
Telerik team
 answered on 25 Feb 2014
1 answer
256 views
I am lookinf forward to bind DataTable to Telerik chart in code behind, Kindly look at datatable which is attached. In that i have three column(DataTemp,PlantNo,Stator) Out of this DataTemp is my Y axis, PlantNo is my Series, Stator is X Axis. Kindly Help.
Martin Ivanov
Telerik team
 answered on 25 Feb 2014
1 answer
106 views
Packt publishing, has come up with a new book on Telerik WPF controls. This book follows a tutorial format, and a lucid practical example based style that would help the users get started with Telerik WPF tutorials in no time. Here is the amazon link for this book: 
http://www.amazon.com/Telerik-Controls-Tutorial-Daniel-Spalding/dp/1782176527/ref=sr_1_4?ie=UTF8&qid=1393305659&sr=8-4&keywords=telerik

amarabha
Top achievements
Rank 1
 answered on 25 Feb 2014
1 answer
124 views
Hello,

Our company is trying to set up a pretty basic WPF Program with a code-first database (FluentModel) and a RadGridView to edit/add/delete data.
So far, everything works, except for the deleting/adding data part. Editting works just fine.

It's a MSSQL Database that gets all of its mapping and fields from Telerik's FluentMetaDataSource .

The problem, I think, lies in the fact that getting data using OpenAccessContent.GetAll<>() returns an IQueryable.
When using this IQueryable, the button to add a new row ("Click here to add new item") simply doesn't work.
A workaround for this is returning an IList instead using OpenAccessContent.GetAll<Type>().ToList() .
Using this as an ItemsSource instead makes it possible to edit existing items (and they can get retreived using our FluentModel's GetChanges().GetUpdates<Type>() method. However, GetInserts<Type>() and GetDeletes<Type>() is always empty, even though we visually see the data in the RadGridView. The changes simply don't go through.

Am I missing a very simple step? I certainly hope so.

01.<controls:RadGridView ItemsSource="{Binding Units}"
02.                      x:Name="UnitGridView"
03.                      CanUserFreezeColumns="False"
04.                      NewRowPosition="Top"
05.                      RowIndicatorVisibility="Collapsed"
06.                      GroupRenderMode="Flat"
07.                      ShowColumnFooters="False"
08.                      ShowColumnHeaders="True"
09.                      CanUserSortColumns="True"
10.                      ShowColumnSortIndexes="True"
11.                      ShowGroupFooters="False"
12.                      ShowGroupPanel="False"
13.                      GridLinesVisibility="Both"
14.                      BorderBrush="Transparent"
15.                      BorderThickness="0"
16.                      RowStyle="{StaticResource RowStyle}"
17.                      SelectedItem="{Binding SelectedUnit, Mode=TwoWay}"
18.                      AutoGenerateColumns="False"
19.                      SelectionUnit="FullRow">
20. 
21.    <controls:RadGridView.Columns>
22.        <controls:GridViewDataColumn DataMemberBinding="{Binding Id}" IsReadOnly="True"/>
23.        <!-- Fields ... -->
24.    </controls:RadGridView.Columns>
25.</controls:RadGridView>

01.public class FluentModel : OpenAccessContext, IFluentModelUnitOfWork
02.{
03.    private static string connectionStringName = @"connectionId";
04.    public static String ConnectionString{get { return ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString; }}
05. 
06.    private static readonly BackendConfiguration backend = GetBackendConfiguration();
07.    private static readonly MetadataSource metadataSource = new FluentModelMetadataSource();
08. 
09.    #region Lists
10. 
11.    public IList<UnitType> UnitTypes
12.    {
13.        get { return GetAll<UnitType>().ToList(); }
14.    }
15. 
16.    public IList<Address> Addresses
17.    {
18.        get { return GetAll<Address>().ToList(); }
19.    }
20. 
21.    public IList<Project> Projects
22.    {
23.        get { return GetAll<Project>().ToList(); }
24.    }
25. 
26.    public IList<Unit> Units
27.    {
28.        get { return GetAll<Unit>().ToList(); }
29.    }
30. 
31.    #endregion
32. 
33.    #region constructors
34.    public FluentModel()
35.        : base(connectionStringName, backend, metadataSource)
36.    { }
37. 
38.    public FluentModel(string connection)
39.        : base(connection, backend, metadataSource)
40.    { }
41. 
42.    public FluentModel(BackendConfiguration backendConfiguration)
43.        : base(connectionStringName, backendConfiguration, metadataSource)
44.    { }
45. 
46.    public FluentModel(string connection, MetadataSource metadataSource)
47.        : base(connection, backend, metadataSource)
48.    { }
49. 
50.    public FluentModel(string connection, BackendConfiguration backendConfiguration, MetadataSource metadataSource)
51.        : base(connection, backendConfiguration, metadataSource)
52.    { }
53.    #endregion
54. 
55.    public static BackendConfiguration GetBackendConfiguration()
56.    {
57.        BackendConfiguration backend = new BackendConfiguration();
58.        backend.Backend = "MsSql";
59.        backend.ProviderName = "System.Data.SqlClient";
60.        return backend;
61.    }
62.}

Summary: Data CAN be editted and gets passed to the context's (FluentModel) GetChanges().GetUpdates() list. Inserts/Deletes SEEM to work VISUALLY in the RadGridView, but rows do NOT actually get inserted/deleted and the GetInserts() and GetDeletes() lists are always EMPTY. What could be the cause of this?

Thank you for taking your time to read and help
Dimitrina
Telerik team
 answered on 25 Feb 2014
1 answer
107 views
Hello, 

We have a RibbonView that lives inside a RibbonWindow. We had previously been running version 2013.3.1021.40 and everything worked fine. When updating to version 2013.3.1417.40, there is a NullReferenceException error getting thrown when RibbonWindow.Show() is called. Has anything changed regarding these controls, or any idea what could be causing this? Below is the stacktrace:

at Telerik.Windows.Controls.RadRibbonView.<>c__DisplayClass22.<PrepareContainerForItemOverride>b__1d(SetterBase x) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\RibbonView\RibbonView\RadRibbonView.cs:line 719
Martin Ivanov
Telerik team
 answered on 24 Feb 2014
1 answer
69 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
77 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
207 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
77 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?