Telerik Forums
UI for WPF Forum
1 answer
68 views
I have pdf file preview.pdf and it cannot be displayed in viewer. I use controls 2013 Q1

UPDATE: it works in 2013 Q1 SP1
Kammen
Telerik team
 answered on 04 Apr 2013
3 answers
157 views
I've got a GridView control on a window, that has some columns in it. One of the columns is wider than we need it to be. The values in that column are nearly always single digits. (There's only 4 records out of tens of thousands, in our database, which is either 10 or 11, and 11 is the highest any of our records go.) Anyway, in looking at the properties of the GridViewDataColumn I was that the MinWidth was 20. I set it to 3, but that didn't help. In fact, it didn't even look as though I'd changed the width at all. So, how do I get it to be narrower than it currently is displayed at? (The column I'm trying to narrow is the one associated with the CaseNumber data.) Here's the XAML:

<telerik:RadGridView VerticalAlignment="Stretch" AutoGenerateColumns="False" DataMember="ClientNumber"
                     x:Name="grdClients" d:DataContext="{d:DesignData Source=/SampleData/ASISelectClientSampleCollection.xaml}"
                     IsReadOnly="True" ShowColumnHeaders="False" ShowGroupPanel="False"
                     RowIndicatorVisibility="Collapsed"
                     IsFilteringAllowed="False" AutoExpandGroups="True" FontSize="16" SelectionChanged="grdClients_SelectionChanged"
                     ItemsSource="{Binding}" HorizontalAlignment="Left" MouseDoubleClick="grdClients_MouseDoubleClick"
                     >
  <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn UniqueName="ClientNumber">
      <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
          <TextBlock Text="Client Number" />
        </DataTemplate>
      </telerik:GridViewColumn.ToolTipTemplate>
    </telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn UniqueName="LastName">
      <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
          <TextBlock Text="Last Name" />
        </DataTemplate>
      </telerik:GridViewColumn.ToolTipTemplate>
    </telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn UniqueName="FirstNames">
      <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
          <TextBlock Text="First Name" />
        </DataTemplate>
      </telerik:GridViewColumn.ToolTipTemplate>
    </telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn UniqueName="CaseNumber">
      <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
          <TextBlock Text="Case Number" />
        </DataTemplate>
      </telerik:GridViewColumn.ToolTipTemplate>
    </telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn UniqueName="DateOfBirth" DataFormatString="{}{0:d}">
      <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
          <TextBlock Text="DOB" />
        </DataTemplate>
      </telerik:GridViewColumn.ToolTipTemplate>
    </telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn UniqueName="InterviewDate" DataFormatString="{}{0:d}">
      <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
          <TextBlock Text="Interview Date" />
        </DataTemplate>
      </telerik:GridViewColumn.ToolTipTemplate>
    </telerik:GridViewDataColumn>
  </telerik:RadGridView.Columns>
  <telerik:RadGridView.SortDescriptors>
    <telerik:SortDescriptor Member="LastName" SortDirection="Ascending" />
    <telerik:SortDescriptor Member="FirstNames" SortDirection="Ascending" />
    <telerik:SortDescriptor Member="CaseNumber" SortDirection="Descending" />
  </telerik:RadGridView.SortDescriptors>
  <telerik:RadGridView.GroupDescriptors>
    <telerik:GroupDescriptor Member="ClientNumber">
    </telerik:GroupDescriptor>
  </telerik:RadGridView.GroupDescriptors>
  <telerik:RadGridView.GroupHeaderTemplate>
    <DataTemplate>
      <StackPanel Orientation="Horizontal">
        <StackPanel Orientation="Horizontal" MinWidth="180">
          <TextBlock Text="{Binding Group.Items[0].LastName}" />
          <TextBlock Text=", " />
          <TextBlock Text="{Binding Group.Items[0].FirstNames}" />
        </StackPanel>
        <StackPanel Orientation="Horizontal">
          <TextBlock Text="{Binding Group.Items[0].SocialSecurityNo}" FontWeight="Bold"  />
        </StackPanel>
      </StackPanel>
    </DataTemplate>
  </telerik:RadGridView.GroupHeaderTemplate>
</telerik:RadGridView>



Dimitrina
Telerik team
 answered on 04 Apr 2013
3 answers
136 views
Hi,

I am adding RadPanes dynamically to RadPaneGroups in a RadDocking control. The RadPanes have a customer header datatemplate that contains a button to close it. I get the following exception on calling RemoveFromParent() on the RadPane.

