Telerik Forums
UI for WinForms Forum
1 answer
106 views
I have a WindowsForm App that shows a list of users using RadGridView .
When you double click on a row on the GridView I pop up a second form containing textboxes.
I am trying to populate these boxes with the data from the selected row of the GridView.
I tried to use FindControl but that doesn't seem to work.

Does anyone have a piece of code in VB that will make this work?

Thanks
Tim
Top achievements
Rank 1
 answered on 02 Feb 2009
1 answer
172 views
Hi,
I have a RadComboBox which always stays focused on the first row. The list is a list of contacts and I bring back contacts for a specific customer.  However there is a problem with SelectedItem, as the value is saved but when I reopen the form the combobox still defaults to the first row.  Any ideas?

Thanks.
Martin Vasilev
Telerik team
 answered on 02 Feb 2009
1 answer
174 views
Hello, Is there a way to get the grid to scroll using the mouse wheel?  I noticed that the radList does support this.

Thank you, Tyler
Victor
Telerik team
 answered on 02 Feb 2009
1 answer
262 views
Hi,

I have a control which inherits from RadTextBox

The layout should be the following, (a textbox with a button on its side and a couple of labels) 
___________________________________________________ 
| TextElement TextElement                          | 
|__________________________________________________|      
|_TextBox ________________________________|_Button_| 

Problem is I cannot get the textbox and button to lay out in the correct order. The button is always rendered to the left and the textbox to the right, any way to change this?

Thanks,
/ jorge

 
        protected override void CreateChildItems(RadElement parent) 
        { 
            base.InitializeTextElement(); 
 
            title.Text = "Title"; 
            title.Class = "Title"; 
 
            validation.Text = "* Validation failed"; 
            validation.Visibility = ElementVisibility.Collapsed; 
            validation.Class = "Validation"; 
 
            validation.ForeColor = Color.Red; 
 
            AcceptsTab = false; 
            TabStop = true; 
            textBoxElement.Size = new Size(402, 20); 
 
            button.Image = global::revival.Properties.Resources.file_16; 
            button.ImageAlignment = System.Drawing.ContentAlignment.MiddleCenter; 
            button.TabIndex = 0; 
            button.Dock = DockStyle.Right; 
            button.ButtonElement.StretchHorizontally = false; 
            button.ButtonElement.StretchVertically = false; 
            button.ButtonElement.Margin = new Padding(4, 0, 0, 0); 
            button.ButtonElement.Padding = new Padding(1); 
 
            BoxLayout layoutTexts = new BoxLayout(); 
            layoutTexts.Orientation = Orientation.Horizontal; 
            layoutTexts.StretchVertically = false; 
 
            layoutTexts.Children.Add(title); 
            layoutTexts.Children.Add(validation); 
 
            BoxLayout layoutEditor = new BoxLayout(); 
            layoutEditor.Orientation = Orientation.Horizontal; 
            layoutEditor.StretchVertically = false; 
 
// how do i get the textbox to render to the left and the button to the right? 
            layoutEditor.Children.Add(textBoxElement); 
            layoutEditor.Children.Add(button.ButtonElement); 
 
            BoxLayout layout = new BoxLayout(); 
            layout.Orientation = Orientation.Vertical; 
 
            layout.Children.Add(layoutTexts); 
            layout.Children.Add(layoutEditor); 
 
            RootElement.Children.Add(layout); 
 
            Size = new Size(425, 34); 
        } 
 
 

Peter
Telerik team
 answered on 02 Feb 2009
1 answer
308 views

Hi,
We are using WinForms Q1 2008 SP1 RadGridView.
The problem we are facing is that even though we have disabled drag drop of the columns in the grid, if the user tries to drag any column header outside the form or within the grid other column and wait for few seconds (>= 5 Sec) , following runtime error is coming
object reference not set  to instance of an object.

What we are trying to do is disable column drag and drop of grid columns, I have already tried MasterGridViewTemplate.AllowDragToGroup = False , column chooser , column reorder everything false.

