Telerik Forums
UI for WinForms Forum
15 answers
547 views
I have just started working with the WinForms GridView, and I'm having some trouble getting a few things accomplished.  Sorry to jam all of this into one post, but I figure this might be most efficient.
  1. Is it possible to have the grid autosize rows?  I have several cells that are multiline text, but the grid doesn't automatically size so that this text can be seen.  Instead, it seems to display the middle of the text, which makes for a very crowded looking grid.
     
  2. I am binding to a List<T> containing my business object, which in turn includes a few List<T> properties containing other business objects.  I have built a project data source from which I have established the schema for the grid, but for some reason I can't get the grid to display the hierarchal data for the embedded List<T> properties.
     
    My data source recognizes them, and upon building the data schema I could see the ChildGridViewTemplates in my MasterGridViewTemplate, but these ChildGridViewTemplates did not have any columns on them.  I manually added some, but I'm still not getting any hierarchal data display.  Am I missing something?  Is there something I need to do differently since I'm using List<T> objects?
Thanks in advance for the help.

Josh
Nikolay
Telerik team
 answered on 15 Oct 2009
1 answer
106 views
Hi, i need a HtmlViewDefinition Format to View an edit the Data.

Can i release this?
Jack
Telerik team
 answered on 15 Oct 2009
3 answers
178 views
Hi,

Is there any where to get or find more new Themes?

Thx
Nick
Telerik team
 answered on 15 Oct 2009
4 answers
158 views
I see from previous forum posts that you had a plan to convert the ASP.net Editor to make it available in Windows Forms, but I don't know whether that is stil part of your plans.

I have a need to replicate my application in both Windows Forms and ASP.net, and a WYSISYG XHTML compliant editor is something I need, and I use Editor in ASP.net to provide this. Do you still have plans to include a Windows Forms (or WPF) version of this control ?

Phillip Hamlyn
Rumen
Telerik team
 answered on 15 Oct 2009
4 answers
116 views
Hi

I need to masked a column like {(123)-123-1234}, I use this mask {(###)-###-####} or {(000)-000-0000} but this are wrong.
HamiD Mayeli
Top achievements
Rank 1
 answered on 15 Oct 2009
3 answers
289 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
294 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
106 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
116 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
157 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
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?