Telerik Forums
UI for WPF Forum
1 answer
96 views
Is there a control like a split button (button+menu) for use with the RadRibbonView? I am using the RadRibbonButtons of course, but one of them I would like to use as a split button and drop down a menu. Thank you...
Travis
Top achievements
Rank 1
 answered on 15 Jun 2013
9 answers
322 views

I have a RadGridView bound to ObservableCollection. This collection is constantly updated and on first binding the grid represent the data correctly. But then I click on one of the headers to sort the data in the grid. After that behaviors on adding a new row become as following:
-  the grid adds the row to the end of the list only, it doesn't sort data dynamically according sorting column;
- sometimes (often) the grid creates duplicate rows while underlying collection contains correct data;

I couldn't find in documentation any info that I should programmatically sort underlying collection each time after adding row or rebind it every time so the grid shows it correctly. What should I do to fix it or it\s a norm for Telerik Grid?

Carolina
Top achievements
Rank 1
 answered on 14 Jun 2013
0 answers
63 views
Hi.

We have an implementation of Drag&Drop of items from outlook to a treeview using the telerik DragDropManager.

xaml code:
<telerik:RadTreeView ItemPrepared="OnItemPrepared" .../>

code-behind:
        protected void OnItemPrepared(object sender, RadTreeViewItemPreparedEventArgs e)
        {
            if (e.PreparedItem.AllowDrop)
            {
                e.PreparedItem.DragEnter += OnPreparedItemDragEnter;
                e.PreparedItem.Drop += OnPreparedItemDrop;
            }
        }


We then have a function : OnPreparedItemDrop(object sender, DragEventArgs args)
...Where I want to launch a new dialog and add some metadata to the files dragged in.

When using a dialog.ShowDialog() the calling thread here freezes. This causes the source application(outlook) to be completely unresponsible until my dialog has been closed and the function returns. It also leaves the mouse cursor in "drag-drop" mode when hovering stuff outside my application.

I am fond of this style of opening and handlign dialog outputs:

if(dialog.ShowDialog == true)
{
    DoSomething();
}
DoCleanup();



The alternative I see at the moment is to add logic to the view cancel/close events to do cleanup, or mess with the dispatcher and threading. What is the proper approach here?
Jan Terje
Top achievements
Rank 1
 asked on 14 Jun 2013
1 answer
129 views
Hello,

I'm implementing a RadCartesianChart with dynamic ChartDataSource and data sampling.
Everything's fine but I'd like to sample via a sum function and not via the default average one.
So I created a new SumBarSeries which inherits from BarSeries as shown below :

public class SumBarSeries : BarSeries
{
    protected override ChartAggregateFunction GetValueAggregateFunction()
    {
        return new ChartSumFunction();
    }
}

There's a min, max, average, keepextremes,  first and last function but no sum function.
Is there a simple way to add such a function?
Furthermore is it possible to change dynamically the sampling function just like the old RadCharts without changing the BarSeries class (ie. SumBarSeries)?

Thanks,

Michel LACOMBE
Michel
Top achievements
Rank 1
 answered on 14 Jun 2013
3 answers
162 views
Hi,

I've been experimenting a little with the PersistenceFramework over the course of the day and I've found some, according to me,
mystic behaviour.

When the window containing my RadGridView closes I run this code:
var manager = new PersistenceManager();
var stream = manager.Save(dgOrderOverview);
 
using (var fileStream = File.Create(System.AppDomain.CurrentDomain.BaseDirectory + "\\objstore.hf"))
{
    stream.CopyTo(fileStream);
}

and when I open it up again the following code is run:
//Check if any persistence file exists, and if so, load the view
if (File.Exists(System.AppDomain.CurrentDomain.BaseDirectory + "\\objstore.hf"))
{
    var manager = new PersistenceManager();
 
    try
    {
        var fileStream = File.OpenRead(System.AppDomain.CurrentDomain.BaseDirectory + "\\objstore.hf");
        manager.Load(dgOrderOverview, fileStream);
        fileStream.Close();
    }
    catch (Exception ex)
    {
        System.Diagnostics.Debug.WriteLine(ex.Message, "MYAPPNAME");
    }
}
 
//Load Context Menu
RadContextMenu ctxMenu = new RadContextMenu();
RadMenuItem item = new RadMenuItem();
 
foreach (Telerik.Windows.Controls.GridViewColumn column in dgOrderOverview.Columns)
{
    RadMenuItem sitem = new RadMenuItem() { Header = column.Header, IsCheckable = true, IsChecked = true };
    sitem.SetBinding(RadMenuItem.IsCheckedProperty, new Binding("IsVisible") { Mode = BindingMode.TwoWay, Source = column });
    ctxMenu.Items.Add(sitem);
}
 
RadContextMenu.SetContextMenu(dgOrderOverview, ctxMenu);

For the sake of things it should be noted that I have a RadContextMenu loading in order to be able to show/hide columns in the RadGridView.

Now, here's to the tricky bit, I have a RadContextMenu where the user can set the visibility of the columns, and IF the user ONLY uses this, everything is fine and dandy, visibility properties as set as they should upon reload. However IF the user decides to rearrange the columns, the next time he/she opens up the window, ALL columns are gone, there's NOTHING there at all.

