Telerik Forums
UI for WPF Forum
1 answer
200 views
As soon as you host a RadDiagram inside a RadTabItem which is not the first RadTabItem in the collection you get the following exception when you click on the settings pane icon:

System.ArgumentNullException was unhandled by user code
  Message=Value cannot be null.
Parameter name: source
  Source=System.Core
  ParamName=source
  StackTrace:
       at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
       at Telerik.Windows.Controls.Diagrams.Extensions.SettingsPaneView.UpdateEditor(DependencyObject editor) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Extensions\SettingsPane\SettingsPaneView.cs:line 321
       at Telerik.Windows.Controls.Diagrams.Extensions.SettingsPaneView.OnRegisterEditor(Object sender, RadRoutedEventArgs args) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Extensions\SettingsPane\SettingsPaneView.cs:line 265
  InnerException: 

I sat for hours and hours to figure out the cause of this problem. 

It works fine when the RadDiagram get's hosted in the first TabItem but if you move it to any other TabItem you start getting problems with the settingspane.

Here is a few screenshots to demonstrate the problem:
http://screencast.com/t/mfWlB20nNP
http://screencast.com/t/ccXGMklHFe
Here is a video to demonstrate:
http://screencast.com/t/5khAEDE4 


Zarko
Telerik team
 answered on 21 Nov 2012
2 answers
223 views
Hi,

our situation is as follows: a RadGridView is shown on the left part of the screen. Right from that there is a RadTabControl with dynamic RadTabItems. Every RadTabItem holds a RadTileView control. The RadTabControl/Items + RadTileView/Items reside in a UserControl (TileViewTabControl2b.xaml in the demo app). Both the RadGridView in the main window and the RadTabControl in the usercontrol use a DataTemplate to render their content (ContentViewModel->RadGridView, WorkspaceViewModel->RadTabControl). Now we want to drag an item from the RadGridView to the RadTileView (inside the RadTabItem). 
Because the RadTabItem and RadTileView do not exist at compile time I pass the handlers to the DragDropManager when the controls are loaded. The handler passed to AddDragOverHandler() is catched as expected but the other handlers like the OnDrop handler are not catchedAny idea why these handlers are not called? 
More general question: what is the preferred way to use the DragDropManager for controls that are created at runtime (by XAML, not in the code behind) like when MVVM is applied?

A demo project can be found here.

Thanks in advance and kind regards,
Vincent
Vincent
Top achievements
Rank 1
 answered on 21 Nov 2012
3 answers
229 views
Hi All

I have a scenario where a user has a grid with a menu, in that menu they can pick a bunch of options which dictate which columns are shown and which columns are not.

Some of the hideable columns have filters on them. I am using a single rowmodel, and as such, if the user filters on a column,  then hides it, they get a different set of information but the filter remains applied, and the grid is filtered. This is done because the first 5 or so columns are common and then the remaining columns change.

What is the best way to remove a filter when the column is hidden?

Regards,
Ian
Rossen Hristov
Telerik team
 answered on 21 Nov 2012
1 answer
138 views
When we set IsEnabled="False" on a MaskedInput control, the background stays white.  Other controls using the same theme (Windows 7) turn to a gray.  Is this something I can address without creating a new template?

Thanks!
Pavel R. Pavlov
Telerik team
 answered on 21 Nov 2012
0 answers
78 views
Is developing a program similar to Windows Explorer and I
Explorer, the directory my image files are displayed in the form of tiles.
But do not implement the two.
Displays a thumbnail image of the first, and the first point to read all of the images I want to display the entire image, and how? Notify tileview
Second, scrolling Unnatural on virtual mode when repeated up and down fastly.
I want Windows Explorer view large icon option.(scrolling very natural)
Is possible?

Please help me.
lee
Top achievements
Rank 1
 asked on 21 Nov 2012
2 answers
107 views
I have styled my column headers as in the attached image, and wish to have the Grouped by button and spacer in the column header row styled the same way, but I can't figure out what to style. 
Any help would be appreciated, thanks,
Steve
Steve
Top achievements
Rank 1
 answered on 20 Nov 2012
7 answers
122 views
When editing the XAML in VS 2010 - the RadPane displays as a blank rectangle with no controls displayed in the visual editor. What is the problem and how can I use the visual editor with RadPane?
Rob Conley
Top achievements
Rank 1
 answered on 20 Nov 2012
5 answers
315 views
Hello, 

