Telerik Forums
UI for WinForms Forum
2 answers
135 views
Hi Emanuel,
I tried this code:
public class MyFADatePickerCol: GridViewDateTimeColumn
{
    public override Type GetDefaultEditorType()
    {
        // return the type of your editor here
                     FADatePicker f=new FADatePciker;
                        returtn f.GetType();
    }
public MyFADatePickerCol():base("Col1")
{
}
}
MyFADatePickerCol mycol=new MyFADatePickerCol();
radGridView1.Columns.Add(mycol);
But FADatePicker does not appear in the Grid.
I Also want to have a textboxcolumn which has an ellipsis button '...' inside it. Please send the code to me.

Please help me.
Nikolay
Telerik team
 answered on 02 Nov 2010
3 answers
131 views

Hello,

well I hope you understand my bad english...

We have migrated our RadControl Suite for WinForms from Q1-2010 to Q2-2010.

Under Q1 we implement a application, using the Office2007Black Theme. After the upgrade of our source to the Q2-Controls, the "Style" of the Office2007Black Theme is diffrent to the Q1-Version. We suspect, you changed the global Style. For example the document buttons in the document- or toolWindow are diffrent (screenshot from old theme). Well our useres love the "old" Black Style :-) 

Is there a way of, to use the the old Telerik.WinControls.Themes.Office2007Black.dll in Q2, or it is possible to extract the Style to xml, for using in the new StyleBuilder?

Thanks, and greeting form germany

Andreas

Nikolay
Telerik team
 answered on 02 Nov 2010
2 answers
106 views
I think you have a minor bug with the label's size when overriding the default localization of RadGridView (WinForm 2010.2.10.914)

RadGridStringId.CustomFilterDialogCheckBoxNot

Phi
Svett
Telerik team
 answered on 02 Nov 2010
1 answer
195 views
hi Team,

Adding elements to radStatus strip,such as[Rad Button,Rad label].they are not docked as in normal w informs.

Richard Slade
Top achievements
Rank 2
 answered on 02 Nov 2010
2 answers
157 views
Hi

i'm using version 2010.2.10.713.

in version 2009.3.9.1203 it says that "Fixed: BestFitColumns doesn’t resize the row when AutoSizeRows is true "
but when I try it it doesn't work for me,

Thank u.

Dror.
Jack
Telerik team
 answered on 02 Nov 2010
4 answers
224 views
I want to launch a new form after a carousel selected element has rotated into position 
but I can not find any (end of rotation event) that will allow me to do this.
Is there one or is there a techinque I can use to simulate this
Peter
Telerik team
 answered on 02 Nov 2010
2 answers
241 views
I need to be able to drag a row from a gridview over onto a tree view. I see an example but it's pretty old. I was wondering if there are any newer examples or better ways of doing it?

TIA - Jeff.
Svett
Telerik team
 answered on 02 Nov 2010
1 answer
135 views
I noticed that RadDock's (2010.2.10.914) ActiveWindowChanging event has some inconsistent behaviors:

        private void mainDock_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e)
        {
            //Current: radDock1.ActiveWindow
            //Changing To: e.DockWindow
            if (radDock1.ActiveWindow != e.DockWindow)
            {
                //There are at least 2 documents in radDock1
            }
            else
            {
                //There is none or only 1 document in radDock1
            }
        }

It would be nice if DockWindowCancelEventArgs class would have both the current and the changing-to DockWindows information.
This is useful when you have a situation where a MDI application and documents having their own RadDock components. In this scenario, when switching between documents, it would be a good idea to hide any floating windows in the existing document before switching to the changing-to document. I don't think RadDock currently has anything for this purpose.

Phi
Julian Benkov
Telerik team
 answered on 02 Nov 2010
1 answer
122 views
Hi team,

I have normal windows form which is docked using raddock.
I need to set an icon on the tab of the form.

Thanks
Suresh.
Richard Slade
Top achievements
Rank 2
 answered on 02 Nov 2010
2 answers
525 views
Problem: You want the grid to fill up entirely so you use Column Fill mode so no empty space would be showing in the right side of the columns. In doing that, you loose the horizontal scroll bar when the grid's size is smaller than the sum of the column's width. There has been suggestion of using a scrollable panel to host the grid. But that solution is not ideal.

Solution: It is very simple. Just turn off the Column Fill mode so the horizontal scroll bar would be available when needed. Then we just have to do what the Column Fill mode is doing manually

Below is the code that I came up with: Subscribe to the grid's gridView_Resize() event so it would call FillWidth() when there is a resize event. Where ever in your code when you show the grid the first time, just call to FillWidth() so it would look right in the case that that gridView_Resize() event does not fire.

public void FillWidth()
{
    if (gridView.ColumnCount == 0)
        return;
 
    var width = CalcColumnsWidth();
 
    if (width < gridView.ClientSize.Width)
    {
        // get the remain empty space in grid
        width = gridView.ClientSize.Width - width;
 
        int extraWidthPerColumn = width / gridView.ColumnCount;
        int i, limit = gridView.ColumnCount - 1; // stop before the last column
 
        for (i = 0; i < limit; i++)
        {
            if (gridView.Columns[i].MaxWidth > 0 && gridView.Columns[i].Width + extraWidthPerColumn > gridView.Columns[i].MaxWidth)
            {
                // do calculation before we lost the original width
                width -= (gridView.Columns[i].MaxWidth - gridView.Columns[i].Width);
                gridView.Columns[i].Width = gridView.Columns[i].MaxWidth;
            }
            else
            {
                gridView.Columns[i].Width += extraWidthPerColumn;
                width -= extraWidthPerColumn;
            }
        }
 
        // the last column get any remaining width
        gridView.Columns[i].Width += width;
 
        // This only add to the last column
        //gridView.Columns[gridView.ColumnCount - 1].Width += gridView.ClientSize.Width - width;
    }
}
 
private int CalcColumnsWidth()
{
    int width = 0;
 
    foreach (var column in gridView.Columns)
        width += column.Width;
 
    return width + gridView.ColumnCount + 15; //take into the vertical lines between columns and vertical scrollbar
}
 
private void gridView_Resize(object sender, EventArgs e)
{
    gridView.MasterTemplate.BestFitColumns();
    FillWidth();
}
.

Phi
Top achievements
Rank 1
 answered on 02 Nov 2010
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?