Note : we are having timer tick event set for 5 seconds which refreshes the grid every after 5 sec.
if we remove timer event , above problem gets resolved.

Even we dont want effect of drag and drop.

We need solution for this with timer enabled ASAP.
 
Please help.

Regards
Vishal

Deyan
Telerik team
 answered on 02 Feb 2009
1 answer
178 views
Hi,

I am upgrading from an old solution, see http://www.telerik.com/community/forums/winforms/ui-controls/labelmultilinetextbox-with-validation.aspx, since this version is missing some functionality which I now need.

My class inherits from RadTextBox where I override CreateChildItems and create my own.

I follow the logic from your source and it all works perfectly. Except the multiline property, how can I implement it?

I use the following controls.
        private readonly RadTextBoxItem textBox = new RadTextBoxItem();
        private readonly TextPrimitive title = new TextPrimitive();
        private readonly TextPrimitive validation = new TextPrimitive();

A cut down version of CreateChildItems

            BoxLayout layoutTexts = new BoxLayout();
            layoutTexts.Orientation = Orientation.Horizontal;
            layoutTexts.StretchVertically = false;  // when true the control is drawn differently

            layoutTexts.Children.Add(title);
            layoutTexts.Children.Add(validation);

            BoxLayout layout = new BoxLayout();
            layout.Orientation = Orientation.Vertical;

            layout.Children.Add(layoutTexts);

            base.InitializeTextElement();

            layout.Children.Add(textBoxElement);

            RootElement.Children.Add(layout);

            Size = new Size(425, 34); // default size

Thanks
- jorge
Peter
Telerik team
 answered on 02 Feb 2009
1 answer
192 views
Hello,
I'm working with the RadCalendar control in both the Winform environment.  We need to restrict the dates that can be selected in the RadTimePicker control to a specific list of dates.  We also need to highlight the dates that can be selected.  A different background color on these dates would help the users pick a allowed date.  We also need to restrict the user from selecting dates that are not on the allowed list of dates.

Is there a way to do this?

Thank you in advance for the feedback and guidance!

Your help is much appreciated,
Jeff-
Boyko Markov
Telerik team
 answered on 02 Feb 2009
1 answer
103 views
Sorry, this thread should be created inside the OpenAccess-Forum. I thought I created it there but there must had been any error.
Please delete this thread.
Nils
Top achievements
Rank 1
 answered on 31 Jan 2009
2 answers
129 views

Hello Telerik team,

I used to have set of columns that have a MinWidth and MaxWidth set by designs. Resizing is allowed.

The MinSize is being used to set a default minimal width when shown initially 

Once the control has been painted it should set the minimum width of the rows to Zero, so that the user can adjust the width to their own desire.

This is shown in the following code...


 

 

 

 

private bool _isFirstPaint = true;

 

 

 

 

private void MyGridViewContainer_Paint(object sender, PaintEventArgs e)

 

{

 

 

 

if (_isFirstPaint == true)

 

{

 

 

 

//after 1st draw, we reset the minimum column width so that the collumns can be resized by the user below the initial minimum width set by design.

 

 

 

 

 

 

 

 

 

 

foreach (GridViewColumn column in this.radGridView1.Columns)

 

{

column.MinWidth = 0 ;

}

 

 

 

this.Paint -= new PaintEventHandler(MyGridViewContainer_Paint

_isFirstPaint = false;

 

}

 

 

 

 

else

 

 

 

 

 

 

 

{

_isFirstPaint =

 

 

false;

 

}

}



The problem is that this used to work with the 2008Q2 version, but not with the above versions.
Since we now switched to 2008.3.1204 and just a little later to 2008.3.1321, this problem has arrisen.

Please let us know what to do to overcome this change in behaviour.

Kind regards,

Jack

 

 

Jack
Telerik team
 answered on 30 Jan 2009
5 answers
1.0K+ views
Hi, how can I do to count every checked nodes in a radtrreview in C# ? Thanks.
Boyko Markov
Telerik team
 answered on 30 Jan 2009
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?