Telerik Forums
UI for WPF Forum
5 answers
176 views
With the help of a sample application I found a memory leak in Richtextbox.
It just displays a Dialog with a RichTextBox and then closes the window. After closing a call to GC.Collect() is made.
If you repeat that (e.g. 15 times) than the consumed memory is growing.

Please, can you confirm it is a bug or tell me the solution?

sample project: Here
Boby
Telerik team
 answered on 31 Jan 2013
10 answers
382 views
Hi everyone,

I use a RadRichText box and I need to insert a Telerik.Windows.Documents.Model.Table object(It is generated in Runtime)
into a Document, and in each cell I add a placeholder using InlineUIContainer,
so the question is how can I disable editing of my cell that contains a placeholder,
because currently all my functionality works perfect but cells are editable.

Method below initializes a TableCell instance where a placeholder is injected.
private double InitDataCell(TableCell dataCell, DynamicColumnViewModel columnVm, bool isWidth100, double percent)
{
            double cellHeight = 0;
 
            dataCell.Tag = columnVm.DynamicCellData.TableID.ToString();
 
            if (isWidth100)
            {
                dataCell.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Percent, percent);
            }
            else
            {               
                dataCell.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Fixed, columnVm.Width);
            }           
 
            dataCell.TextAlignment = columnVm.Alignment;
            dataCell.VerticalAlignment = RadVerticalAlignment.Center;
            var paragraph = new Paragraph();
            paragraph.TextAlignment = columnVm.Alignment;
            dataCell.Blocks.Add(paragraph);
 
            dataCell.Background = columnVm.DynamicCellData.Background;         
 
            var tb = new TextBlock
            {
                Text = columnVm.Expression,
                Tag = string.Format("{0}{1}", DynamicTableCommon.DynamicTable.TABLE_TAG_ID_PREFIX, columnVm.DynamicCellData.TableID.ToString()),
                FontSize = columnVm.DynamicCellData.FontSize,
                Background = new SolidColorBrush(columnVm.DynamicCellData.Background),
                Foreground = new SolidColorBrush(columnVm.DynamicCellData.Foreground),
                FontFamily = columnVm.DynamicCellData.FontFamily,
                FontWeight = columnVm.DynamicCellData.FontWeight,
                FontStyle = columnVm.DynamicCellData.FontStyle,
                TextDecorations = columnVm.DynamicCellData.TextDecoration
            };
 
            tb.VerticalAlignment = VerticalAlignment.Bottom;
 
            tb.HorizontalAlignment = PlaceHolderReplaceManager.ConvertRadTextAlignmentToHorAlignment(columnVm.Alignment);
 
            System.Windows.Controls.Border border = new System.Windows.Controls.Border();
            border.BorderThickness = new Thickness(0);
            border.BorderBrush = Brushes.Transparent;
            border.Background = new SolidColorBrush(columnVm.DynamicCellData.Background);           
            border.VerticalAlignment = VerticalAlignment.Center;
            border.HorizontalAlignment = HorizontalAlignment.Center;
            border.Child = tb;
 
            border.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));        
 
            Size s = new Size(border.DesiredSize.Width + 1, tb.DesiredSize.Height - 1);
            var uic = new DynamicCellInlineUIContainer(border, s);                         
 
            paragraph.Tag = columnVm.DynamicCellData.TableID.ToString();
            paragraph.Inlines.Add(uic);
 
            cellHeight = uic.Height + 10;
 
            return cellHeight;
 }

and another question is - In what Table property can I save my ViewModel ID(table ID) value, because when
I try to save it in a Tag property, it dissapears when I do an export my Document(contains a table with Tag initialized property) to Html using HtmlFormatProvider?

Thanks in advance.
Petya
Telerik team
 answered on 31 Jan 2013
9 answers
263 views
Hello,

I'd like to show/hide a radpane following a user choice, store in my code.

When user clicks on menu "hide/show zoom"
  I set the ishidden property by program and it works.

Now, I'd like that my code boolean will be update when user close directly the radpane (x).

I use this code :
 
