Telerik Forums
UI for WinForms Forum
2 answers
92 views
Hello,
It's good if you add built-in support for UI testing tools like Automated QA's TestComplete and HP's QuickTest Professional and testdriven.net

Best regards
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 answered on 16 Feb 2008
1 answer
205 views
I have a requirement to left-align text in combo boxes, even if the text flows past the width of the control.  Q3 2007 SP1 defaults to showing item text right-aligned if overflowing the control.  Is there a setting to change this?

This behavior can be seen in the First Look (My Tunes) demo.  Choose Artist: "Sting", Album: "Brand New Day", Song: "7. Prelude To The End Of The Game".  Notice the song combo box reads "e To The End Of The Game" after losing focus.

Thanks!
Georgi
Telerik team
 answered on 15 Feb 2008
2 answers
181 views
Hello, we have a discovered a very major issue with what appears to be the Dock Manager while compiling under a specific version of csc..

I cannot provide all the details here, because this is part of an application with IP and no quick 'sample' has been made yet to demonstrate the problem. Basically I am hoping some light could be shed on the issue so we can determine the best course of action to move forward.

Here is the problem:

We have a DockManager on a form, that contains controls from another assembly. On some developer machines, we noticed that when the dock manager is 'activated' by clicking in the form area, the entire application freezes. On some other machines, this problem does not occur. When we copy the exe (not the assembly containing the controls) from the 'good' machine to the 'bad' one.. the freeze stops.

So far, we have narrowed down the issue to a specific version of the csc compiler:

The compiler that works:

Framework V2.0.50727
File Version: 8.0.50727.312
Product Version: 8.0.50727.312
Size: 69.0KB
Date Modified: 11/2/2006 10:34pm

The compiler that does not work:

Framework V2.0.50727
File Version: 8.0.50727.1433
Product Version: 8.0.50727.1433
Size: 78.4KB
Date Modified: 1/3/2008 3:30pm


This shows so far that the latest updates to Vistual Studio 2005 WHILE RUNNING UNDER VISTA result in an executable assembly where any user interaction with the DockManager will result in an application freeze/hang (no exception, simply a non-responding application).

Now, I have been able to reproduce the freeze by setting the Compatibility mode of the exe to Windows 2000.. executing this under vista will result in a freeze, even using the exe produced from the 'old' compiler.

And further, I have been able to prevent this freeze under W2K compatibility by setting this in the main func:

Application.SetCompatibleTextRenderingDefault(true);


However, this makes no difference if the exe is produced by the 'new' compiler.


At this point, we are taking drastic action and removing all DockManager's from our application - this is obviously not our preferred course of action, but at this time we see no other workaround. Any help/suggestions you can provide would be much appreciated!

Regards,

Capstone Technology
Julian Benkov
Telerik team
 answered on 15 Feb 2008
3 answers
158 views
When I add a right click menu to my grid via the ContextMenuStrip property, it works fine. Except when I right click on the filter bar. Then I get both menus.

Image : http://tinyimg.us/i/cqs1201802556v.jpg

Anyone have a fix for this? Other than waiting for the next release?
Jack
Telerik team
 answered on 15 Feb 2008
9 answers
229 views
Hi,

I have a GridView whose datasource is set to a bindingsource. When the application loads, the gridview should be empty because I have not set the datasource of the bindingsource yet. Instead, when I run the application I get an empty HeaderCellElement.

I've looked through your examples and noticed if I want to have the headers expand the entire length of the gridview I have to set the property, AutoSizeColumnMode to Fill. This works great but when I extend a header, the right most ones shrink. How I can make it so that when I extend a header, the others simply push right as opposed to shrinking?

Note: when I stretch a header all the way to the right and then shrink it, only the rightmost column header starts to stretch while the headers in between stay small.

Thank you for all of your help,
Michael
Julian Benkov
Telerik team
 answered on 15 Feb 2008
3 answers
175 views
I have a problem which seems to be related to adding a new TabItem to a TabStrip at runtime.
The problem doesn't occur on my computer, or on any other computers I've tested on (which have Visual Studio installed). But when I try running my application on a computer without VS, and without Telerik installed I get a crash:

EventType : clr20r3     P1 : calloperator.exe     P2 : 1.0.0.0     P3 : 47a72344
P4 : system.windows.forms     P5 : 2.0.0.0     P6 : 4333aefa     P7 : 1508    
P8 : 12f     P9 : system.arithmeticexception

I've limited the crash to this add statement below:

TabItem tab = new TabItem(channel);
tab.Name = channel;
radTabIRCChatStrip.Items.Add(tab);

Do you have any idea what this may be?

