Telerik Forums
UI for WPF Forum
3 answers
93 views
Hi,

I want to design a grid which will display the values as in the attached image. Column headers and row headers have to be populated dynamically, Since i am following MVVM-Wpf pattern i will bind it through my observsable collection. How can i acheive this?
Subash
Top achievements
Rank 1
 answered on 30 Jan 2013
0 answers
82 views
Vertical orientation blocks both vertical and horizontal scrolling; None blocks only horizontal scrolling for some reason. Bug?
Example
Maxim
Top achievements
Rank 1
 asked on 30 Jan 2013
1 answer
113 views
I'm using RadWindow as ModalDialog in a WPF application. The content of the window expands with Expander.
When I set RadWindow property TextOptions.TextFormattingMode="Display", window stops to change its size automatically and cut my content.

Without setting this property, auto resizing works fine.

Example for reproducing a bug:
<telerik:RadWindow x:Class="TelerikSamples.RadWindowTest"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   TextOptions.TextFormattingMode="Display">
    <Grid>
        <Expander Header="Expand me">
            <StackPanel>
                <TextBlock Text="Text1"/>
                <TextBlock Text="Text2"/>
                <TextBlock Text="Text3"/>
            </StackPanel>
        </Expander>
    </Grid>
</telerik:RadWindow>

Vladi
Telerik team
 answered on 30 Jan 2013
3 answers
109 views
Hi

1) I have a requirement to display numeric data in the grid (this must be read-only), and in the first cell of each column I need to display a "unit of measure" (e.g. "cm", mm", "m", etc). Additionally, when the user clicks on this cell it should display a combobox, allowing the user to change that column's measurement unit (selecting an item will involve recalculating the data that is bound to the grid). So my question is - is it possible to mix content in a column like this, i.e. numeric data in some cells, and a combobox in another cell? Can you suggest a way to achieve this?

2) I want the ability to right-click a cell and bring up some kind of popup or panel containing a simple form (various controls to manipulate that cell's contents). I've found how to select the cell that has been right-clicked, but is there a way that I can position the popup/panel over that cell? Or am I best just using a WPF Popup control with Placement="MousePoint"?

3) In some cells we need to provide a visual indication of the validity of the data, but rather than use colours to do this, we would like to display an image/icon alongside the numeric value. Is this possible?

Thanks in advance
Andrew
Pavel Pavlov
Telerik team
 answered on 30 Jan 2013
5 answers
123 views
Hi all, 
I've problems to connect to Adomd OLAP server since version 1307 (also 1314 of yesterday). 
Have you perhaps changed something in connection parameters and methods?

I configure the provider by this way:

Session.OlapProvider = new AdomdDataProvider
{
    ConnectionSettings = new AdomdConnectionSettings()
    {
        ConnectionString = Settings.Default.OlapConnString,
        Database = Settings.Default.OlapDatabase,
        Cube = Settings.Default.OlapCube
    }
};

...then the problem is on following line of my code:

this.pivot.DataProvider = Session.OlapProvider;

the error is System.NullReferenceException but I can't know where is in PivotGrid sourcecode.

Before 1307 internal release all works fine...
Please, can you help me?

EDIT: Sorry, I have specified the wrong title that is ADOMD provider connection problems: if you can, change it, thanks!

Many thanks!
Davide
purdav
Top achievements
Rank 1
 answered on 30 Jan 2013
1 answer
169 views
When using ExportToImage (with the WPF Q3 2012 SP1 version) on a diagram with some shapes selected, the resultant image has the selected shape connectors rendered. See attached screen capture as an example. 

I have tried to DeselectAll(), setting IsConnectorsManipulationEnabled false and setting  IsManipulationAdornerVisible false just before exporting but none had any effect.

So is there a way of exporting the shapes without rendering the connectors of selected shapes ?

Many Thanks,








 
Zarko
Telerik team
 answered on 30 Jan 2013
5 answers
388 views
Hi,

When I tried to copy mulitple rows and cells from RadGridView to MS Excel I found out that the line breaks in cell seemed removed. All statements in the cell present in one single line after pasting into MS Excel cell. Is there a solution to reserve the line breaks in the cell after copy/paste ?

BTW Last time I got confirmation that the copy of RadGridView will only contains plain text and the font size and font family will not be copied at all. Is that supported in latest version ?

Thanks,
Alex
Dimitrina
Telerik team
 answered on 30 Jan 2013
11 answers
505 views
Hello,

I am using WPF 4.0 and Prism 4.0 with MEF and the latest Radcontrols for WPF. I have 15 core modules containing mostly RadGridViews and RadCharts. These 15 modules are implemented as prism views in a single Window. All modules stay loaded as the application is expected to be long running. Three of the views toggle to a secondary view because I ran out of real estate on the screen. 

The application is a read only dashboard so I am using MVVM without any command bindings. Viewmodels contain an ObservableCollection of the data class and bind to the Itemsource of the control. All Telerick controls are updating as the data source updates and seem to be operating fine.

