Telerik Forums
UI for WinForms Forum
3 answers
298 views
I would like to add a button, maybe two, to the GroupHeader of a RadGroupBox, I've tried the following, however the button is not the correct size, it looks like it's being rendered at one pixel wide:

public class TestGroupBox : RadGroupBox
{
    private StackLayoutPanel  m_objStackLayoutPanel  = new StackLayoutPanel ();
    private RadButtonElement m_objButton = new RadButtonElement();

    protected override void CreateChildItems( RadElement parent )
    {
        base.CreateChildItems( parent );

        m_objStackLayoutPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;

        ImageAndTextLayoutPanel panel = this.GroupBoxElement.Header.Children[2] as ImageAndTextLayoutPanel;
        this.GroupBoxElement.Header.Children.RemoveAt( 2 );
        this.GroupBoxElement.Header.Children.Add( m_objStackLayoutPanel );

        m_objStackLayoutPanel.Children.Add( m_objButton );
        m_objButton.Size = new System.Drawing.Size( 16, 16 );
        m_objStackLayoutPanel.Children.Add( panel );
    }
}

Nick
Telerik team
 answered on 15 Oct 2009
1 answer
308 views
Hello,

I was trying to use the radgrid and I have 2 columns.  One column has the names of files (example, test.docx, Instructions.pdf)  and the other column I want to use to display the icons for these different extensions (example, display a word icon for word documents and so on).  I am currently using a binding source to bring back the filenames for the first column and the second column is blank. 

How do I set the picture in that column through code?  I do not need the logic to display the correct icon, I just can't figure out how to populate the column with my own information.

Thanks,
Jack
Telerik team
 answered on 15 Oct 2009
1 answer
109 views
Dear,

I have a question regarding drag & drop on a grouped GridView.
The drag & drop functionality (drag & drop between two GridViews) works but now I want to drag on the header of a group.
I need to get the ID or text of the header group.

private void gridAssigned_DragDrop( object sender, DragEventArgs e ) { 
            if ( e.Data.GetDataPresent( typeof( GridViewDataRowInfo ) ) ) { 
                // dropped on which group? 
                // need ID or text... 
                GridViewRowInfo droppedDriver = GetRowAtPoint( gridAssigned, gridAssigned.PointToClient( new Point( e.X, e.Y ) ) ); 
                // row I'm dragging 
                GridViewDataRowInfo draggedInfo = ( GridViewDataRowInfo )e.Data.GetData( typeof( GridViewDataRowInfo ) ); 
            } 
        } 
 
private GridViewRowInfo GetRowAtPoint( RadGridView grid, Point location ) { 
            RadElement element = grid.ElementTree.GetElementAtPoint( location ); 
 
            // headercells are for grouping 
            if ( element is GridHeaderCellElement ) { return null; } 
            if ( element is GridCellElement ) { return (( GridRowElement )element).RowInfo; } 
 
            return null; 
        } 

Thanks in advance!
Jack
Telerik team
 answered on 15 Oct 2009
2 answers
126 views

When I set the grid to smaller Row Size like that:

grid.GridElement.RowHeight = (int)Math.Floor(this.GridElement.RowHeight * 0.9); 
grid.GridElement.TableHeaderHeight = (int)Math.Floor(this.GridElement.TableHeaderHeight * 0.95); 

The dynamic sizing of the Grouping Panel does not seem to function correctly anymore. The grouped Headers are not drawn properly and the x mark is barely visible anymore.

What's the correct way to make data rows a little smaller, but retain the functionality of the grouping panel?
Regards

Erwin


Jack
Telerik team
 answered on 15 Oct 2009
1 answer
166 views
Hi, I'm experiencing a problem of RadMenu item display.

As shown in the attachment PNG, menu items are clipped on the right. This artifact can be observed in other cases, like a drop-down menu shown in a ribbon component, for example.

I also have prepared a sample project, which is absurdly simple but shows the problem on my PC. Please refer to "http://www.softgate.jp/directdl/MenuTest.zip".

For you information, I am using Japanese VS 2008 SP1 on Japanese Vista x64 Ultimate.

Any help would be appreciated. Thanks in advance.

Edit:
I noticed that I was just placing RadMenuButtonItem instead of RadMenuItem. Sorry for bothering you.
Jack
Telerik team
 answered on 15 Oct 2009
1 answer
132 views
Hi,

When localizing our application everything localizes fine, except for the HeaderText on columns in all the gridviews in our application...?

All columns are designed at designtime using the property editor and localization is preformed runtime by:
CultureInfo ci = new CultureInfo(SomeLCID);
Thread.CurrentThread.CurrentUICulture = ci;

All other standard controls is going well...just not the header text on the gridview columns... any clues or hints on why the grids wont localize? Or anything i can try to find out more about the problem?

We use:
Visual Studio 2008
Telerik WinForms controls, v. 2009.1.9.414 (v2.0.50727)

Thanks in advance!

/Thomas
Jack
Telerik team
 answered on 15 Oct 2009
1 answer
155 views
Hi all.

I'm new to Telerik WinForms which I'm using to produce a quick prototype. I'm looking for a simple way to populate a GridView but haven't found a simple way to adjust the columns. Initially I've tried to use the Property Builder to adjust the size of each column but then I can't assign a DataTable to the DataSource (which I understand is the preferred way of adding data to a grid) without adding new columns to the grid.
 
Then I stumbled upon AutoResizeColumns which seems to offer an alternative that would work but it doesn't look like RadGridView support this. If so, how do I add data to the grid without setting each column size in code?

Regards, Jon
Jon Ronnenberg
Top achievements
Rank 1
 answered on 14 Oct 2009
1 answer
118 views
I've been using the screentips for the ribbon bar and recently wanted to add a footer and seperator line but I am having trouble getting it to show.

The visibility is set to true but still I cannot get them to show.
Martin Vasilev
Telerik team
 answered on 14 Oct 2009
1 answer
159 views
I m new to these chart control.
i m not able to bind any type of data with chart controls.
plz give any simple example as a beginer.
Actualy i want to show the student marks by the  chart control which is saved in sqlserver 2005 database i m using c#
can u tell me how i can do this ?
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 14 Oct 2009
1 answer
111 views
Can we have only integer(without decimals) values in Yaxis or Xaxis?


Thanks.
Ves
Telerik team
 answered on 14 Oct 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?