Telerik Forums
UI for WPF Forum
2 answers
99 views
Hi.

I have updated the latest version of the telerik dlls for schedule view and the drag/drop behavior stopped working. I do not have this problem for the RadListBox, all works as it previously did.

the setup is this:
<telerik:RadScheduleView.DragDropBehavior>
<localScheduler:ScheduleViewLevel1DragDropBehavior />
</telerik:RadScheduleView.DragDropBehavior>

public class ScheduleViewLevel1DragDropBehavior : ScheduleViewDragDropBehavior
    {
        public override bool CanStartDrag(DragDropState state)
        {
            return true;
        }
        public override bool CanResize(DragDropState state)
        {
            return false;
        }
        public override bool CanDrop(DragDropState state)
        {
            //...
                return true;
        }
        public override void Drop(DragDropState state)
        {
            //...
        }
}

On the Appointment template I used                 telerik:DragDropManager.AllowDrag="True"

Everything was working ok before I updated the dlls , now none of the override methods in the ScheduleViewDragDropBehavior  are hit. 

Nasko
Telerik team
 answered on 22 Jan 2015
9 answers
117 views
My WPF app allows users to select between 4 accent colors. When they do, I update the Office2013Palette colors accordingly. On my own development machine this is working great: as I change the Office2013Palette all the colors in the app are updated in real-time. But when I deploy the application on Citrix the colors do not change immediately. Instead, it seems that the controls are only updated as they are reloaded/redrawn, for example, when switching between pages in the application.

Is there a way to perhaps force an update of the colors?
Sia
Telerik team
 answered on 22 Jan 2015
5 answers
199 views
Hello,

I'm using my own Collection Implementation and bind this to GridView 
public class BindingTypedList<T> : Collection<T>, INotifyCollectionChanged
{
    publicvoid AddRange(IList<T> items)
    {
        foreach(T item in items)
        {
            this.Add(item);
        }
        FireCollectionChanged(items);
    }
     
    public void FireCollectionChanged(IList<T> items)
    {
        try
        {
            if (CollectionChanged != null)
                CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items.ToList()));
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
        }
    }
    public event NotifyCollectionChangedEventHandler CollectionChanged;
}
I have an exception in FireCollectionChanged Funktion:

