Telerik Forums
UI for WinForms Forum
5 answers
1.7K+ views
I am new to GridView control, and I have noticed something strange to me. When I have set Font size of GridView control,  Row height and Header height did not changed and in one row I can see only part of data in Row. I thought that it should change Row height automaticaly to Font size ?

Alexander
Telerik team
 answered on 15 Dec 2010
5 answers
215 views
Hi,

I need to make the selection of the RadSplitButton when RadDropDownButtonElement is selected. For make this, I'm changing Style Parameter of the different buttons and when another button is Selected I have to restore Original Values.

For make this, I've made one event:

public void SelectedChanged(object sender,EventArgs e){


            RadSplitButtonElement SendingSplitButton = sender as RadSplitButtonElement;
            RadSplitButtonElement[] ButtonArray = { orbit, rotate, horizontalMove, verticalMove, zoom };

 for (int i = 0; i < 5; i++)
            {
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor = System.Drawing.Color.transparent;  <- Setting the original Values
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor2 = System.Drawing.Color.transparent;
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor3 = System.Drawing.Color.transparent;
                ButtonArray[i].ActionButton.ButtonFillElement.BackColor4 = System.Drawing.Color.transparent;              

            }
           /*Setting Selected Values...*/
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor = System.Drawing.Color.FromArgb(255,255,115,0);
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor2 = System.Drawing.Color.FromArgb(255,255, 115, 0);
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor3 = System.Drawing.Color.FromArgb(255,255, 115, 0);
            SendingSplitButton.ActionButton.ButtonFillElement.BackColor4 = System.Drawing.Color.FromArgb(255,255, 115, 0);
            SendingSplitButton.ActionButton.ButtonFillElement.GradientPercentage = 0.62f;
            SendingSplitButton.ActionButton.ButtonFillElement.GradientPercentage = 0.71f;
}

I have already tried changing the State of the Objects in this mode:

SendingSplitButton.OnMouseOver = true or with SendingSplitButton.OnMouseDown= true but it doesn't work. I don't understand very well if it is possible or not managing only a single state of the object through the code and how the Style Managing - by code - and Xml is merged.

Thank you very Much,

Jean-Marc Windholz
Top achievements
Rank 1
 answered on 15 Dec 2010
1 answer
203 views
Hi,

I have a RadForm, which contains a number of controls, including a number of RadTextBoxes with enter and leave events. When the enter event is fired the background of the selected RadTextBox is coloured yellow, and when the leave event is fired the background returns to white, to highlight which RadTextBox is currently selected.

This is working fine; however, when the user double clicks the title bar of the RadForm the RadTextBox leave event is always being fired. This doesn't get fired when the RadForm is maximised by using the maximise box, or by clicking on the icon in the title bar, and clicking maximise.

Why does double clicking the title bar fire the RadTextBox leave event, when maximising the RadForm in any other way doesn't? Ideally I would like to continue to allow the user to maximise the form by double clicking the title bar, but, if this isn't possible, then I guess I will have to disable this. Is this possible?

Thanks in advance,
Matt.
Richard Slade
Top achievements
Rank 2
 answered on 15 Dec 2010
18 answers
392 views
Hi,

I downloaded and tried RadControl for Winforms Q1 2007. I implemented some of the components such as Button.

Such strange thing, when the mouse point to the button, the color will change from blue to yellow, but when the mouse is point other button, the previous button color will not change to the initial state, still yellow.

It's the same with other components; treeview. When you try to click on the one of the nodes, and then click other nodes, the previous nodes color will no change to initial state but stay as isPressed color states.

I am using Windows Server 2003 with VS2005 and .Net Framework 2.0. I tried in others PC with Windows Vista, this case is not happen. Does Radcontrols involve directX?

Please Help...

Thank you so much for the help
Stefan
Telerik team
 answered on 15 Dec 2010
7 answers
239 views
Hi,

The RadToolStrip control supports CausesValidation for when I want my controls validated before a button is pressed, however I can't figure out a way of getting RadRibbonBar to do the same thing. The property CausesValidation exists and I can set it to True, however I don't seem to get the expected Validate event on my editing control. Do I need to set this directly on the RadToolStripElement - and if so, how ?

Thanks,

Phillip
Nikolay
Telerik team
 answered on 15 Dec 2010
5 answers
294 views
Hi,

