Telerik Forums
UI for WinForms Forum
1 answer
247 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
93 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
80 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
105 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
101 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
110 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
89 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
115 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
78 views
Can we have only integer(without decimals) values in Yaxis or Xaxis?


Thanks.
Ves
Telerik team
 answered on 14 Oct 2009
1 answer
199 views
Greetings
I have an application that i am migrating to use rad winform controls
One of my gridviews has a date column, the whole table holds 1 record per day
I want to group by this column but by months not days

I am using SQL server 2008 as DB holder and LTS as data layer
note that i can't use Linq to do that grouping as it will make the table uneditable
Julian Benkov
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)
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
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?