Telerik Forums
UI for WinForms Forum
3 answers
336 views
Hi Telerik,
I just came across an issue and if you can please guide me in this regard.
The issue is that
I want that only the root node (First Node) of tree view dont show its Plus Minus (sign) and it reduce its (only its) indentation as well.
I can see that the property for plus minus is available but that property implements on whole treeview, which is not acceptable to us. And we will need to reduce its indentation as well because if somehow I could be able to hide the plus minus sign the gap between the treeview control border and its first node will look odd.

I hope,I can cleared my point. I wanted to send u the dummy treeview pic to show exactly what I want but i guess attached is not provided this Telerik threads.To understand my application, Its tree view is like that I have One node and all about 100 or so childs and sub childs are under that Single node. So we are looking to hide the Top (Root) node Plus Minus sign and indent the treeview little left to the gap dont look too much.

Looking forward to your quick and helpful response as always.

Regards,
Haroon.

Victor
Telerik team
 answered on 05 Feb 2009
5 answers
222 views
Hi,

Is it possiblie to add Telerik controls like waiting bar and label on a Splash Screen (SplashForm) ?

Regards,

YSP


Jack
Telerik team
 answered on 03 Feb 2009
1 answer
107 views
Again, I'm evaluting your controls.  On quite a few control sets, you have the ability to share the same object on a menu and toolbar.  From what I can tell, you can't not do that on your controls.  In other words, I can not make a object that will show up in the menu and toolstrip both.

Also, Am I correct to state that for every object in a menu/toolstrip, it has it's own events that are called.  Again, some sets have a common event handler, then you find out what object called the event and process from there.

Thank you

Terry
Jack
Telerik team
 answered on 03 Feb 2009
1 answer
99 views
Hi,

I discovered a new issue in the last version of components.

let me show your part of code. (I really cannot provide sample, I have no time for this, I can patch this myself, but perhaps this will help someone)

RadGridView properties in designer code file :
this.RadGridView_Object.AutoSize = true
this.RadGridView_Object.MasterGridViewTemplate.AllowAddNewRow = false
this.RadGridView_Object.MasterGridViewTemplate.AllowCellContextMenu = false
this.RadGridView_Object.MasterGridViewTemplate.AllowColumnChooser = false
this.RadGridView_Object.MasterGridViewTemplate.AllowColumnHeaderContextMenu = false
this.RadGridView_Object.MasterGridViewTemplate.AllowColumnReorder = false
this.RadGridView_Object.MasterGridViewTemplate.AllowDeleteRow = false
this.RadGridView_Object.MasterGridViewTemplate.AllowDragToGroup = false
this.RadGridView_Object.MasterGridViewTemplate.AllowRowResize = false
this.RadGridView_Object.MasterGridViewTemplate.AutoExpandGroups = true
this.RadGridView_Object.MasterGridViewTemplate.EnableSorting = false
this.RadGridView_Object.MasterGridViewTemplate.ShowFilteringRow = false
this.RadGridView_Object.MasterGridViewTemplate.ShowRowHeaderColumn = false
this.RadGridView_Object.ShowGroupPanel = false;
this.RadGridView_Object.AutoSizeRows = true

RadGridView columns definition (pRadGridView is RadGridView_Object)  :
// Start update 
pRadGridView.GridElement.BeginUpdate(); 
 
// Erase content 
pRadGridView.MasterGridViewTemplate.AutoGenerateColumns = false
pRadGridView.DataSource = null
pRadGridView.MasterGridViewTemplate.Rows.Clear(); 
pRadGridView.MasterGridViewTemplate.Columns.Clear(); 
#region Add columns 
#region Special Column for colorization 
GridViewDataColumn Colorization_Column = new GridViewDataColumn("Colorization""Colorization"); 
Colorization_Column.IsVisible = false
Colorization_Column.HeaderText = "Colorization"
pRadGridView.MasterGridViewTemplate.Columns.Add(Colorization_Column); 
#endregion 
 
/// ADD SOME OTHER COLUMNS 
#endregion 
#region Add Group View Definition 
ColumnGroupsViewDefinition _ColumnGroupsViewDefinition = new ColumnGroupsViewDefinition(); 
 
/// Add colums groups, some columns, two lines 
 
pRadGridView.ViewDefinition = _ColumnGroupsViewDefinition; 
#endregion 
#region Databind 
 
foreach(Object item in ListOfObject) 
 GridViewDataRowInfo row = pRadGridView.MasterGridViewTemplate.Rows.AddNew(); 
 row.Cells["col1"].Value = item.value1; 
// and others 
#endregion 
 
// End of update 
pRadGridView.GridElement.EndUpdate(); 
 
// Best fit columns 
pRadGridView.MasterGridViewTemplate.BestFitColumns(); 

Ok, run this and what appends....

The first issue is that the two header rows are not displayed, only the first one.
Anyway, just click on first DataRow, the second Header row is diplayed but First DataRow is behind... Wow

So, the only one solution for me, was to set this.RadGridView_Object.AutoSizeRows = false

hope this will help.

Best regards


EDIT : this issue is for ViewDefinitions and not only Html one. Sorry.
see bug on  : Image

Jack
Telerik team
 answered on 03 Feb 2009
1 answer
77 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
122 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
134 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
191 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
263 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
135 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
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?