Telerik Forums
UI for WinForms Forum
4 answers
102 views
Hi, I've a theme for all the application. Created another 2 themes that I want to apply on some cells on a gridview. Dinamically, depending of a parameter value I will apply to a cell one of the 2 themes on the cellformatting event. Is easy to say, but I can't get it done. Followed instructions on the Rad Winforms overview site regarding theme application, added a radthememanager, added my two themes but it does not work.

The themes where created on the VSB and saved as independen XML files, saving only two repositories that I need, a gradient and a shape. Is this correct? Or maybe I do need to save the full theme, nevertheless everyting else other than these 2 repository items are equal?

Thanks!
Yaroslav
Top achievements
Rank 1
 answered on 09 Mar 2012
1 answer
93 views
The ValueChanged event is not triggered if the property HorizontalScrollState = ScrollState.AlwaysHide
Ivan Petrov
Telerik team
 answered on 09 Mar 2012
5 answers
311 views
Hello.

I'm trying Telerik components and at the moment I'm testing the RadGrid. Surprisingly, the grid seems to be very easy to use but somewhat slow, when scrolling it. Am I doing something wrong or the grid is simply not that fast? When I say slow, I mean that the grid does about 8 fps with 3 columns in full screen, this makes the application look very sluggish. I got to knew Telerik from a software the company has installed, and the RadGrid this software has also suffers from slow speeds.

Thank you for any info on this subject.
Jack
Telerik team
 answered on 09 Mar 2012
5 answers
539 views
Hi,

we recently bought the latest version of RadControls for Winforms and we are using now Q1 2012 version.

I have a not-so-large data set to display using RadGridView, something like 200 rows and 30 columns. After the initial display I receive very often data udpate messages, that contains not all the data, but only the value to update (and the rowIndex and column name to locate the data to update).

For our business it's crucial to be able to update the displayed value immediately when the update message is received and notify that changing the cell style according to some business rules. (green if new value is bigger, yellow if it's equal or red if it's lower; also i need to change border color for that specified cell)

I'm trying using RadGridView in both bounded and unbounded mode to achieve my goal.

With bounded solution, when a message is received, I update the dataTable 
value (that is the data sorce) and I change the cell style using cellInfo.Style. In this case grid update seems to be a bit slow.
In unbounded mode I defined a custom column with contains cells of a custom type. I overridden the SetContentCore method and inside this method I recover cellInfo object for that cell and I use it to change the style of the cell. The problem is that when a specified value change for one cell, the entire row blink, since SetContentCore is raised for all elements for that row.
In both cases I use a timer that reset the cell style after a while. (unblink)

Before go furhter with code detail implementation, can you give me some tips about the best way to proceed? What is the best approach in order to achieve fastest data update with blinking?
Also, we need to open many RadGridView at the same time, so memory and CPU usage must be limited for each RadGridView.

Thank you very much in advance for your support.

Regards,
Lorenzo
Jack
Telerik team
 answered on 08 Mar 2012
3 answers
154 views
Hello,

I just updated to Q1 2012.

How can I solver this ?
Error    1    Assembly 'Telerik.WinControls.UI, Version=2012.1.301.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' uses 'Telerik.WinControls, Version=2012.1.301.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' which has a higher version than referenced assembly 'Telerik.WinControls, Version=2012.1.301.20, Culture=neutral, PublicKeyToken=5bb2a467cbec794e'    c:\Program Files (x86)\Telerik\RadControls for WinForms Q1 2012\Bin40\Telerik.WinControls.UI.dll


Thank you for your help
Jack
Telerik team
 answered on 08 Mar 2012
7 answers
335 views
Have recently upgraded to 2011 Q3 SP1 and have noticed a change in the behaviour of the DateTimePicker when entering a date manually (using the format "dd/MM/yyyy"). Previously when you entered "1/1/1" into a blank DateTimePicker the result would be "01/01/2001" as the initial key press in each section would overwrite the whole section. The behaviour has now changed so the initial keypress only adds to the right of each section, so "1/1/1" results in "11/11/9001" (as it edits the null date instead of overwriting it).

Is there anything I can do so it goes back to the old behaviour?  It is essential for our users to enter dates in with as minimal keystrokes as possible.
Peter
Telerik team
 answered on 08 Mar 2012