<telerik:RadSplitContainer InitialPosition="FloatingOnly"
                    telerik:RadDocking.FloatingLocation="250, 50" MinWidth="150" MinHeight="150">
                <telerik:RadPaneGroup >
<
telerik:RadPane CanDockInDocumentHost="False" CanUserClose="True" x:Name="paneZoom" 
                                     Header="Zoom" IsHidden="{Binding DisplayZoom, Mode=TwoWay}"

but, my DisplayZoom property is not setting.

Have you an idea ?
Aurore



M
Top achievements
Rank 1
 answered on 31 Jan 2013
7 answers
263 views
Hi,

From what I understand the purpose of data virtualization is to only keep a finite number of records in memory at any given time.  However, while experimenting I found that the ItemsLoading event only gets called while I scroll down to the bottom of the RadGridView.  Once I am at the final row and start scrolling back up it is no longer being called.  This has led me to believe that records are not being unloaded from memory once they have been scrolled out of view.

I am wondering if I am missing something as I do not see any cache size member to set how many things to hold in memory at one time.  Any guidance on how to properly utilize the VirtualQueryableCollectionView with the RadGridView would be greatly appreciated.  The example posted is for RIA services, but we are not using RIA.
Vlad
Telerik team
 answered on 31 Jan 2013
10 answers
247 views
Hello,

how can I change the Style of the FilterRow e.g. to change Background and remove Borders...
It would be great if you have some XAML CodeExamples for that!

regards
Maya
Telerik team
 answered on 31 Jan 2013
1 answer
567 views
Hi,

When I click on Overflow Button Inside the toolbar then it shows the remaining control which are not visible, here in this case I want to stop/disable the animation when it shows the overflow controls.
Could anyone please tell me how can I disable this animation.

Thanks,
KK
Petar Mladenov
Telerik team
 answered on 31 Jan 2013
17 answers
621 views
Hi All!

  I figured I would post here instead of a trouble ticket as this really is a quest for information more than anything else.  I am sure that you have probably been asked this somewhere by now; but I am not finding anything in the documentation or via the support links, so here it goes!

I have a GridView that is attached to a RadDataFilter and I would like to be able to store in a database the FilterDescriptors and the Logical operators that a user adds/changes/modifies.  I am having a hard time trying to figure out the bes data structure to use to accommodate the storing and retrieval of these filters.  My RadGridView is tied to a view in the database and these filters will be extremely important to keep for the filtering process.

Can someone make a recommendation as to the best approach?  Is there an easy way to "re-build" the RadDataFilter based on the string value found when assessing the values in this property: "radDataFilter.ViewModel.CompositeFilter.ToString()"?  If not a solution could be XML?  Just not sure what is less painful when attempting to store this controls data.  Perhaps I have to store the Binary for the object in the DB and rebuild?

Any assistance or guidance is greatly appreciated!

Thanks!

-Sean

Guru
Top achievements
Rank 2
 answered on 31 Jan 2013
1 answer
124 views
When the mouse moves over a row in a RadGridView I have to set some fields on the supporting viewmodel object so that visual objects in a different control using the same viewmodel are highlighted.

Is this doable with our current version of Telerik.Windows.Controls (2012.2.0725.40)?

Thanks,

Ari
Nick
Telerik team
 answered on 30 Jan 2013
1 answer
108 views
Hi,

There are certain meetings (Appointments) that has fixed timing, i.e. they need to be held at that time only. There are other meetings on the same day which may be held on any given time in a day.

I need to show the meetings with fixed timings first and then the meetings with no timings. I need to show them one below other (Not side to side). Even if two meetings have same timings, they need to be shown one below the other.

Let me know if this is possible or not.
Konstantina
Telerik team
 answered on 30 Jan 2013
5 answers
189 views
If I open any DOCX file, I get an error saying the file is locked and cannot be opened.  This is definitely not true.

I then pulled Telerik source code and ran.  I found that the error is in the Telerik.Windows.Documents.dll file.  The error is in Paragraph.cs.  The error is at line 409.  As you can see by the photo, the Levels only contains one item, yet it's trying to reference Item[1] which would be impossible.  Should be Item[0].

I can attach a DOCX file if no one else has this issue.
Mihail
Telerik team
 answered on 30 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?