Telerik Forums
UI for WPF Forum
3 answers
321 views
Hi there,

We have an application that uses the RadRichTextBox multiple times in the same dialog, one for each row of data. Each RadRichTextBox makes use of spellchecking. What we've found is that with spellchecking enabled, the memory is not released when the dialog is closed, while it is mostly reclaimed when spellchecking is disabled.

I might be wrong, but what I've figured from using ANTS Memory Profiler is that it seems to be attributed to the DataChanged event on the SpellChecker; the event doesn't seem to be unsetting when the host object should be disposed. This appears to be causing all related controls to remain in memory.

As this control is heavily used in our app, the problems quickly add up, and we've seen OutOfMemoryExceptions occur. The attached file shows the ANTS results. Notice the memory usage between the blue and red markers at the top - the rise in memory usage is attributed to repeatedly opening and closing the same item.

Any assistance with this would be greatly appreciated.
Alex
Telerik team
 answered on 09 Oct 2012
1 answer
102 views
Hi,  
      I have found an issue with find and replece functionality. Actually while find and replace process the text box does not copy the format and styles while replacing text in Replaceall command. It does work with replace commond but with ReplaceAll its not. Can any one suggest me some thing in this regard thanks.
Vasil
Telerik team
 answered on 09 Oct 2012
2 answers
179 views
Hello, I have a WCF Web Service, that makes a SQL query  to a data base and returns  a DataSet with the data.
In my WPF browser app I have a gridView and it's ItemsSource is the DataSet that the service returns, at first I got this code:

  if (grid.ItemsSource == null)
  {
      //Creates the reference for the duplex Service
      InstanceContext instanceContext = new InstanceContext(new CallbackHandler());
      ServiceReference1.ServiceDuplexClient client2 = new ServiceDuplexClient(instanceContext);
       
      this.Cursor = System.Windows.Input.Cursors.Wait;
      //Call the service functon that returns the DataSet
      DataSet ds = client2.EventSummary();
      this.Cursor = System.Windows.Input.Cursors.Arrow;
 
      if (ds != null)
      {
          if (ds.DataSetName.Equals("OK"))
          {
              //If it's OK the DataSet is the ItemsSource of the grid
              grid.ItemsSource = ds;
          }
     }
}

It works fine, and does what it's supposed to do, the call to the service takes some moments, so I decided to change the cursor to a clock, but once I had it all working I like to change it for a busy indicator, so I added it to my code:

<telerik:RadBusyIndicator x:Name="busyIndicator" BusyContent="Loading data...." Grid.ColumnSpan="3" Grid.RowSpan="3">

a
public partial class Page1 : Page
{
   //Declare my background worker
    BackgroundWorker workerOperAct = new BackgroundWorker();
     
     public Page1()
     {
     InitializeComponent();
        workerOperAct.DoWork += this.WorkerOperActDoWork;
     workerOperAct.RunWorkerCompleted += WorkerOperActRunWorkerCompleted;
     }
     
     private void WorkerOperActDoWork(object sender, DoWorkEventArgs e)
    {
        //Create the reference for the service
        InstanceContext instanceContext = new InstanceContext(new CallbackHandler());
     ServiceReference1.ServiceDuplexClient client2 = new ServiceDuplexClient(instanceContext);
        //Call the service function that returns the DataSet
     DataSet ds = client2.EventSummary();
     if (ds != null)
     {
          if (ds.DataSetName.Equals("OK"))
              {
                grid.ItemsSource = ds;
              }
      
}
  }
    void WorkerOperActRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
    {
        grid.Visibility = Visibility.Visible;
           this.busyIndicator.IsBusy = false;
    }
    //More code....
}

It's the same code, and it should work, but when I try to call the service:
DataSet ds = client2.EventSummary();

I get an exception:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in Unknown Module.
Additional information: Index was out of range. Must be non-negative and less than the size of the collection.

If I remove the busy indicator and the background worker it works fine and I can't understand what's happening, I have no clue,
I hope somebody can help me.
Thanks!!

Rocio
Top achievements
Rank 1
 answered on 09 Oct 2012
5 answers
187 views
I create an RadChart in the code and i want to export it to a file "png".
I disabled animations!

Now the point is in PieSeriesDefinition & LineSeriesDefinition this is correctly working, but in the BarSeriesDefinition & StackedBarDefinition is painting everything except of the bars!

See screenshots..

Any clue why this could occur? I think the BarSeries has some additional Animations?


Nikolay
Telerik team
 answered on 09 Oct 2012
1 answer
271 views

