Telerik Forums
UI for WinForms Forum
1 answer
83 views
I am trying to develop a programatically defined hierarchical grid as the example pictured here: photohere

I want to get rid of the annoying thick orange border around the child grid, and also find a way so that the horizontal size of the child grid to be the same as the parent grid, and not extending to the right. I do not want to create a new style, but rather try to do it programmatically.

I have found a similar reference in the forum that supposedly takes care of the first problem, listed here:http://www.telerik.com/community/forums/winforms/gridview/hierarchy-child-size.aspx , but does not seem to do the trick, since the cell formating event never ends this loop.

Any help would be greatly appreciated.

Regards,

George





Jack
Telerik team
 answered on 13 May 2009
5 answers
205 views
I have a strange problem.  In the below code when conditions exist that causes one of the messages to be displayed, after the message is acknowledged (stepping this through) the validate is immediately called again.  If I remove the messages, then this behavior is not exhibited.  Am I doing something wrong, or is this a bug.  I'm running the latest of the lastest.

private
void grdSleeves_Validating(object sender, CancelEventArgs e)

{

 

    try

 

    {

 

        if (sender is RadGridView)

 

        {

 

            RadGridView grid = (RadGridView)sender;

 

 

            if (grid.CurrentCell.ColumnIndex == (int)enum_grid_sleeve.picked)

 

            {

 

                int picked = Convert.ToInt32(grid.ActiveEditor.Value);

 

 

                int available = Convert.ToInt32(grid.CurrentRow.Cells[(int)enum_grid_sleeve.paqavailable].Value);

 

 

                int required = Convert.ToInt32(grid.CurrentRow.Cells[(int)enum_grid_sleeve.paq].Value);

 

 

                if (available < picked) { e.Cancel = true; MessageBox.Show("Picking more than available."); }

 

 

                else if (required < picked) {e.Cancel = true; MessageBox.Show("Picking more than required."); }

 

            }

        }

    }

 

    catch { }

 

}

Jack
Telerik team
 answered on 13 May 2009
5 answers
643 views
Hi,

We are having issues with changing RadTreeNode backcolor at runtime. Setting the backcolor works fine, but resetting it back to transparent color messes up node highlight and selection highligh. We use Vista theme, so the selected node would normally have blue highlight with gradient, but after setting background color and resetting it back, the selected item highlight looses gradient and becomes just white with blue border. Is there a better way to permanently hightlight a node? We just swithed from standard .Net TreeView and used Status icon for that, which works differently in RadTreeView.

// Resetting color 
node.BackColor = Color.FromArgb(0, 0, 0, 0); 
node.BackColor2 = Color.FromArgb(0, 0, 0, 0); 
 
// Setting custom background 
node.BackColor = Color.FromArgb(0xEA, 0xF3, 0xFB); 
node.BackColor2 = Color.FromArgb(0x1E, 0x77, 0xD3); 

We use RadControls for WinForms 2009.1.414.

Thanks,
Gregory
Victor
Telerik team
 answered on 13 May 2009
0 answers
125 views
I have tested a styled radComboBox using some theme, but I notice something. When I click on open dropdown button first time, combo shows a dropdown list under it but not shows shadow around it, some times dropdown list is bigger than radcombobox width size; at second time when dropdown list is displayed, shadows is shown and dropdown list is width sized like radcombobox width size, but another thing that is the main problem is when radComboBox is big size of width to show great deal of text, scrollbars disapear!!

What could be done?
Aldemar
Top achievements
Rank 1
 asked on 12 May 2009
2 answers
144 views
Hi,

Is there a way to use RadTreeView control with the same theme in different places with and without the border? Looks like drawing a border around the control is controlled by the theme and creating an extra theme doesn't seem to be reasonable just for this purpose. I found a work around by setting the RadTreeView.TreeViewElement.DrawBorder property to true. But it would be more logical and convinient to make at available in the Designer. Should i submit it as a feature request?

Thanks
Grigoriy
Grigoriy
Top achievements
Rank 1
 answered on 12 May 2009
16 answers
901 views
Question #1
When adding a checkbox column to a gridview and when I turn on the filter option of the grid there is a checkbox that shows up as part of the filter.  How can I turn that into a select all checkbox instead of filtering on it?  Is there a better alternative to doing this?

Question #2
How come when I add a checkbox to my gridview before filling the gridview with data it just shows the checkbox and it doesn't look right/good is there a way to just have a clear grid or at least make it look better? 



Thank You
Jack
Telerik team
 answered on 12 May 2009
1 answer
106 views
Hi,
I am having RadPanel , in RadPanelBarGroupElement i am having RadButton Element.Now i want apply theme for this group element.What is the way to achieve this.
Mike
Telerik team
 answered on 12 May 2009
5 answers
269 views
Hello -

I have a very sophisticated RadElement hierarchy that contains RadTextBoxElements at the leaves.  So far, I've only needed single line text boxes, but I now need to begin supporting multi-line text boxes.  I see that RadTextBox has a Multiline property, but I don't see such a property on RadTextBoxElement even though I do see the MultilineChanged event.  I'm hoping there is some way (even if through a backdoor) to make a RadTextBoxElement do multi-line text editing.

Thanks,
- Mike
Mike
Telerik team
 answered on 12 May 2009
1 answer
194 views
Hello,

i have a problem with the winform radgrid.

Trying to add columns runtime with the following loop:

 

 

 

public void CreateGridProductieMonitor(List<string> Kolommen)

 

{

radGridViewProductie.DataSource = schrapViewBindingSource;

 

foreach (string Kol in Kolommen)

 

{

 

if (!string.IsNullOrEmpty(Kol.Trim()))

 

{

 

     GridViewTextBoxColumn textBoxColumn = new GridViewTextBoxColumn();

 

     textBoxColumn.UniqueName = Kol;

     textBoxColumn.HeaderText = Kol;

     textBoxColumn.FieldName = Kol;

 

 

 

     radGridViewProductie.MasterGridViewTemplate.Columns.Add(textBoxColumn);

 

}

}

}

 

 

 


The datasource of the grid is a generic list. The fieldname is 100% correct. 
Only the first column shows data. The other columns are empty. When i change the order of the columns the result is the same. The first column added shows data.
I tried adding the columns before and after binding to the datasource.

Greetings Tim

 

IT Development
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
154 views
I am using C# and Telerik controls version 2009.1.9.414.

In the Quick Access toolbar overflow menu, I would like to create additional items.  I am referring to items like "Show Below the Ribbon" and "Minimize the Ribbon", not the items at the top that are added dynamically to correspond to the toolbar buttons.

Is there a way to add items?  I try:

this.radRibbonBar1.RibbonBarElement.QuickAccessToolBar.OverflowButtonElement.DropDownMenu.Items.Add(new RadMenuItem("testing")); 

in the OverflowButtonElement_DropDownOpening event handler, but the CPU goes to 100% and the app seems to hang.

Any suggestions?

Thanks,
Nick
Deyan
Telerik team
 answered on 12 May 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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?