However, I am experiencing a heavy memory leak that is mostly in Telerick code.

My profiler lists these classes as the highest offenders:
Telerick.Windows.Data.QueryableCollectionView
Telerick.Windows.Data.CompositeFilterDescriptorCollection
Telerick.Windows.Data.SelectDescriptorCollection
Telerick.Windows.Data.CompositeFilterDescriptor

Before each update I call Clear() on the ObservableCollection in the Viewmodel but this doesn't seem to help. I derive the Viewmodel from INotifyPropertychanged but it doesn't help and is not needed for update since the ObservableCollection takes care of it. If I raise the property changed event the leak only increases.
 
I have traced references in my profiler back to the shell and the prism region which live for the lifetime of the application.

Has anyone experienced this behavior? Are Telerick controls known to leak memory in Prism applications? This must be common scenario for Telerick controls althought I have found little on the web in regards to a Prism memory leak so thought I would post here.

Thanks in advance for any help.
 Victor
Mark
Top achievements
Rank 1
 answered on 29 Jan 2013
1 answer
148 views
Hello,

i am trying to resize a radPane to fit its content when it's state changed to floating. I read in this forum that i should get the parent window and set the size of the parent toolwindow manually, but i cannot compile it:

'TelerikRadPaneTest.CustomPane' does not contain a definition for 'GetParentToolWindow' and no extension method 'GetParentToolWindow' accepting a first argument of type 'TelerikRadPaneTest.CustomPane' could be found (are you missing a using directive or an assembly reference?)



According to the official API the method should be in the assembly i am using:
2012.3.1129.40 Telerik.Windows.Controls
2012.3.1129.40 Telerik.Windows.Controls.Data
2012.3.1129.40 Telerik.Controls.Docking
2012.3.1129.40 Telerik.Controls.Navigation


MainWindow.xaml

<Window x:Class="TelerikRadPaneTest.MainWindow"
        xmlns:c="clr-namespace:TelerikRadPaneTest"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel>
        <telerik:RadDocking PaneStateChange="RadDocking_PaneStateChange_1" telerik:AnimationManager.IsAnimationEnabled="False" HasDocumentHost="False" Margin="0,50,0,0" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"  Grid.RowSpan="2" telerik:StyleManager.Theme="Windows8" BorderThickness="0">
 
            <telerik:RadSplitContainer telerik:ProportionalStackPanel.RelativeSize="120, 200" MinWidth="450" InitialPosition="DockedLeft" telerik:StyleManager.Theme="Windows8">
                <telerik:RadPaneGroup>
                    <c:CustomPane CanUserPin="False" CanUserClose="False">
                        <ScrollViewer>
                            <TextBlock Text="Very Long Scrollable Text"/>
                        </ScrollViewer>
                    </c:CustomPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </DockPanel>
</Window>

MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
 
namespace TelerikRadPaneTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void RadDocking_PaneStateChange_1(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            var radDock = sender as RadDocking;
            if (radDock.IsLayoutChanging)
            {
                var pane = e.OriginalSource as CustomPane;
                if (pane != null)
                {
                    var scrollviewer = pane.Content as ScrollViewer;
                    var view = scrollviewer.Content as TextBlock;
                    Size size = new Size(view.ActualWidth, view.ActualHeight);
                    Point loc = radDock.PointToScreen(new Point(0, 0));
 
                    //start, this won't compile
 
                    var win = pane.GetParentToolWindow();
                    //win.Width = size.Width;
                    //win.Height = size.Height;
 
                    //end
                }
            }
        }
    }
}

CustomPane.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telerik.Windows.Controls;
 
namespace TelerikRadPaneTest
{
    public class CustomPane : RadPane
    {
        public CustomPane()
            : base()
        {
            base.ContextMenuTemplate = null;
        }
 
        protected override void OnMouseEnter(System.Windows.Input.MouseEventArgs e)
        {
            this.ChangeVisualState(true);
        }
 
 
        protected override void OnMouseUp(System.Windows.Input.MouseButtonEventArgs e)
        {
            base.OnMouseUp(e);
 
            if (!this.IsPinned)
            {
                this.IsPinned = true;
            }
        }
 
 
    }
 
}
KA
Top achievements
Rank 1
 answered on 29 Jan 2013
2 answers
121 views
I have added a text box into a menu with the following code. 

<telerik:RadMenuItem x:Name="EmployeeLookupMenuItem" StaysOpenOnClick="True" >
     <telerik:RadMenuItem.Header>
          <StackPanel>
               <telerik:RadWatermarkTextBox Name="EmployeeLookupTextBox" KeyUp="EmployeeLookupTextBox_KeyUp" WatermarkContent="Employee ID" Width="100" />
          </StackPanel>
     </telerik:RadMenuItem.Header>
</telerik:RadMenuItem>

The text box appears however when I click in it to type something it will only stay in focus while the mouse button is down. As soon as I release the mouse button it loses focus and I can no longer type in the box.

Why can I not type in the textbox?
Dev
Top achievements
Rank 1
 answered on 29 Jan 2013
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?