Telerik Forums
UI for WPF Forum
1 answer
171 views
I have a simple wpf project.
my Telerik.Windows.Controls has this version : 2011.3.1220.40

I am required to use RadTileView. When I don't use it, everything works fine. see the "working.png" image attached.
there is no error in the designer.
As soon as I try to wrap my controls (i.e. grids and telerik:RadGridView) inside the <telerik:RadTileView , designer gives me error
"Cannot find type Telerik.Windows.Controls.Animation.IEasingFunction in module Telerik.Windows.Controls.dll."

see in the image, i have not even completed typing telerik:RadTileView. As soon as I start to use it, error fires up even before completing the tag(and it stays even if i complete the tag i.e. properly use the RadTileView). 
I am also using Telerik winform controls in a separate base project in the same solution.
please see to it.
Pavel R. Pavlov
Telerik team
 answered on 21 Nov 2012
1 answer
197 views
I have a template for a tileview content which is application wide.  so not using direct event.


I have this;

<telerik:RadFluidContentControl.Content  >
                 <Border>
                     <Grid Margin="10 10">
                         <StackPanel>
                             <TextBlock Margin="0 0 0 5"
                                    FontFamily="Segoe UI"
                                    FontSize="24"
                                    FontWeight="Light"
                                    Text="Last Appointment" />
                             <TextBlock FontSize="14"
                                    Text="{Binding LastDate}" />
                             <Border Height="2"
                                 Margin="0 5"  />
                             <TextBlock Margin="0 0 0 5"
                                    FontFamily="Segoe UI"
                                    FontSize="24"
                                    FontWeight="Light"
                                    Text="Next Due" />
                             <TextBlock FontSize="14"
                                    Text="{Binding NextDate}" />
                         </StackPanel>
                         <Button Tag="{Binding ListID}"
                                 Command="{Binding Path=TileClicked}"
                                 Opacity="0"
                                  
                                 CommandTarget="{Binding TileClicked, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ElgEquineManager:HorsesPage}}}"></Button>
                     </Grid>
                 </Border>
             </telerik:RadFluidContentControl.Content>

I am trying to add a button to the tileview to cover the whole tile, so it can be clicked and made selected , and not just clicking on the header. make sense?

I had an Click="" event before, but now I want this as a app wide template, any ideas?

Kiril Vandov
Telerik team
 answered on 21 Nov 2012
1 answer
176 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
203 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
210 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
118 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
63 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
85 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
98 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
291 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
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?