Hey,
i'm not quit sure if this is a bug, currently i'm working on server, so cant do debug test for this problem, because once it happen, all memory is in used and server is died, and i need reboot the server,
what the problem looks like is I'm setting up a radrichtextbox coontrol in c# code, which is looks like
and i'd like comment the width and height to make it fill the grid, and i can easily change the width and height by dragging the splitter(there is a splitter between 2 grids) , the trouble is once i comment height and width, the memory usage of the project will become to more than 400,000k (normally it's 100,000k) and my computer is died because run out of memory.....(so said!!! really need new RAM)
btw, once i uncomment that 2 lines, it's becomes all good...
let me know if there is any news or maybe alternative way to make richtextbox size can be auto-adjusted by raddocument
cheers
MENG
i'm not quit sure if this is a bug, currently i'm working on server, so cant do debug test for this problem, because once it happen, all memory is in used and server is died, and i need reboot the server,
what the problem looks like is I'm setting up a radrichtextbox coontrol in c# code, which is looks like
protected
RadRichTextBox getRadRichTextBox(
string
fieldname)
{
RadRichTextBox _radRichTextBox =
new
RadRichTextBox
{
Name = fieldname,
Margin =
new
Thickness(0),
HorizontalAlignment = HorizontalAlignment.Stretch,
VerticalAlignment = VerticalAlignment.Stretch,
//Height = DefaultValues.DEFAULT_TEXTBOX_HEIGHT,
//Width = DefaultValues.DEFAULT_TEXTBOX_WIDTH,
FontSize = 5,
BorderBrush = App.Current.Resources[
"Black"
]
as
SolidColorBrush,
BorderThickness =
new
Thickness(1)
};
return
_radRichTextBox;
btw, once i uncomment that 2 lines, it's becomes all good...
let me know if there is any news or maybe alternative way to make richtextbox size can be auto-adjusted by raddocument
cheers
MENG