when i use the chart,and use chart.Series[0].ItemsSource = tempDrw ( here the tempDW is a double type array; to draw the line like the attachment.

but i have a problem: when the data in the tempDrw change but the chat can not updata.

Petar Marchev
Telerik team
 answered on 09 Oct 2012
6 answers
168 views
I have a scatter series where all the values are aligned at Y == 1.0. The RadChart is inside a grid with a gridsplitter controlling the space available for the RadChart. Now, if I scale the view vertically, sometimes values are displayed incorrectly (see red triangles in the example screenshots below). This issue doesn't appear always, but often enough to be a serious problem for us. If the problem occurs, the only way to fix it is to resize the RadChart again, horizontally (always fixes the problem) or vertically (usually fixes the problem, sometimes the problem reappears).

We are not changing the data bindings or anything like that, we are simply rescaling the grid view with the gridsplitter. With the data in the screenshots it is very easy to see that triangles were rendered at incorrect Y-values. But we have other visualizations where the scatter data is not aligned to a single Y axis value and we can't afford the items to be displayed at incorrect values!

I'm limited to version Q2 2011, what can we do to fix this?

   - Jussi

View opens:


After scaling vertically:


And after additional scaling:


Here's an example of the blue and red scatter series, both using exactly the same data binding:


Obviously, this is not acceptable.
Ves
Telerik team
 answered on 09 Oct 2012
3 answers
229 views
We are currently using the RadPropertyGrid control to display information for different types of Business Objects. We're also using the Command pattern to support undo / redo functionality for certain actions (adding a new Business Object, removing a Business Object, etc.).

What we would like to be able to do is somehow hook our RadPropertyGrid into our Undo/Redo Service. We have considered listening to the PropertyChanged event of the object that is currently being display through the RadPropertyGrid, but wanted to see if anyone else had tackled this problem before, or could point us in the correct direction.

Any help would be greatly appreciated.

Thanks,
Derrick
Vlad
Telerik team
 answered on 09 Oct 2012
2 answers
559 views
Very simple question, but I'm not sure how to do it with the Telerik MaskedInput controls.  How do you clear the control?  For example, I'm using a RadMaskedTextInput to collect social security numbers.  The Mask property is set to "d3-d2-d4".  If I want to clear the control do I set the Value property to "000000000"?  Or do I set the Text property to "___-__-____"?  Or is there some other property that I should use instead?  I've tried looking for a Clear() method of the control, but there doesn't appear to be one, unless I've missed it.

I'm using VS 2010 Premium, .NET 4.0, and 2011 Q2 versions of the Telerik controls.
Rod
Top achievements
Rank 1
 answered on 08 Oct 2012
1 answer
850 views
What's going on with the RadPanes collection when clicking the Close (x) button from the pane header? RadPanes are being added through code. The RadPaneGroup.Items.Count property is incremented and decremented as panes are added and closed (x). However, the RadDocking.Panes.Count property only increments as new RadPanes are added programmatically and so I don't understand the relationship here. Shouldn't the RadDocking.Panes.Count property sum the total of all panes in the RadPaneGroups?

I've tried removing closed RadPanes in the RadDocking_Close event by clearing the RadDocking.ActivePane.Content, .Header, and .DataContext properties as previous forum posts suggest, but an "object not set to a reference" error is thrown when the RadDocking.ActivePane.RemoveFromParent method is called. Hence, I can't free up resources by clearing out closed panes when a pane is closed.

Further, the RadPaneGroup.Items.Count value is decremented by 1 for each RadPane that has its pinned stated changed to "unpinned," then incremented by 1 for each RadPane that becomes "pinned." This too is strange since the RadPane's are still in the group; just unpinned.
George
Telerik team
 answered on 08 Oct 2012
2 answers
172 views
I'm working with the Telerik 2011 Q2 WPF controls (the last version we got, although we will be renewing our license soon).  I'm trying to put a control on the form for gathering the client's social security number.  Initially I used the RadMaskedNumericInput, because that's what I thought I should for SSN.  I now realize that was a mistake.  Now I believe I have to use the RadMaskedTextInput control.  I've tried a Mask value of "###-##-####" and now I'm trying "d3-d2-d4", but I don't know that it makes much difference.

What does make a big difference is what comes from the database (SQL Server 2005) and what goes back to the database.  As it turns out, all of the SSN in the database have the "-" between the first 3 digits and the second 2 digits, and between the second 2 digits and the third 4 digits.  Thus, if the client had a SSN of 555-12-1212, that is exactly what's stored in the database.  That's what's got to be displayed, that's what's got to go back.  And of course its stored as a VARCHAR(11) in the database.  But when the data gets fetched from the database, what gets displayed in the RadMaskedTextInput control looks like this (using the same ficticious SSN): "555--1-2___"

That's not going to work at all.  What am I doing wrong and how do I fix it?  Here's the XAML:
<telerik:RadMaskedTextInput Name="radSocialSecurityNo" Mask="d3-d2-d4" VerticalAlignment="Center"
                                                             TabIndex="11" Value="{Binding Path=SocialSecurityNo}" SelectionOnFocus="SelectAll"
                                                             ValueChanged="radSocialSecurityNo_ValueChanged" LostFocus="radSocialSecurityNo_LostFocus"
                                                             TextMode="MaskedText"  InputBehavior="Replace" />

Rod
Top achievements
Rank 1
 answered on 08 Oct 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?