Telerik Forums
UI for WPF Forum
2 answers
143 views
I follow the example in the WPF Control Examples application and Telerik website http://www.telerik.com/help/wpf/raddraganddrop-within-radgridview.html . I was able to make it work with the sample "MessageViewModel" as the RadGridView.ItemSource. However, when I change the RadGridView.ItemSource to DataView (data is retreiving from DB as DataTable), I got error "Cannot insert external objects to this list." at line:

((sender 

as RadGridView).ItemsSource as IList).Insert(index, draggedItem);

Does this feature work with DataView as ItemSource? How do I need to change to make it work?

Thanks

 

Insight
Top achievements
Rank 1
 answered on 18 Sep 2012
8 answers
410 views
I saw this post: http://www.telerik.com/community/forums/wpf/tileview/tileview-item-header-background.aspx but it really seems overkill for such a simple property change. Is there a better(easier) way to just set the background bush for the header? For certain tiles that need to reflect a change I want to set the header background to a custom linear brush. I tried using a custom template but it only changed it for the text area and not the whole header item. I also tried the example attached in the other forum post but it didn't look correct, maybe cause we're using the metro theme?

Anyway, is there a solution I've overlooked?

Robert
Tina Stancheva
Telerik team
 answered on 18 Sep 2012
0 answers
99 views
Hi, I have got a GridView in Metro style. 
Why some column separator is disappeared? When I resize the window, some separators disappear and another appear.
Please see atache.
Thanks


// edited
RadGricView have got ColumnWidth="*"
Sergiy
Top achievements
Rank 1
 asked on 18 Sep 2012
5 answers
221 views
I am currently using the solution outlined this post http://blogs.telerik.com/vladimirenchev/posts/10-05-31/how-to-synchronize-your-ui-selected-items-with-your-data-context-using-mvvm-and-blend-behaviors-for-silverlight-and-wpf.aspx 

to set my SelectedItem and SelectedItems from a RadGrid to a property on my viewModel (this works great by the way -thank you). What I am trying to do now is the same approach for a child grid of that same grid. I need to set SelectedDetailItem and SelectedDetailItems I believe the same approach will work but I cannot access my SelectedDetailItem  and SelectedDetailItems properties (which belong to my view model) from this child grid. I simply cannot get them to bind.

I have tried a few different things such as neither of which have worked.

SelectedItem="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.
SelectedDetailItem}"

and

SelectedItem="{Binding SelectedDetailItem,ElementName=myViewName}"
 

Do you have any ideas on how to bind the SelectedItem from a child grid to a property on a view model?
papadi
Top achievements
Rank 1
 answered on 18 Sep 2012
2 answers
239 views
Hi,

I'm looking at using the Docking control in my application, I have used the RadDock in a WinForms app and was wondering if this works in a similar way? 

What I want to have is a RibbonBar where different views/windows can be loaded into the the RadDocking. is it possible to load views/windows this way or how should this be done.

thanks 

David.
Ivo
Telerik team
 answered on 18 Sep 2012
1 answer
101 views
Hi, how to add Additional Button and HyperLink in RadWindow Header?
see atach
Georgi
Telerik team
 answered on 18 Sep 2012
3 answers
146 views
Hi All,

I am using MVVM approach, I came across http://www.telerik.com/help/wpf/scheduleview-features-loadondemand.html and understood that VisibleRangeChangedCommandProperty is provided by Telerik library itself.

I would like to know what all command behavior properties are provided by Telerik Library.

Regards,
Kshamesh
Yana
Telerik team
 answered on 18 Sep 2012
2 answers
182 views
Hi,
    I am using RadDocking control in my prism application. I have created RadGroupPane addapter. Its working fine for a group pane if Its docked state, But if I change the state and try to add new view in my group pane then it throws an exception that index for region does not exist or out of index. "Insertion index was out of range. Must be non-negative and less than or equal to size.\r\nParameter name: index". is that a know issue, Can any one suggest me the solution for the problem please. The Adapter code is as follows:

public class DockManagerAdapter : RegionAdapterBase<RadPaneGroup>
{
protected override void Adapt(IRegion region, RadPaneGroup regionTarget)
        {
            region.ActiveViews.CollectionChanged += (s, e) =>
            {
                switch (e.Action)
                {
                    case NotifyCollectionChangedAction.Add:
                        foreach (var item in e.NewItems.OfType<RadPane>())
                        {
                            regionTarget.Items.Add(item);
                        }
                        break;
                    case NotifyCollectionChangedAction.Remove:
                        foreach (var item in e.OldItems.OfType<RadPane>())
                        {
                            item.RemoveFromParent();
                        }
                        break;
                    case NotifyCollectionChangedAction.Replace:
                        var oldItems = e.OldItems.OfType<RadPane>();
                        var newItems = e.NewItems.OfType<RadPane>();
                        var newItemsEnumerator = newItems.GetEnumerator();
                        foreach (var oldItem in oldItems)
                        {
                            var parent = oldItem.Parent as ItemsControl;
                            if (parent != null && parent.Items.Contains(oldItem))
                            {
                                parent.Items[parent.Items.IndexOf(oldItem)] = newItemsEnumerator.Current;
                                if (!newItemsEnumerator.MoveNext())
                                {
                                    break;
                                }
                            }
                            else
                            {
                                oldItem.RemoveFromParent();
                                regionTarget.Items.Add(newItemsEnumerator.Current);
                            }
                        }
                        break;
                    case NotifyCollectionChangedAction.Reset:
                        regionTarget
                            .EnumeratePanes()
                            .ToList()
                            .ForEach(p => p.RemoveFromParent());
                        break;
                }
            };


            foreach (var view in region.Views.OfType<RadPane>())
            {
                regionTarget.Items.Add(view);
            }
        }
protected override IRegion CreateRegion()
        {
            return new SingleActiveRegion();
        }
}

Regards,


George
Telerik team
 answered on 18 Sep 2012
3 answers
244 views
Hi there,

I'm using your ObservableItemCollection<T> and I have two issues with it. (v. 2012.2.607.40)

First, there's no constructor that takes an IEnumerable<T> or List<T> like the System.Collections.ObjectModel version it eventually inherits from. Though not a requirement, this is very useful for initializing a collection before doing anything else to it.

Secondly (and most importantly) there doesn't appear to be support for adding null items. I get a NullReferenceException when calling:

collection.Add(null);

The code is probably connecting to the item's PropertyChanged event, but a simple check for null during add/remove would allow support for null items.

I've extended the class to support the constructors, but I don't know overloading OnCollectionChanged or some other method will solve my issue. If so, please let me know what this method should contain.

On a slightly different topic, are the Suspend/Resume Notification methods called automatically on AddRange, InsertRange, and RemoveRange? Or do they need to be explicitly called?

Thanks!
Rossen Hristov
Telerik team
 answered on 18 Sep 2012
0 answers
112 views
Hi,

how can I achieve this look(attachment)?
-2 rows per record
-multiple columns(no groups)
Thanks!
Dmitrijs
Top achievements
Rank 1
 asked on 18 Sep 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
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?