I get an error when I try to load a layout which is saved from the last application-session. In the samples-code below I have redruced the code.
If I swap <RadSplitContainer InitialPosition="FloatingDockable"> before <RadSplitContainer Dock="DockedLeft"> is works fine. But our layoutfiles are generated by RadDocking.SaveLayout.

Location: System.RuntimeMethodHandle._InvokeMethodFast
 
Stack Trace:
   bei System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   bei System.Delegate.DynamicInvokeImpl(Object[] args)
   bei System.Windows.RoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
 
Inner Exception:
1. InnerException.Message:
System.InvalidOperationException: Element already has a logical parent. It must be detached from the old parent before it is attached to a new one.
   bei MS.Internal.Controls.InnerItemCollectionView.AssertPristineModelChild(Object item)
   bei MS.Internal.Controls.InnerItemCollectionView.Insert(Int32 index, Object item)
   bei System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)
   bei Telerik.Windows.Controls.Docking.AutoHideArea.Add(RadPane pane, Boolean suppressAnimations)
   bei Telerik.Windows.Controls.Docking.AutoHideArea.UnpinPane(RadPane pane, Boolean suppressAnimations)
   bei Telerik.Windows.Controls.RadDocking.UnpinPane(RadPane radPane, AutoHideArea area, Boolean stopEvents)
   bei Telerik.Windows.Controls.RadDocking.OnRadPanePinChange(Object sender, PinChangeEventArgs args)


Telerik WPF Version 2012.2.725.40

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="29" />
        <RowDefinition Height="1*" />
    </Grid.RowDefinitions>
    <Button Width="94" Content="load Layout" Click="Button_Click" />
    <telerikDocking:RadDocking x:Name="radDocking" Grid.Row="1" />
</Grid>



private void Button_Click(object sender, RoutedEventArgs e)
{
    try
    {
        using (var fs = new FileStream("./Last_Layout.xml", FileMode.Open))
        {
            radDocking.LoadLayout(fs);
        }
    }
    catch (System.Exception ex)
    {
        System.Console.WriteLine("Error while loading lastlayout " + ex.Message);
    }
}



Last_Layout.xml 

<?xml version="1.0" encoding="utf-8"?>
<RadDocking>
  <DocumentHost>
    <RadSplitContainer>
      <Items>
        <RadPaneGroup SelectedIndex="-1">
          <Items />
        </RadPaneGroup>
      </Items>
    </RadSplitContainer>
  </DocumentHost>
  <SplitContainers>
    <RadSplitContainer Dock="DockedLeft" Width="240" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
      <Items>
        <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
          <Items>
            <RadPane SerializationTag="GKL.Module.PreisBildErhebung.ViewModule:BildExplorerView" IsPinned="False" IsDockable="False" AutoHideWidth="236" AutoHideHeight="994" />
          </Items>
        </RadPaneGroup>
      </Items>
    </RadSplitContainer>
 
    <RadSplitContainer InitialPosition="FloatingDockable" FloatingWidth="1722" FloatingHeight="1200" FloatingX="2024" FloatingY="0" FloatingWindowState="Normal" IsInOpenWindow="True" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
      <Items>
 
 
      </Items>
    </RadSplitContainer>
  </SplitContainers>
</RadDocking>
Konstantina
Telerik team
 answered on 20 Nov 2012
1 answer
121 views

We are using the Telerik controls in developing our application. We were using Coded UI Test to test our application.

We have created a user control using the Telerik controls and we have hosted this user control in our application.If the user control is placed directly under RadPaneGroup, CUIT is not able to highlight them.

Following are our observations:

 

  1. After running the sample application from the VSTS solution and try to identify the controls using Coded UI Test Builder, I am seeing an exception in the application solution. I have attached the snapshot of the exception to the thread.
  2. From the exception message it is clear that there is some issue with the AutomationPeer of RadPane.

Any help here is greatly appreciated.

Thanks,
Vijay

 

Boyan
Telerik team
 answered on 20 Nov 2012
1 answer
121 views
Hi,

I found that there is a property for Bollinger Band thickness (StrokeThickness):

BollingerBandsIndicator indicator = new BollingerBandsIndicator();
indicator.Period = 20;
indicator.StandardDeviations = 2;
 
indicator.Stroke = Brushes.Red;
indicator.LowerBandStroke = Brushes.Red;
indicator.StrokeThickness = 1;

However, when the indicator displays, only the upper band thickness will be effective for changing the StrokeThickness. I cannot find how to change the thickness of the lower band.
Any help?

Many thanks!
Frankie

Petar Marchev
Telerik team
 answered on 20 Nov 2012
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?