System.NullReferenceException was caught
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Navigation
  StackTrace:
       at Telerik.Windows.Controls.Primitives.TabStripPanel.<>c__DisplayClass14.<MeasureOverride>b__7(UIElement item)
       at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
       at System.Linq.Enumerable.Max(IEnumerable`1 source)
       at Telerik.Windows.Controls.Primitives.TabStripPanel.<>c__DisplayClass14.<MeasureOverride>b__6(Double total, List`1 next)
       at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
       at Telerik.Windows.Controls.Primitives.TabStripPanel.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at Telerik.Windows.Controls.RadPane.OnDocumentHostTemplateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
       at System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject container, FrugalStructList`1& exclusionContainerDependents, FrugalStructList`1& oldContainerDependents, FrugalStructList`1& newContainerDependents)
       at System.Windows.StyleHelper.DoStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle)
       at System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache)
       at System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
       at System.Windows.FrameworkElement.UpdateStyleProperty()
       at System.Windows.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation)
       at System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent)
       at System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent)
       at System.Windows.Media.Visual.RemoveVisualChild(Visual child)
       at System.Windows.Media.VisualCollection.RemoveRange(Int32 index, Int32 count)
       at System.Windows.Controls.UIElementCollection.RemoveRangeInternal(Int32 index, Int32 count)
       at System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)
       at System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)
       at System.Windows.Controls.ItemContainerGenerator.OnItemRemoved(Object item, Int32 itemIndex)
       at System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
       at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
       at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
       at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
       at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
       at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
       at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
       at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
       at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
       at MS.Internal.Controls.InnerItemCollectionView._RemoveAt(Int32 index, Int32 indexR, Object item)
       at System.Windows.Controls.ItemCollection.Remove(Object removeItem)
       at Telerik.Windows.Controls.RadPaneGroup.RemovePane(RadPane pane)
       at Telerik.Windows.Controls.RadPane.RemoveFromParent()

Even calling RemovePane on the RadPaneGroup raises the exception "Object reference not set to an instance of an object."

I am using the version 2013.1.220.45. Any idea what can cause the above exception?

Thank you,

Gajan

Gajan
Top achievements
Rank 1
 answered on 03 Apr 2013
1 answer
282 views
Hi,
sorry for poor english ;-)
I'm creating a data logging software that gets temperature,pressure,... from external hardware. An IObservableCollection is used  to store new data i want to visualize them in your amazing chart tool. the logging may take days and data points adds every second.
my problem is HorizontalAxis labels, I have already used another 3rd party component ( C1.WPF.Chart ). it has a property named : "IsTime" and when enabled and bound to a TimeSpan data label formatting changed as logging continued ( seconds,minutes,hours,...). Now I'm evaluating your control and pretty sure RadChart is capable of doing the same thing much better. would please tell me how?
mentioned component looks like this :
Axis AxisTemperatureVal = new Axis()
            {
                AxisType = AxisType.Y,
                Title = "Temperature [°C]",
                Name = "Temperature",
                IsDependent = false,
                Position = AxisPosition.Far,
                MajorGridStrokeThickness = 0,
                MinorTickThickness = 0,
                Min = 0,
};
MainPage.Chart.ChartType = C1.WPF.C1Chart.ChartType.Line;
MainPage.Chart.View.Axes.Add(AxisTemperatureVal);
MainPage.Chart.View.AxisY.Min = 0;
MainPage.Chart.View.AxisY.Max = 100;
MainPage.Chart.View.AxisX.Title = "Time";
MainPage.Chart.View.AxisX.IsTime = true;

thanks in advance
Missing User
 answered on 03 Apr 2013
5 answers
231 views
How could I make visible groupings of Tiles with the RadList?  Maybe a thin outline around them and/or a Label. 
Yoan
Telerik team
 answered on 03 Apr 2013
3 answers
117 views
Hi Guys

I am currently trying out your radGridView for its hierarchical ability with the hope to purchase if I can get the following to work:

I need to be able to create the hierarchical gridview, with the child being bound to a collection of the original collection. To explain...

I have the following 3 simple classes

public class Task
{
string Name;
string Description
}

public class Phase
{
string Name;
string Description;
ObservableCollection<Task> Tasks
}

public class Project
{
string Name;
string Description
ObservableCollection<Phase> Phases
}

As you can see above, Tasks is a collection within Phase and Phases is a collection within Project.
Now what I want to do with displaying this is Project to be the "root"/"parent", the collection of Phases as the "child" to Project and the collection of Tasks as the "child" to Phases.

Is this possible with the RadGridView? If so, could you PLEASE point me in the right direction to achieve this layout with the RadGridView?

If you need any more info please ask!

Thanking you in advance!
Darryl
Top achievements
Rank 1
 answered on 03 Apr 2013
1 answer
152 views
Hello.
1) I have WPF application with RadDiagram and RadDiagramToolbox components.
2) I create GalleryCollection with my owner shapes:
galleryCollection.Items.Add(new GalleryItem(geometryWrapper.Name, GetShape(geometryWrapper)));
galleryList.Add(
new GalleryWrapper(galleryCollection));
GallerySource =
new ObservableCollection<GalleryWrapper>(galleryList);

This is GetShape method:
private RadDiagramShapeBase GetShape(GeometryWrapper wrapper)
{
    
string data = wrapper.Data;
    Path shapePath = (Path)XamlReader.Parse(data);
    RadDiagramShape shape =
new RadDiagramShape { Geometry = shapePath.Data, Name = wrapper.Name.Replace(" ", "_") + "Shape" };
    
return shape;
}

 3) My shapes I get from database. There are samples of my shapes:

-Shape1:
<Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Stroke='Black' StrokeThickness='1' Fill='#CCCCFF'>
  <
Path.Data>
    <
CombinedGeometry GeometryCombineMode='Exclude'>
      <
CombinedGeometry.Geometry1>
        <
EllipseGeometry RadiusX='50' RadiusY='50' Center='75,75' />
      </
CombinedGeometry.Geometry1>
      <
CombinedGeometry.Geometry2>
        <
EllipseGeometry RadiusX='50' RadiusY='50' Center='125,75' />
      </
CombinedGeometry.Geometry2>
    </
CombinedGeometry>
  </
Path.Data>
</
Path>

+Shape2:
<Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Name='starPath' Fill='Gray' Data='M 9,0 L 7,6 L 0,6 L 6,11 L 4,17 L 9,12 L 14,17 L 12,11 L 18,6 L 11,6 L 9,0'>
  <
Path.LayoutTransform>
    <
ScaleTransform ScaleX='0.8' ScaleY='0.8' />
  </
Path.LayoutTransform>
</
Path>

+Shape3:
<Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Stroke='Black' StrokeThickness='1'>
  <
Path.Data>
    <
PathGeometry>
      <
PathGeometry.Figures>
        <
PathFigureCollection>
          <
PathFigure StartPoint='10,100'>
            <
PathFigure.Segments>
              <
PathSegmentCollection>
                <
QuadraticBezierSegment Point1='200,200' Point2='300,100' />
              </
PathSegmentCollection>
            </
PathFigure.Segments>
          </
PathFigure>
        </
PathFigureCollection>
      </
PathGeometry.Figures>
    </
PathGeometry>
  </
Path.Data>
</
Path>

-Shape4:
<Path xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stroke="Black" StrokeThickness="3" Fill="Blue">
  <
Path.Data>
    <
GeometryGroup>
      <
LineGeometry StartPoint="20,200" EndPoint="300,200" />
      <
EllipseGeometry Center="80,150" RadiusX="50" RadiusY="50" />
      <
RectangleGeometry Rect="80,167 150 30"/>
    </
GeometryGroup>
  </
Path.Data>
</
Path>

+Shape5:
<Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Data="M 100,200 C 100,25 400,350 400,175 H 280"/>

-Shaep6:
<Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Stroke='Black' StrokeThickness='1' Fill='#CCCCFF'>
  <
Path.Data>
    <
CombinedGeometry GeometryCombineMode="Union">
      <
CombinedGeometry.Geometry1>
        <
EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" />
      </
CombinedGeometry.Geometry1>
      <
CombinedGeometry.Geometry2>
        <
EllipseGeometry RadiusX="50" RadiusY="50" Center="125,75" />
      </
CombinedGeometry.Geometry2>
    </
CombinedGeometry>
  </
Path.Data>
</
Path>

4) Then I binding GalleryCollection:
<telerik:RadDiagramToolbox Grid.Column="1" Grid.RowSpan="2" Name="tbxGallery" Header="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.Header}" 
                          Background="#FFE82A2A" HeaderBackground="#FFE82A2A" ItemTemplate="{StaticResource ToolboxTemplate}" ItemsSource="{Binding GallerySource}"
Title="Галерея" Width="300" />

5) When I run my application it's OK. My shapes showing into RadDiagramToolbox. When I try drug&drop Shape2 or Shape3 or Shape5 it's OK too. 
But when I try drug Shape1 or Shape4 or Shape6 I get exception (I get exception when Path tag has CombinedGeometry tag):

Object reference not set to an instance of an object.
  at Telerik.Windows.Controls.Diagrams.GeometryParser.ParseBack(PathGeometry geometry) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Utilities\GeometryParser.cs:line 128
   at Telerik.Windows.Controls.Diagrams.GeometryParser.GetString(Geometry geometry)
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Utilities\GeometryParser.cs:line 32
   at Telerik.Windows.Controls.RadDiagramShape.Serialize()
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Visuals\RadDiagramShape.cs:line 65
   at Telerik.Windows.Diagrams.Core.SerializationService.SerializeShapes(IEnumerable`1 shapes)
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Core\Services\SerializationService.cs:line 315
   at Telerik.Windows.Diagrams.Core.SerializationService.SerializeItems(IEnumerable`1 items)
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Core\Services\SerializationService.cs:line 261
   at Telerik.Windows.Controls.Diagrams.Extensions.ToolboxDragService.OnDragInitialized(Object sender, DragInitializeEventArgs args)
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Extensions\Toolbox\ToolboxDragService.cs:line 33
   at Telerik.Windows.DragDrop.DragInitializeEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializeEventArgs.cs:line 103
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)<br>   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at Telerik.Windows.DragDrop.DragInitializer.StartDrag()
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 285
   at Telerik.Windows.DragDrop.DragInitializer.StartDragPrivate(UIElement sender)
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 246
   at Telerik.Windows.DragDrop.DragInitializer.DragSourceOnMouseMove(Object sender, MouseEventArgs e)
in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 196
   at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at Neolant.ND_Platform.WpfClient.App.Main()
in D:\Projects\ProductionPlatform\ND_Platform\ND_Platform\Neolant.ND_Platform.WpfClient\obj\x86\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Do you have any ideas?
Pavel R. Pavlov
Telerik team
 answered on 03 Apr 2013
4 answers
238 views
Is there a way to make the TileList able to work like buttons? Like the windows start screen? where you can click on a tile and it has a "Clicked" or "Touched" event that can be used to navigate to another view? Having it selectable and all but that should only be on right clicking or tap & hold.
Pavel Pavlov
Telerik team
 answered on 03 Apr 2013
2 answers
162 views
Hello all,

I have been trying to implement RadDiagram in an MVVM way, using Caliburn.Micro and I'm coming to the conclusion that this just doesn't fit well with the Telerik controls architecture. I would love it if someone can prove me wrong.

I've looked at every sample app from these forums and Telerik's help, often confused at the reams of <style> code I have to wade through to make sense of anything, and I've still not found a simple answer to my issues.

The following are my goals:

  • Use UserControls, not Styles, to implement my shapes
- I like that the UserControls can easily be designed in Blend or Visual Studio
- I like that the visual implementation is modular within each UserControl
- unless someone can propose an elegant, organized solution using styles/ResourceDictionaries
  • Use MVVM architecture and Caliburn.Micro to locate views for the viewmodels (viewmodel-first approach)
- All the examples of MVVM implementation I've seen seem clunky, but maybe I'm just not seeing the forest through the trees.
  • Have multiple custom shapes on a RadDiagram
- Unless I'm missing something, it appears that you must override the Template for type:RadDiagramShape to show your custom control visual. I don't like having this xaml mixed in with the main RadDiagram xaml. I'd like to separate it into the custom shape xaml for clarity.
- it also appears that I need to create a custom RadDiagram control and override IsItemItsOwnShapeContainerOverride (etc),
instantiating each custom shape depending on the type of the object passed in.


At this point, I'm so confused by the myriad of examples of ways to implement things, that I'm looking for a very simple example of complete view/viewmodel separation (no code behind, unless just to set the viewmodel, if not using an MVVM framework), multiple custom shapes support, well-organized xaml/code into meaningful, logical files that can be designed in VS or Blend.

I'm also willing to admit that maybe I'm just missing something that brings everything together nicely. I hope someone can point me in the right direction.

Thanks!
Petar Mladenov
Telerik team
 answered on 03 Apr 2013
5 answers
586 views
I want to use RadGridView as a simple Listbox but with built in editing capability, like a File Explorer file list in which you can rename the files.

I think I've worked most of it out like removing all of the surrounding borders and gridlines, disabling the icon row and removing the cell focus rectangle, but I'm not sure how to modify the in place editing functionality.

I want to disable editing via overwriting the text, and I don't want pressing enter during editing to move edit mode on to the next cell down. And after editing I do not want using the arrow keys to move edit mode to other cells. The only edit support I want to keep is entering edit mode either programatically (which will be via a context menu item), or by pressing the F2 hotkey.

I've tried handling PreparingCellForEdit but the event args doesn't seems to indicate what triggered the edit, which makes cancelling particular edit modes impossible.



Nick
Telerik team
 answered on 03 Apr 2013
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?