So in short:
* Show / Hide columns using the RadContextMenu bound to the RadGridView works fine, persistence is kept and loads nicely.
* Rearrange columns and the persistence is broken and no columns as viewable upon opening the window.

As a little twist, the columns are all visible in the ContextMenu and their visibility are set as they should, but the GridView doesn't display them.

A little help, please?

P.S
I run the following version of the Telerik components:
RadControls_for_WPF_2013_1_0527_DEV_hotfix
D.S
Johannes
Top achievements
Rank 1
 answered on 14 Jun 2013
1 answer
55 views
Hi,

Demo 2013 Q2 Final Issue Style Changing Touch Demo to Default, This Issue does not exist Demo 2013 Q2 Beta, Please see screenshot.
OS : Windows 8 x64

Thanks.
Stanislav
Telerik team
 answered on 14 Jun 2013
2 answers
251 views
Hi,

I'm Synchronization RadListbox and RadDataForm SelectedItem 0 not highlight i'm trying MS ListBox not problem.

Thanks.
<telerik:RadDataForm x:Name="dataForm" ItemsSource="{Binding Items}"/>
<telerik:RadListBox x:Name="ListBox" ItemsSource="{Binding Items}" SelectedIndex="0" />
 
  
 
        private ICollectionView _items;
        public ICollectionView Items
        {
            get
            {
                if (_items== null)
                {                   
                   Items = new QueryableCollectionView(new ObservableCollection<Contact>(RepositoryBase.Context.Contacts));
                }
                return _items;
            }
            set
            {
                if (Equals(value, _items)) return;
                _items= value;
                NotifyOfPropertyChange(() => Items);
            }
        }
Steve
Top achievements
Rank 1
 answered on 14 Jun 2013
1 answer
107 views
Hello,
Is it possible to scroll panels automatically ? I mean, for example, it changes panel every 10 seconds.

Thanks.
Pavel R. Pavlov
Telerik team
 answered on 14 Jun 2013
6 answers
419 views
Hi,

Is it possible to select the row in a grid when a context menu is opened by right clicking on that row?
Maya
Telerik team
 answered on 14 Jun 2013
2 answers
71 views
Hi,

I'm trying to figure out how to have individual RadPanelBarItems have their background colors changed when a user tabs through the RadPanelBar.  Currently when a user selects (left mouse click) a specific RadPanelBarItem, the color changes to orange (the default color); I want to be able to do the same if the user tabs to the item as well. The usage of IsTabStop and TabStop does not seem to work; I could perhaps be setting it incorrectly.   The following is a code snippet of xaml implementation:


 <telerikNavigation:RadPanelBar IsTabStop="True" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" VerticalAlignment="Stretch" x:Name="SummaryMenu" HorizontalAlignment="Stretch" Margin="0,-1,0,-1">

                    <telerikNavigation:RadPanelBar.Background>
                        <ImageBrush ImageSource="pack://application:,,,/Resources/Images/Left-Menu-Back.png" />
                    </telerikNavigation:RadPanelBar.Background>


                    <telerikNavigation:RadPanelBarItem IsExpanded="True" IsTabStop="True" BorderThickness="0">
                            <telerikNavigation:RadPanelBarItem.Header>
                                <TextBlock Text="VIEWS" Style="{StaticResource SmallMenuHeaderIconLabel}" />
                            </telerikNavigation:RadPanelBarItem.Header>

                        <telerikNavigation:RadPanelBarItem IsTabStop="True" TabIndex="1"  MouseLeftButtonDown="SummaryMenuDockingItemLeftButtonDownClick" MouseLeftButtonUp="SummaryMenuDockingItemLeftButtonUpClick" Keyboard.KeyUp="OnKeyPressEnterViewsMenuItem" Tag="MainViewLogicalConfiguration" IsSelected="True">
                                <telerikNavigation:RadPanelBarItem.Header>
                                    <StackPanel Orientation="Vertical">
                                        <Image Source="/Resources/Images/MenuIcons/MainView.png" ToolTip="Main" Style="{StaticResource SmallMenuIcon}"/>
                                        <TextBlock Text="Main" Style="{StaticResource SmallMenuIconLabel}" />
                                    </StackPanel>
                                </telerikNavigation:RadPanelBarItem.Header>
                            </telerikNavigation:RadPanelBarItem>

                        <telerikNavigation:RadPanelBarItem IsTabStop="True" TabIndex="2" MouseLeftButtonDown="SummaryMenuDockingItemLeftButtonDownClick" MouseLeftButtonUp="SummaryMenuDockingItemLeftButtonUpClick" Keyboard.KeyUp="OnKeyPressEnterViewsMenuItem" Tag="PhysicalLayout" >
                                <telerikNavigation:RadPanelBarItem.Header>
                                    <StackPanel Orientation="Vertical">
                                        <Image Source="/Resources/Images/MenuIcons/Physical-Configuration.png" ToolTip="Physical Configuration" Style="{StaticResource SmallMenuIcon}"/>
                                        <TextBlock Text="Physical Configuration" Style="{StaticResource SmallMenuIconLabel}" />
                                    </StackPanel>
                                </telerikNavigation:RadPanelBarItem.Header>
                            </telerikNavigation:RadPanelBarItem>
                        ......
                        ......
               </<telerikNavigation:RadPanelBar>

Thanks for the help,
Robert Quan
Robert
Top achievements
Rank 1
 answered on 13 Jun 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
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?