Telerik Forums
UI for WinForms Forum
3 answers
139 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
206 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
145 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
117 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
168 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
105 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
198 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
1 answer
129 views
Hi
I'm trying to localise the text  that appear in the RadGridView but I can only find 3 things back (add, delete row and group) How can I change to other ones, like the text that appear in the filters, to Dutch ?
Thanks
Benny
Jack
Telerik team
 answered on 14 Feb 2008
3 answers
242 views
How do I add a filter value to the grid view programatically?

I have tried several configurations, but I am unable to generate any result.  Here is the latest that seemed to make sense to me:

Within the load event

'adjust the filtering in the grid to defaults you might want
Me.RadGridView1.MasterGridViewInfo.TableFilteringRow.Cells("active").Value = "true"
Me.RadGridView1.MasterGridViewInfo.UpdateFiltering()

where active is the field name.

smuschelli
Top achievements
Rank 1
 answered on 13 Feb 2008
2 answers
212 views

We have developed a program used by our printing department that allows them to view all letters in a queue, select a few letters, and then print these letters. I'm using the Telerik GridView to display the letters on a WinForm. A BackgroundWorker is being utilized to handle the merging and print processes. Once the worker has completed work we used the worker_RunWorkerCompleted method to refresh the data in my DataAdapter. This seems to be working each time we go through the method. Before leaving the completed method I would like to refresh the GridView with the new data in the DataAdapter. I did this by calling a Delegate to run the following code:

formLetterPrint.radGridView1.DataSource = formLetterPrint.dsLettersToPrint.Letter;

For some reason it will only refresh the GridView the first time we call the delegate. Each time after that it leaves me with a Blank GridView. If I re-sort the GridView my data shows as inteneded. Any ideas?

Jack
Telerik team
 answered on 13 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)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?