6 answers
350 views
Hello,

We purchased the licenses for Telerik WinForms components and having memory leaks. I've already read similar threads (performance considerations, increasing execution speed of Telerik assemblies), but it didn't solve my problem. Other then that, we verified the code against the following rules which are best coding practices that DEV teams must follow:
— objects that implements IDisposable must be disposed;
— grids must be wrapped with BeginUpdate & EndUpdate methods whenever they are getting changed (same holds true for RadTreeView);
— no excessive database connections;
— database connections are wrapped with C# "using" operator;
— time-consuming operations moved to background processes, which writes Trace/Debug messages when finished;
— custom themes are built in separate DLL and initialized in new thread which gets closed, when job is done.

The app itself represents MDI container with RadDock on it (Dock = Fill). All MDI child forms are opened in RadDock's new tab. The default tab is Desktop with a grid and 2 more Tool Windows: Tree View which is used as collapsible menu and Recent Activity at the bottom (in fact, similar control layout as VS2010 or SQL Management Studio). We are using custom Telerik themes, which are compiled into separate DLLs to gain the best performance and they are loaded in background worker process when the app starts.

Steps to reproduce (see attachments 1-5, in order they presented)
1. Starting the app (MDI container)
2. Choosing User List (form with single grid) from Tree View aka menu
3. User List View is loaded
4. Closing User List View
5. PROBLEM: Nevertheless form is disposed and it's not in the RadDock tool/window collection — consumed memory amount remained the same. Looping iterations from 2 to 4, will lead to memory leak (memory amount constantly grows)!

In addition to that, I would like to point that we're using MVP in WinForms. Base Form and UserControl classes are always disposing inner objects or in terms of MVP — presenters, when Form is getting closed. Here's the Trace log:
..
UserListView is initialized.
UserListView is loaded.
The thread '<No Name>' (0x2304) has exited with code 0 (0x0).
UserListView is disposed.
..

Finally, in attachment there's a screen from ANTS Memory Profiler. 


Please advice, how we could solve this problem? We spent some time before writing to support, so please be patient with my insistence.


Kind regards,
Ivan


Peter
Telerik team
 answered on 08 Mar 2012
9 answers
307 views
There is IsSelected property on cells and rows, but when I programically select row/cell, there is still one more selected (first row) which was there after grid initialization. I tried to deselect row by this, but with no result

 

if (radGridView1.CurrentRow != nullradGridView1.CurrentRow.IsSelected = false;

 

Svett
Telerik team
 answered on 08 Mar 2012
15 answers
754 views
Hi guys,

I'm trying to use a RadComboBox (window) in the main form of an application I'm developing.
As far a as I can see the autocomplete mode uses the entered text to filter those items starting with this text. I would like to go beyond this functionality by filtering those items which contains the entered text, not only at the begining but also in any place.

As an example, if I have a combobox containing cities and I write "lon" it should filter, not only "london" city but also "barcelona" (among others cities matching the filter).

Thanks in advance,

Martin.

Peter
Telerik team
 answered on 08 Mar 2012
4 answers
846 views
Hi,

I have a requirement to have a node with child nodes but for the child nodes not to be made visible to the user. It is really to keep the whole structure in the same place. I thought by making all child nodes and/or leaves visible=false this would mean that the parent node would not have an expand/collapse icon but this was not the case.

For example:

    Root
        Node A
            Section 1 (visible=false)
                Part 1 (visible=false)
                Part 2 (visible=false)
            Section 2 (visible=false)
                Part 1 (visible=false)
                Part 2 (visible=false)
                Part 3 (visible=false)
                Part 4 (visible=false)

I was expecting that "Node A" would not have expand/collapse as nothing was visible below it.

I found another forum entry that seemed to cover this but the attribute is no longer available;

"Disable expand icon and labeledit" - Jun 27, 2007

RadTreeNode node = this.radTreeView1.Nodes[0].Nodes["Search Folders"];  
node.StateImageIndex = -1;

Thanks,
Graham
Kenneth
Top achievements
Rank 1
 answered on 08 Mar 2012
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)
Chart (obsolete as of Q1 2013)
Form
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?