Telerik Forums
UI for WinForms Forum
1 answer
113 views
Hello,

With SP2 as it is that now I know which is CurrentColumn

Before it used:
Dim col As GridViewDataColumn
col = CType(radGridView1.MasterGridViewInfo.CurrentColumn, GridViewDataColumn)
Georgi
Telerik team
 answered on 12 Jul 2007
1 answer
152 views
How to set the height for the column header? I wanted to display 2 lines of text in the column header?

Second thing; the performance of the controls is pretty slow. Is any way to speed up the running time?

thanks
Dwight
Telerik team
 answered on 12 Jul 2007
1 answer
62 views
Hello
Just downloaded SP2 for winforms, and the help file has nothing new in the "What's new" section. Anything to report on here??<G>

THanks
Harold

Nikolay Dobrev
Telerik team
 answered on 12 Jul 2007
3 answers
125 views
Hello

In looking at this code in "customizing gridgroupheaderitem", i noticed that it is for the grid web control, NOT the winform control!

private void RadGrid1_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e) 
 if ( e.Item is GridGroupHeaderItem ) 
 { 
  GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item; 
  DataRowView groupDataRow = (DataRowView)e.Item.DataItem; 
 
  //Clear the present text of the cell 
  item.DataCell.Text = ""
  foreach( DataColumn column in groupDataRow.DataView.Table.Columns) 
 
  //Check the condition and add only the field you need 
  if ( column.ColumnName == "Country" ) 
  { 
   item.DataCell.Text += "Customized display - Country is " + groupDataRow 
   ["Country"].ToString(); 
  } 
 } 
 


Thought you might want to know!
Harold

Dimitar Kapitanov
Telerik team
 answered on 12 Jul 2007
1 answer
182 views
Hi All ,

I am not able to make my rad Combobox heing small in height can any one help

thanks
Dwight
Telerik team
 answered on 12 Jul 2007
1 answer
210 views
I have a IBindingList of INotifyPropertyChanged objects as the datasource for my datagrid.

The grid seems to handel the events from the IBindingList just fine, but the events from the INotifyPropertyChanged don't seem to get caught.

I put a basic Winform GridViewControll In the same form, and with the same datasource and that seems to be working just fine. 

Is there some magic bit that I ahve to flip some place for this to work, or is this feature not supported in the RadGridView ?
Dwight
Telerik team
 answered on 12 Jul 2007
1 answer
332 views
Hello

I am reading in an XML file that was created in VFP. I have the VFP client extract a table to XML and it also generates the schema file. I have my WinForm app read in the schema (   DataSet.ReadXmlSchema()   ) and then have it read in the xml data file. That works great. But the RadGrid is unformatted. I would like to format the column headers and the column spacing.  Can I pre-format the grid to the XML schema, or can it be done dynamically when the dataset that is bound to the grid is defined by the schema??

Thanks!
Harold

Mike
Telerik team
 answered on 12 Jul 2007
1 answer
161 views
What's the best way of installing SP2?

I have SP1 installed - should I de-install it first and install SP2 or should I install over SP1?

Do I need to update anything manually, such as the toolbox or global assembly cache?

Thanks for your help.
Dwight
Telerik team
 answered on 11 Jul 2007
2 answers
426 views
I encountered a problem using RadTitleBar with ShapedForm. When docked to the top it coveres window border... makes it look pretty ugly.

So, I found several ways to work around this problem, and as I couldn't find any documentation on how to solve it I thought I'd post what I found for people who encounter the same kind of problem.

Solution #1, simplest
Just make the border to be the same color as your title bar. This is very easy. It works ok, but if the window is on top of another window with similar colors it might be hard to actually see the edges of the window. Here's a sample of what it looks like: http://www.telerik.com/support/kb/article/b454K-ttk-b454T-ckd-b454c-ckd.aspx

Solution #2
simulate border around title bar using padding, background color and Shape

here's a code example:
public partial class Form1 : ShapedForm  
{  
    public Form1()  
    {  
        InitializeComponent();  
 
        RoundRectShape shape = new RoundRectShape( 5 );  
        shape.DeserializeProperties( "5, False, True, False, True" );  
 
        this.Shape = shape;  
 
        int borderSize = 1;  
        RootRadElement titleRoot = this.radTitleBar1.RootElement;  
        titleRoot.Padding = new Padding( borderSize, borderSize, 50, 0 );  
        titleRoot.BackColor = Color.Black;  
 
        RadElement rootChild = titleRoot.Children[0];  
        rootChild.Margin = new Padding( 0, 0, borderSize, 0 );  
        rootChild.Shape = shape;  
    }  

It sets shape for the current form, then shape for the title bar and uses padding to move title bar slightly and sets background color to show the color (black in this case).

Couple of things to note:
  1. Setting right padding on the title root element has no effect (I have 50 and it acts like it's 0). To overcome that I set right padding on the 1st child of the title bar.
  2. I use deserialize properties to set rounder corners only for top left/right corners. I "borrowed" the idea from the QSF source code. It's not documented anywhere it seems.... how many more hidden gems are there in rad framework?
  3. If you want to use status bar... well, don't, it's hard to get it to work.
  4. I tried padding the form instead of the title bar, but it didn't work as well.
  5. Why does this have to be so hard? Why not just create a special ChromeForm class in addition to ShapedForm that would have title bar (or ribbon), with borders, with status bar, all taken care of? It feels too much like I'm hacking, just the way I hack with CSS...

Well, hope this is helpful.

ornus
Top achievements
Rank 1
 answered on 11 Jul 2007
2 answers
169 views
What I'm attempting to do is put the caption text and the image on the right side of the panelbar.    Setting it at runtime would be fine, but I'd rather be able to set them at design time if it's possible.

It seems that there are many ways to set this, but I'd like to know the right way. 
I've been using the RadControlSpy to adjust the settings.
Navigating down the tree to the RadCaptionLayout and setting the CaptionButtonPosition to Right seems like the right thing, but it doesn't move the image.
Navigating to the ImagePrimitive and setting it's alignment to right  moves the image, but it moves it past the end of the panelbar.

Is there a better way to make these changes?
I'm new to the telerik controls, so feel free to point out obvious things.
--
K



kstump
Top achievements
Rank 1
 answered on 10 Jul 2007
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?