Telerik Forums
UI for WPF Forum
8 answers
346 views
Hi,

using c# .NET 4.5, Wpf, RadTabControl (DataContext is a TabViemodel).

I bound a VieModel on my RadTabControl. With a Command on a RadButton, i add a new TAbItem and load a UserControl
as Contet.

On initializing the USerControl i try to access the ViewModel from the TAbControl, but without any success. As you can see on
the attached File the SelectedContent is my VieModel, but the var yyy is null?

Thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 answered on 30 Dec 2014
4 answers
207 views
Environment: WPF,MVVM, Odata 2, EF6, MVC

Scenario: 

Attempting to submit a master/detail payload as a single transaction via a Telerik QueryableDataServiceCollectionView. Payload consists of 1 master record and 12 related detail records for insert.  

I have included the following code in WebApiConfig:

config.Routes.MapHttpBatchRoute(
        routeName: "WebApiBatch",
        routeTemplate: "api/$batch",
        batchHandler: new DefaultHttpBatchHandler(GlobalConfiguration.DefaultServer));

 and 

 config.Routes.MapODataRoute(
"odata",
"odata",
builder.GetEdmModel(),
batchHandler: new DefaultODataBatchHandler(GlobalConfiguration.DefaultServer));

Now on the Client side, I don't know how to tell the QueryableDataServiceCollectionView to transmit the payload as a single transaction when SubmitChanges() is called.

ViewModel Constructor:

this.odataScoreService = odataScoreService;
odataScoreService.Service.SaveChangesDefaultOptions = SaveChangesOptions.Batch;

ProjectPhaseScores = new QueryableDataServiceCollectionView<ProjectPhaseScore>(odataScoreService.Service, odataScoreService.Entity);
ProjectPhaseScores.Expand = "ScoreItems";
ProjectPhaseScores.LoadedData += OnLoadedScoreData;
ProjectPhaseScores.FilterDescriptors.Add(projectPhaseFilterDescriptor);


I am still very new to Visual Studio Development so any assistance would be greatly appreciated.


Dimitrina
Telerik team
 answered on 30 Dec 2014
1 answer
92 views
How to read content from RadRichTextBox in codebehind

Thanks
Bindu
Tanya
Telerik team
 answered on 30 Dec 2014
1 answer
164 views
I've just started working with Telerik UI for WPF and have been working with implicit styles. I got the implicit styles working but haven't been able to access the theme variations as detailed in the documentation. I inserted the variation code into my code-behind file as shown below:

 public partial class MainWindow : Window
    {
        public MainWindow()
        {
            //dark color variation
            VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);
            InitializeComponent();
        }
    }

But get the following error message:

Error 1 The name 'VisualStudio2013Palette' does not exist in the current context 

Any ideas?




Bart
Top achievements
Rank 1
 answered on 29 Dec 2014
1 answer
124 views
Hi,

I get an error when I try to remove a tab item containing a RadAutoCompleteBox regardless of the content of the box -even if it's empty- it still gives an error. It breaks with an "Object is not set to an instance of an object" error trying to load RadAutoCompleteBox .cs at line 1326 0x30 bytes.

Thanks in advance.
Nasko
Telerik team
 answered on 29 Dec 2014
7 answers
223 views
For a customer project we are working with the radscheduleview (Q2 2014).

We are using specialslots to display slots with different task type. These slots can have a recurrence pattern which is supported by the Slot class.
We are able to display slots which occur daily every second day for example.

Where we run into problems is when we want to start using exceptions on the recurrencepattern. For example recurrence should be removed on a specific date.
For appointments the recurrencerule is used to add/delete exceptions of the recurrencepattern. We would like to be able to do the same for specialslots and are actually supprised that this is not a feature that is supported by the Slot class.

Is it currently possible possible to add exceptions to Slots or would it be possible too add such a feature?

Regards,
Johan Lollinga
Ideo B.V.
Johan
Top achievements
Rank 1
 answered on 29 Dec 2014
4 answers
255 views
If I want to read the product name with vb.net my.application.info in my WPF Project, I get an error message.

System.InvalidCastException wurde nicht behandelt.
  HResult=-2147467262
  Message=Das Objekt des Typs "TelerikWpfApp16.TelerikWpfApp16.Application" kann nicht in Typ "TelerikWpfApp16.Application" umgewandelt werden.
  Source=TelerikWpfApp16
  StackTrace:
       bei TelerikWpfApp16.My.MyWpfExtension.get_Application() in c:\users\hfrede\documents\visual studio 2013\Projects\TelerikWpfApp16\TelerikWpfApp16\My Project\MyExtensions\MyWpfExtension.vb:Zeile 20.
       bei TelerikWpfApp16.MainWindow.btnOK_Click(Object sender, RoutedEventArgs e) in c:\users\hfrede\documents\visual studio 2013\Projects\TelerikWpfApp16\TelerikWpfApp16\MainWindow.xaml.vb:Zeile 17.
       bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
...
Dimitrina
Telerik team
 answered on 29 Dec 2014
7 answers
574 views
Hi.

I use the property editor and want almost all of the properties to be auto generated, because they are dynamically loaded from available modules. But there are some properties, which should be generated as nested properties, so I define them in code like this:

01.private PropertyDefinition GetOperationTimePropertyDefinition(List<OperationTime> times)
02.{
03.    var definition = new PropertyDefinition();
04. 
05.    int order = 1;
06.    foreach (var operationTime in times)
07.    {
08.        var binding = new Binding { Source = operationTime, Path = new PropertyPath("")};
09.         
10.        var nestedPropertyDefinition = new PropertyDefinition
11.                                        {
12.                                            DisplayName = operationTime.DayOfWeek,
13.                                            OrderIndex = order++,
14.                                            Binding = binding,
15.                                            EditorTemplate = FindResource("OperationTimeEditorTemplate") as DataTemplate
16.                                        };
17. 
18.        definition.NestedProperties.Add(nestedPropertyDefinition);
19.    }
20. 
21.    return definition;
22.}

The result you can see on the attached screenshot, the properties are generated correctly, but the binding made in line 8 is not working.
I am getting this binding exceptions:

System.Windows.Data Error: 40 : BindingExpression path error: 'WorkStartTillPause' property not found on 'object' ''PropertySetViewModel' (HashCode=37731737)'. BindingExpression:Path=WorkStartTillPause; DataItem='PropertySetViewModel' (HashCode=37731737); target element is 'RadTimePicker' (Name=''); target property is 'SelectedValue' (type 'Nullable`1')


Can you tell me how to construct the binding to get this work?
tarnegur
Top achievements
Rank 1
 answered on 29 Dec 2014
1 answer
141 views
Hey All,

I am using RadDiagram for displaying selectedObject is a row in database and its parents and childs .I need counting parent and child for selectedObject.I need an aprroach can ı do it in view or ı need to configure with viewmodel(I am deeveloping MVVM) . I need all diagram will be dynamic for me .


I wish ı could explain my issue . Best Regards
Peshito
Telerik team
 answered on 26 Dec 2014
1 answer
92 views
Hi All, 
In WPF  RadChart , how can I set labels in a BubbleSeriesDefinition, to contain bubble size not yValues.   
Regards
Petar Marchev
Telerik team
 answered on 26 Dec 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?