---------------------------
Index must be within the bounds of the List.


Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)


   at System.Collections.Generic.List`1.Insert(Int32 index, T item)


   at Telerik.Windows.Data.KeyedCollection.Insert(Int32 index, Object value) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\KeyedCollection.cs:line 179


   at Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(NotifyCollectionChangedEventArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1476


   at Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1340


   at Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1817


   at Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Collections\QueryableCollectionView.cs:line 1797


   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\WeakEvents\WeakEvent.cs:line 33


   at FileExplorer.ViewModel.BindingTypedList`1.FireCollectionChanged(IList`1 items) in D:\Y\IZTMediaContainer\IZTMediaLibrary\ViewModel\DirInfo.cs:line 65
---------------------------


Could you please help me.
Ivan Ivanov
Telerik team
 answered on 22 Jan 2015
1 answer
326 views
Hi Team,

Does anyone know if there is a way of getting the DialogResult without having to put the result in yourself?  

Just a basic result like Ok, and Cancelled for a dialog kind of window will do.

Is/should this be  possible?

Thx,

Richard

Kalin
Telerik team
 answered on 22 Jan 2015
8 answers
460 views
Hello

I need some ToolTips for the column headers in a RadGridView. I specified the following:
<telerik:RadGridView.Resources>
    <Style TargetType ="{x:Type telerik:GridViewHeaderCell}">
        <Setter Property="ToolTip" Value="{Binding Content, RelativeSource={RelativeSource Self}}"/>
    </Style>
</telerik:RadGridView.Resources>

and for th column:
<telerik:GridViewDataColumn Header="Type"  DataMemberBinding="{Binding Path=DriveType}" ToolTip="Drive Type" />

As soon as i hover over the column header, the app crashes with:
    "Specified element is already the logical child of another element. Disconnect it first."
I get the same result if i put the style into the Window.Resources.
What do i have to do?

Thanks for help
Peter
Stefan
Telerik team
 answered on 22 Jan 2015
7 answers
561 views
There really should be be a Click and Command on Tile. Without it you have to go through the hassle of creating a button with a modern flat style ControlTemplate. Or is there another way?
Boris
Telerik team
 answered on 22 Jan 2015
1 answer
131 views
Hi There

I'm loading locations from memory and creating PolylineData and total such PolylineData being created are around 3K, and adding each PolylineData object to the VirtulizationLayer, in a loop.

for (i = 0; i < 3000; i++)
               {
                   LoadZones();
               }

Ignore the fact that i am creating all PolylineData element on same location in example below,what I'm trying to highlight is need to create them in loop and add them.

protected void LoadZones()
       {
           PolylineData polyline = new PolylineData()
           {
               ShapeFill = new MapShapeFill()
               {
                   Stroke = new SolidColorBrush(Colors.Red),
                   StrokeThickness = 2,
                   Fill = Brushes.Blue,
               }
           };
           LocationCollection points = new LocationCollection();
           points.Add(new Location(-20.0791497684858, 57.5683593750001));
           points.Add(new Location(-20.04819100048355, 57.6390838623048));
           points.Add(new Location(-20.082374288709, 57.6507568359376));
           points.Add(new Location(-20.0791497684858, 57.5683593750001));
 
           polyline.Points = points;
           this.visualizationLayer.Items.Add(polyline);
       }

The load is quick, but there is performance loss in Zoom and Panning.

1. Just like we can add heavy shape files into VisualizationLayer.VirtualizationSource using MapShapeDataVirtualizationSource AychReader,can we add PolylineData framework elements similarly.

this.mapShapeDataReader.SourceCollection.Add(
                      new AsyncReaderSource()
                      {                         
                          //Add PolygoneData Object 
                      });

If not , what would be best approach to add large numbers of PolylineData framework elements to Virtualization Layer dynamically.without performance loss.

Thanks In Anticipation



Petar Mladenov
Telerik team
 answered on 22 Jan 2015
5 answers
777 views
I'm trying to make a tooltip show up on a RadGridView. I'm grouping the data by the client number. Probably the issus is that I don't understand how the tooltip will work in the RadGridView when grouping. I thought that, for example, if the user passes the mouse over a cell for the client's first name, then it would show "First Name". Am I wrong about that?  Cutting out all but the relevant XAML, here's what I've got:

<telerik:RadGridView Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Left"
                     DataMember="ClientNumber" ItemsSource="{Binding}" AutoGenerateColumns="False"
                     IsReadOnly="True" ShowColumnHeaders="False" ShowGroupPanel="False"
                     IsFilteringAllowed="False" Name="grdSearchResults" AutoExpandGroups="True" FontSize="16"
                     >
  <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn UniqueName="ClientNumber" ToolTip="Client Number" />
    <telerik:GridViewDataColumn UniqueName="LastName" ToolTip="Last Name" />
    <telerik:GridViewDataColumn UniqueName="FirstNames" ToolTip="First Name"/>
    <telerik:GridViewDataColumn UniqueName="CaseNumber" ToolTip="Case Number"/>
    <telerik:GridViewDataColumn UniqueName="DateOfBirth" DataFormatString="{}{0:d}" ToolTip="DOB" />
    <telerik:GridViewDataColumn UniqueName="InterviewDate" DataFormatString="{}{0:d}" ToolTip="Interview Date" />
  </telerik:RadGridView.Columns>
    <!-- other stuff -->
 </telerik:RadGridView>
Boris
Telerik team
 answered on 22 Jan 2015
2 answers
130 views
Hello

I would like to know if this gap in right side of the tab header its supposed to exist.
If it is, how can I remove it? I want the same behavior as in office 2013.
Maurício
Top achievements
Rank 1
 answered on 21 Jan 2015
1 answer
106 views
I am using a radPanelBar like the one here:

http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/simple/defaultcs.aspx

I am using it to display an RSS feed coming from another website. I have 3 tabs to display 3 different feeds.

What I need to do now is to make custom configuration for the non programmer back end sitefinity user where they can go and select which tab from this PanelBar  widget they want to display.

How do I go about building this?
Hristo Valyavicharski
Telerik team
 answered on 21 Jan 2015
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?