PS I have other TabStrips in the same application, but they are not being created at runtime, and they seem to be working fine.
Boyko Markov
Telerik team
 answered on 14 Feb 2008
1 answer
133 views
When using a mask on a zip code or phone number and trying to paste into that field I get the error:

Object doesn't support this property or method. When I debug it, it's breaking on your _FakeOnPropertyChange method. Any suggestions?
Boyko Markov
Telerik team
 answered on 14 Feb 2008
2 answers
191 views
after reading data for the treeview from database i use a recursive function which sets the image for each node. this takes a very long time because there is a huge tree...

is there a better way to set the same image for all the nodes of the tree?

below i've postet the two functions i use:

Private Sub fillTreeViewFromTemplate()
        oDBC.Open()
        Dim da As New MySqlDataAdapter("SELECT * FROM Filesystem ORDER BY FolderName", oDBC)
        Dim dt As New DataTable
        da.Fill(dt)
        oDBC.Close()

        Me.RadTreeViewFromTemplate.DisplayMember = "FolderName"
        Me.RadTreeViewFromTemplate.ValueMember = "FilesystemId"
        Me.RadTreeViewFromTemplate.ParentIDMember = "ParentId"
        Me.RadTreeViewFromTemplate.DataSource = dt

        'bilder setzen für alle knoten
        'Me.setTreeViewImages(RadTreeViewFromTemplate.Nodes)
End Sub


Private Sub setTreeViewImages(ByVal tnc As RadTreeNodeCollection)
        'für jede node das bild setzen
        Dim tn As RadTreeNode
        For Each tn In tnc
            tn.Image = My.Resources.folder
            Me.setTreeViewImages(tn.Nodes)
        Next
End Sub

andi
Top achievements
Rank 1
 answered on 14 Feb 2008
4 answers
128 views
Hello,

I'm using the Ribbonbar in my application (Q4 2006 version from VS Express Registration Benefits) on the mainform, which has now many tabs, buttons and other elements on its ribbon.
Using Visual Studio 2008 Pro, the form of my program opened in 1 minute, but after a full reinstallation of my system (Windows Vista Professionnal, 32 bits), I cannot open the mainform of my program anymore.

Whenever I try to open it with Visual Studio 2008, it tries to load it during 5 minutes, with Commit memory constantly increasing up to 1.1 Gb (as shown in Vista's Resources Monitor), and then VS shows an error saying "System.OutOfMemoryException", thrown on a random component in my form.

It seems that there is a memory leak with the designer and the radribbon when it has many items, but I don't know why I could open my project without any problem before and now I can't.

Do you know how I could open my project again ?
Language is C#.

Thank you.
Vassil Petev
Telerik team
 answered on 14 Feb 2008
6 answers
227 views
Hi,

I'm trying to prevent a dock panel beeing moved to top or buttom.

My App looks explorer like - but the "navigation pane" can be docked to the right or to the left.

I successfully handled to avoid "float" and other unwanted kinds of the panel.

My next problem was a user dragging the panel arround.
My first approach was to handel DockinStateChanging.
        private void rdmMain_DockingStateChanging(object sender, Telerik.WinControls.Docking.DockingChangingEventArgs e) {  
            if (e.DockableState != Telerik.WinControls.Docking.DockState.AutoHide && e.DockableState != Telerik.WinControls.Docking.DockState.Docked) {  
                e.Cancel = true;  
            }  
            if (e.DockObject.DockPosition != DockPosition.Left && e.DockObject.DockPosition != DockPosition.Right) {  
                e.Cancel = true;  
            }  
        }  
 
BUT - I always get the previous DockPosition in this event!

My next approach was to handle the already changed state.

        private void rdmMain_DockingStateChanging(object sender, Telerik.WinControls.Docking.DockingChangingEventArgs e) {  
            if (e.DockableState != Telerik.WinControls.Docking.DockState.AutoHide && e.DockableState != Telerik.WinControls.Docking.DockState.Docked) {  
                e.Cancel = true;  
            }  
        }  
        private void rdmMain_DockingStateChanged(object sender, DockingChangedEventArgs e) {  
            if (e.DockObject.DockPosition != DockPosition.Left && e.DockObject.DockPosition != DockPosition.Right) {  
                DockMenuTo(DockPosition.Left);  
            }  
        }  
 
 
BUT - I still get the previous DockPosition in this event!
This means I can't avoid that a user drags the panel to the top position,
since the position shown in the DockingStateChanged handler is the PREVIOUS position!!

So if dragged from left to top - it tells left!

I guess this is some kind of a bug.

Anyhow - is there a way to prevent Top / Bottom docking?
Or at least prevent dragging?

Regards

Manfred
Julian Benkov
Telerik team
 answered on 14 Feb 2008
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
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?