Telerik Forums
UI for WinForms Forum
2 answers
338 views
Using version 2013.3.1127.40

Hi, i have a huge memory leak in the scheduler and am trying to figure out how to fix it.
I have a scheduler that's grouped by resources.  It's a medical application, the scheduler shows appointments.

On each appointment, i have heavily customized it with stack panels and buttons/labels etc to show different statuses and allow users to interact with it.  I do this in the schMain_AppointmentFormatting event.

The data is bound via a bindinglist of a custom objects i created.

The scheduler also refreshes itself on a 1 minute timer to get changes/new appts etc.
the refresh method clears the bindinglist and repopulates it.
I do this between a 
schMain.Appointments.BeginUpdate();
and
schMain.Appointments.EndUpdate();
schMain.SchedulerElement.Refresh();

eventually after about 35 refreshes the app locks up with an OOM.  There's nothing open in the app other than the scheduler which is just sitting there refreshing itself.  
I put a memory profiler on it and it appears all the custom stacklayoutpanel and labels etc i put on the appts aren't being cleaned up.  If there are 40 apps on the scheduler, after 30 refreshes i end up with thousands of labels still in memory,  10's of thousands of radpropertyvalue etc.

What's the correct way to dispose of my custom stuff when it gets redrawn?
I attached a shot of ants profiler with some of the leaked data if it helps.
Thanks!



Ivan Todorov
Telerik team
 answered on 29 Jan 2014
7 answers
496 views
Does the Telerik Panel control have built-in support for use as a collapsible panel?  Any code examples if it does?
George
Telerik team
 answered on 28 Jan 2014
1 answer
176 views
I make many to many relationship in erd diagram in sql server 2005 between car and driver as following
car table
driver table
car_driver table.
I need to make fleet management program. When I make forms in windows form are i make
 car form
driver form
car_driver form
When i insert data are creating three forms each form insert to related tables
car table car form
driver table driver form
car_driver table car_driver form
George
Telerik team
 answered on 27 Jan 2014
0 answers
287 views
Hello,

I did a search and added the code below to scroll to the selected row and works. But when I move my mouse over the grid it automatically scrolls to the top of the grid. The row is still selected but why does it do this? Can I do anything about it to stop doing this?

Below is my code. Thanks!
Warren

'Bind Grid Here
            Dim ConnString7 As String = "Server=xxxxx;Database=xxxxx;User Id=xxxxx;Password=xxxxx;"
            Dim SQLConn As New SqlConnection()
            Dim SQLCmd As New SqlCommand()
            SQLCmd.Connection = SQLConn
            SQLCmd.CommandType = CommandType.Text
            SQLCmd.CommandText = "Select SpecialInst, OrderID FROM SPP_SpecialInst ORDER BY OrderID"
            SQLConn.ConnectionString = ConnString7
            SQLConn.Open()
            Dim reader As SqlDataReader
            reader = SQLCmd.ExecuteReader()
            gvSpecialInst.MasterTemplate.LoadFrom(reader)
            reader.Close()
            SQLConn.Close()
'Settings for selecting a row and the scroll options
gvSpecialInst.AutoScroll = True
gvSpecialInst.Rows(5).IsSelected =
True
gvSpecialInst.Rows(5).IsCurrent = True
gvSpecialInst.TableElement.ScrollToRow(gvSpecialInst.Rows(5))
 





Warren
Top achievements
Rank 1
 asked on 25 Jan 2014
5 answers
656 views
I have multiple horizontal RadListViews on a user control. These RadListViews have ListViewDataItems dynamically added to them. When all the items have been added, by default the RadListView has scrolled to the end, ie. all the way to the right.

How do I prevent this or set the scroll bar to the start?

Andrey
Top achievements
Rank 1
 answered on 24 Jan 2014
1 answer
260 views
Hello,
I've been asked to integrate an exsisting component (a library the sends events about financial transaction) on a winfor application.
That library sends as an event a List of Item that are bound to a radgridcolumn via bindinglist.

Each time an event is fired I got this in my code

bindingSource.DataSource = tmrC.ViewableData;

I wish to keep the context menu open even if sometime the refresh rate of the data is quite rapid (1 sec or less) but as the Bindingsource is refreshed I got the contextmenu closed.

I don't know under winform which is the best approach, can I have a concurrent queue to put the data from the list and then (in some way) to update the grid?
 Or what?

Thanks in advance


George
Telerik team
 answered on 24 Jan 2014
1 answer
128 views

Hi Team,


   I want design the grid as per the attached screenshot. The infragistics grid have grid column show vertically. Please give any samples for this.



Thanks & Regards

Suresh

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jan 2014
2 answers
204 views
Hello Telerik support,

I hav a grid which binds an (Telerik Open Access) object source. Some columns have Expression Editors:

//  Attaching the datasource
radGridView2.DataSource = _activeBatch.LigdagenKlinischGefactureerds.OrderBy(c => c.RowNumber);
 
 
// Expression column definition:
GridViewTextBoxColumn b = new GridViewTextBoxColumn("B")
            {
                HeaderText = "B",
                EnableExpressionEditor = true,               
                Expression = @"IIF(ISNULL(PreviousNo,"""")<>No,""nieuw"",null)"
            };

When saving the datasource something strange happens. Just before do a SaveChanges I check the values of a specific row which should contain changed (evaluated) values:

radGridView2.Row[x].Cell["B"].Value = "nieuw", this is as expected for the evaluation of row X
(radGridView2.Row[x].DataBoundItem as MyBoundObject).B = null (???)


Additionally I have another question: If my datasource contains a value, the expression should not be evaluated. Is this possible? (maybe on a specific cell event?)

Kind regards,
Raoul

George
Telerik team
 answered on 23 Jan 2014
8 answers
500 views
Dear All,

Is it possible to have a radcomboboxitem of type separator between different items in the dropdown combo.

Best regards.
Waleed
George
Telerik team
 answered on 23 Jan 2014
1 answer
122 views
Hi telerik tim . My question is : how to change scheduler and calendar region and how to change month or day name in telerik.
Can I change the default date. as today's date in my country in 1392 = 2014 . how can I change these.
Thank you for everything.
George
Telerik team
 answered on 23 Jan 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?