Telerik Forums
UI for WPF Forum
1 answer
387 views
I want to create an application that contains one or more sidebars that are "pinnable". I don't need any groups or sections, just a container that can be docked on any edge and and pinned open or float.

Is there a Telerik control that does this?
George
Telerik team
 answered on 18 Mar 2011
7 answers
54 views
Hi

If I undock a RadPaneGroup, the Pane always jumps to the rightmost Pane in the group. Can I stop this behaviour?

Thanks
Tom Davies
George
Telerik team
 answered on 18 Mar 2011
3 answers
157 views
Hi Support,

We have a requirement like select multiple items from combobox and bind it to collection.what ever items selected from combobox should be displayed in chart.Please provide some solution for this.Thanks in Advance.

BHASKAR
Konstantina
Telerik team
 answered on 18 Mar 2011
6 answers
1.0K+ views
How do i use the SelectionChanged in RadTabControl when using MVVM?
When I select a TabItem in a RadTabControl, I want to select a specific RadRibbonTab in my RadRibbonBar.
Tina Stancheva
Telerik team
 answered on 18 Mar 2011
1 answer
200 views
Hi!

I am using RadTransitionControl to perform transitions between heterogeneous views that generally contain pure WPF controls, but that sometimes also use interop-based controls.

I detected recently an unmanaged memory leak in my application when using RadTransition with a WPFChromium-based control (http://wpfchromium.codeplex.com). The application is stable when performing transitions between pure WPF controls. It is still stable when performing transitions between views that contain DirectShow-based controls. However, whenever I use WPFChromium in my transitions, there is a significant, constant unmanaged memory leak (about 20MB/hour with transitions occuring every 30 seconds).

If I take RadTransitionControl off my application, it becomes stable, even when using WPFChromium.

The interesting part is that it does not seem a transition-related problem, because if I keep setting the Content property always to the same view (i.e., the transition does not occur), the unmanaged leak persists. It seems that just using the RadTransitionControl as a container of WPFChromium triggers the leak.


I collected heap data with WinDgb, and there are two kinds of memory blocks leaking:

a) 48 bytes long blocks leaking about 100.000 units every hour. This is the code stack leaking those blocks:
        7744dd6c ntdll!RtlAllocateHeap+0x00000274
        6ebe13ff wpfgfx_v0300+0x000013ff
        6ebe7e69 wpfgfx_v0300!MilChannel_CommitChannel+0x0000008b
        6ebe8940 wpfgfx_v0300!MilChannel_CommitChannel+0x00000b62
        6ebe89bf wpfgfx_v0300!MilChannel_CommitChannel+0x00000be1
        6ebe891b wpfgfx_v0300!MilChannel_CommitChannel+0x00000b3d
        6ebe88ec wpfgfx_v0300!MilChannel_CommitChannel+0x00000b0e
        6ebedede wpfgfx_v0300!MilChannel_AppendCommandData+0x00000961
        6ebec992 wpfgfx_v0300!MilComposition_PeekNextMessage+0x00000078
        6ebec9b3 wpfgfx_v0300!MilComposition_PeekNextMessage+0x00000099
        6ebe73c8 wpfgfx_v0300!MilResource_SendCommand+0x000024d4
        6ebe7437 wpfgfx_v0300!MilResource_SendCommand+0x00002543
        6ebe74b6 wpfgfx_v0300!MilResource_SendCommand+0x000025c2

b) 3686384 bytes long blocks leaking about 2/3 units every hour. This is the code stack leaking those blocks:

        7744dd6c ntdll!RtlAllocateHeap+0x00000274
        73c62423 WindowsCodecs!WPF::ProcessHeapImpl::Alloc+0x00000016
        73c63491 WindowsCodecs!WPF::HrMalloc+0x0000004b
        73c663ba WindowsCodecs!CSystemMemoryBitmap::HrInit+0x0000006c
        73d0d5b9 WindowsCodecs!CLateBitmap::FinalizeBitmap+0x0000002e
        73d0d6b9 WindowsCodecs!CLateBitmap::CopyPixels+0x0000004a
        73d00f7b WindowsCodecs!IWICBitmapSource_CopyPixels_Proxy+0x00000023



Are you aware situations leading to unmanaged memory leaks with WPFChromium or any other C++ wrapper-based control? Do you suggest any work-around or further debugging?


Thanks!

Helder Pinto
Helder Pinto
Top achievements
Rank 1
 answered on 18 Mar 2011
3 answers
364 views

I have a RadGridView:

<Telerik:RadGridView Name="recordGrid"  ItemsSource="{Binding RecordList,Mode=TwoWay}" SelectedItem="{Binding CurrentRecord,Mode=TwoWay}" ShowGroupPanel="False" AutoGenerateColumns="True" AutoGeneratingColumn="RadGridView_AutoGeneratingColumn">
</Telerik:RadGridView>