I've got a winform gridview.  I want to give the ability to select multiple rows when pressing the space bar.
I've looked through the doc's and forum but can't get a solution.
Dim iRow As Integer = PoolGrid.Rows.IndexOf(PoolGrid.CurrentRow)
If iKey = 2097184 Then 'SPACE
    PoolGrid.Rows(iRow).IsSelected = True
    PoolGrid.Rows(iRow).IsCurrent = True
    PoolGrid.SelectedRows.Add(PoolGrid.CurrentRow)
    PoolGrid.Update()
     PoolGrid.CurrentRow.VisualElement.RowVisualState = Telerik.WinControls.UI.GridRowElement.RowVisualStates.Selected
 End If

Many thanks,
Gary
        If iKey = 2097184 Then 'SPACE
            PoolGrid.Rows(iRow).IsSelected = True
            PoolGrid.Rows(iRow).IsCurrent = True
            PoolGrid.SelectedRows.Add(PoolGrid.CurrentRow)
            PoolGrid.Update()

            PoolGrid.CurrentRow.VisualElement.RowVisualState = Telerik.WinControls.UI.GridRowElement.RowVisualStates.Selected

        End If
        If iKey = 2097184 Then 'SPACE
            PoolGrid.Rows(iRow).IsSelected = True
            PoolGrid.Rows(iRow).IsCurrent = True
            PoolGrid.SelectedRows.Add(PoolGrid.CurrentRow)
            PoolGrid.Update()

            PoolGrid.CurrentRow.VisualElement.RowVisualState = Telerik.WinControls.UI.GridRowElement.RowVisualStates.Selected

        End If
        If iKey = 2097184 Then 'SPACE
            PoolGrid.Rows(iRow).IsSelected = True
            PoolGrid.Rows(iRow).IsCurrent = True
            PoolGrid.SelectedRows.Add(PoolGrid.CurrentRow)
            PoolGrid.Update()

            PoolGrid.CurrentRow.VisualElement.RowVisualState = Telerik.WinControls.UI.GridRowElement.RowVisualStates.Selected

        End If
Richard Slade
Top achievements
Rank 2
 answered on 15 Dec 2010
7 answers
481 views
dgv_format.DataSource = dtSource;
dgv_format.MasterTemplate.FilterDescriptors.Clear();
FilterDescriptor filter = new FilterDescriptor();
filter.PropertyName = "a_layer_number";
filter.Operator = FilterOperator.IsEqualTo;
filter.Value = 1 ;
filter.IsFilterEditor = true;
dgv_format.MasterTemplate.FilterDescriptors.Add(filter);
dgv_format.Refresh();

Does not filter ....
What could be wrong here ?
I tried to filter not using MasterTemplate  .. also does not filter, does not work :
dgv_format.FilterDescriptors.Add(filter);

Thank you ,
Victoria.
Richard Slade
Top achievements
Rank 2
 answered on 14 Dec 2010
1 answer
120 views
Hi Everyone,

I dont know if you also have this problem but on the Your Forum Threads Page all my threads say last post by Telerik Admin even though the last post is not the telerik admin and/or no telerik admin has even replied to the posts.

You can see by the attached screenshot that the last post was by the telerik admin even though this is the only post.

Take a look at your Forum Threads and let me know if you have the same issue.

Link to Your Forum Threads
Richard Slade
Top achievements
Rank 2
 answered on 14 Dec 2010
2 answers
160 views
Hi

How I can change the comma separated when I use the ExportCSV
I want to use ";"  and no "," for the delimeter

Thanks

Anthony
Martin Vasilev
Telerik team
 answered on 14 Dec 2010
3 answers
290 views
I have MDI frame. .NET C# WinForms.
In the MDI frame I have a main window that contains ListBox. Depend on selected item from the ListBox a Child Form suppose to be opened with parameters. Everything working file except :  I want Child Form to be opened next to the ListBox on the main form.
So  I'm trying to set  x, y location position properties of the Child Form. Does not work.
Every form opens ... looks like in cascading positions. ( I noticed it because I tried to open and close 5 - 7 forms and I saw that every other form was opened a little aside from the previous).
I need every form to be opened at the same location. What should I do for it?
Please , help...

Thank you ,
Victoria.
Richard Slade
Top achievements
Rank 2
 answered on 14 Dec 2010
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?