As you can see, the grid is bound to a DataTable object called RecordList and the SelectedItem is bound to a DataRow object called CurrentRecord. The RecordList DataTable is generated dynamically and can have any combination of user-defined columns and rows. Because I don't know the columns ahead of time, I use AutoGenerateColumns to take care of that.

The first column will always be an ID column that identifies the row and is hidden from the user by canceling the AutoGenerateColumn event whenever the column header is "ID". The rest of the columns are user defined. 

Up to there, it all works. The problem comes when I need to create a custom column type to be auto-generated. Some columns, as defined by the user, need to display other UI controls such as buttons in the cell. To do this, I've created a RecordColumn class that extends Telerik.Windows.Controls.GridViewColumn. It is defined as follows:

public class RecordColumn : Telerik.Windows.Controls.GridViewColumn
   {
       public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
       {
           StackPanel cellData = new StackPanel();
           return cellData;
       }
   }

Nothing fancy at the moment. Just trying to get it working so all it does is return an empty StackPanel to go in the cell when it's created. 

Now, here's my AutoGeneratingColumns event code, which I use to instantiate the RecordColumn.

private void RadGridView_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
{
    String headerText = e.Column.Header.ToString();
    if (headerText == "ID")
    {
        e.Cancel = true;
    }
    else
    {
        if (!(e.Column is RecordColumn))
        {
            RecordColumn rc = new RecordColumn(); 
            rc.Header = headerText;
            e.Column = rc;
        }
    }
}

The first time the RadGridView is loaded, everything looks fine. The user-defined columns are displayed as expected. If I do anything that causes the RecordList DataTable binding to update (such as adding or deleting a row), the AutoGeneratingColumns event fires again and doubles the columns. I can keep doing this, causing the columns to double every time. 

I can trace the AutoGeneratingColumns event being fired each time and it always (except for the "ID" column) goes into the code that creates a new RecordColumn. I'm guessing that's where it's creating the extra columns each time. Looking through the e.Column object though, I don't see anything that tells me I don't need to generate this column again. Each time the column type is RadGridViewColumn even if I've previously changed them all to RecordColumn, so that doesn't work. 

I have verified that my DataTable on the back-end only contains one set of the columns. This is purely on the UI side. 

If I don't use the custom column, everything works fine and when I update the binding the columns don't duplicate. 

Vlad
Telerik team
 answered on 18 Mar 2011
1 answer
228 views
I'm using several RadTabItems who's content is loaded when the tab is selected the first time.

From a visual point of view, everything works fine, the right content is displayed. However, I would like to automate some UI tests on these RadTabItems which does not work.

-I see the RadTabItems with the UISpy
-If I select a RadTabItem, the correct content is displayed but the corresponding container in the UISpy is not shown. The UISpy is not notified about the changed content.
-If I open a pop-up in my application under test, close it, the UISpy sees the content of the RadTabItem
-If I simply replace the RadTabItem by a standard WFP TabItem, everything works as expected.


Hristo
Telerik team
 answered on 18 Mar 2011
1 answer
91 views
Hi,

I am developing a hierarchical data grid where by the values of the parent row can show/hide certain columns. I did setup a bindable value from the parent row's object  to the IsVisible property of the GridViewDataColumn but the binding never gets invoked even though all conditions are met correctly. How do I go about achieving this?

Thanks,
Farhan
Maya
Telerik team
 answered on 18 Mar 2011
1 answer
54 views
Hi, I am wondering, why ScheduleView is so much different to Scheduler?

So I have some questions:

1) Is there a way that ScheduleView's Timeline View (which is completely different) has the same look as the Scheduler's Timeline View?
2) The Scheduler provides events, which are fired, when the View Mode is changed (ActiveViewDefinitionChanged), or when the Selected View Start Date changed (SelectedViewStartDateChanged). Where are these events in ScheduleView?

Please answer me as soon as possible.

Thanks,
Ronald
Valeri Hristov
Telerik team
 answered on 18 Mar 2011
5 answers
174 views
Hey,

I can't display the correct x-axis date value in the itemtooltip.
Here are the interesting facts for you...

I have a chart with thousands of points so i use:
<telerik:AxisX AutoRange="True"...


That's why in my ItemToolTip the first value works and the last not (because of this link this link):
<telerik:LineSeriesDefinition ItemToolTipFormat="#X --> #DATAITEM.Date or #DATAITEM.Date{MM/dd/yyyy}"...


But I can't use #X because it's from double type and the result is something like "42k" - but not a date!

What kind of solution you can offer for my problem? Is there a posibility to convert the double to string inside xaml?
(i can't use codebehind...)

P.S. Sorry but I realized to late that I've posted this thread in WPF - its for Silverlight!!!
Evgenia
Telerik team
 answered on 18 Mar 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?