Telerik Forums
UI for WinForms Forum
4 answers
209 views
Hi,
I am developing a winforms app using dock with a single tool window,  currently I have tool window located in the top.  I really want it to display as it would if it were in the middle but for styling reasons I prefer a tool window to a document window. 

So the result right now is an odd space below the tool window and the splitter that divides the tool window from the odd blue space.  is there any way to put a tool window in the center, or to make the splitter disappear and lock the tool window so if the user alters the size of the form the tool window will grow in size as well as opposed to the blue space growing as well.  I have attached a picture so you can see the blue space separator/splitter I am talking about.
thank you in advance for your help.
regina
Top achievements
Rank 1
 answered on 03 Feb 2011
5 answers
219 views
Hello,

I have a gridview containing a file explorer. For the column filesize I have a hidden column with the filesize in bytes. The I have another column with the size formatted to a string containing 8,25 KB, ...

When the user wants to sort the data by the filesize column, I have to sort dynamicly on the hidden column instead of the filesize column.

Is there a way of doing this?

Tnx!
Stefan
Telerik team
 answered on 03 Feb 2011
1 answer
150 views

i m using this method.maybe helpfull some new developers like me.
public void changeyourcolumnsname()
{string conn="Data Source=yourdatasource; User Id=youruserid; Password=yourpassword; Initial Catalog =yourdataname;";

 

 

 

 

 

using

 

 

(SqlConnection connection = new SqlConnection(conn))

 

{

connection.Open();

 

 

 

 

 

DataSet ds = new DataSet();

 

 

 

 

 

SqlDataAdapter adp = new SqlDataAdapter("select col1,col2,col3,col4 from yourtable",connection);
adp.Fill(ds, "yourtable");

 

 

 

 

 

this.radMultiColumnComboBox1.DataSource = ds.Tables[0];

 

 

 

 

FilterDescriptor descriptor =

 

 

 

new FilterDescriptor(this.radMultiColumnComboBox1.DisplayMember, FilterOperator.StartsWith, string.Empty);

 

 

 

 

 

this.radMultiColumnComboBox1.EditorControl.FilterDescriptors.Add(descriptor);

 

 

 

 

 

this.radMultiColumnComboBox1.DropDownStyle = RadDropDownStyle.DropDown;

 

 

 

 

 

this.radMultiColumnComboBox1.EditorControl.Columns[0].HeaderText = "mycolumns1";//change your col1

 

 

 

 

 

this.radMultiColumnComboBox1.EditorControl.Columns[1].HeaderText = "mycolumns2";//change your col2

 

 

 

 

 

this.radMultiColumnComboBox1.EditorControl.Columns[2].HeaderText = "mycolumns3";//change your col3

 

 

 

 

 

this.radMultiColumnComboBox1.EditorControl.Columns[3].HeaderText = "mycolumns4";//change your col4

 

 

 

 

 

 

connection.Close();

 

}

 

private

 

 

 

 

void yourform_Load(object sender, EventArgs e)

 

{

 

 

 

this.radMultiColumnComboBox1.AutoSizeDropDownToBestFit = true;

 

RadMultiColumnComboBoxElement multiColumnComboElement =

 

this.radMultiColumnComboBox1.MultiColumnComboBoxElement;

 

multiColumnComboElement.DropDownSizingMode = SizingMode.UpDownAndRightBottom;

multiColumnComboElement.DropDownMinSize =

 

new Size(420, 300);

 

multiColumnComboElement.EditorControl.MasterGridViewTemplate.AutoGenerateColumns =

 

false;

 

 

 

 

this.radMultiColumnComboBox1.AutoFilter = true;

 

 

 


changeyourcolumnsname();

}

 

 

 

 

 

 

Svett
Telerik team
 answered on 03 Feb 2011
1 answer
144 views
Is there a way to set the height of an appointment?

TIA
Heiko
Dobry Zranchev
Telerik team
 answered on 03 Feb 2011
3 answers
146 views
I have a hierarchical RadGridView that I am putting a RadPanel with a user control into during cell formatting.  When I expand the row to look at the control all I see is the AddNewRow Pane.  If I set AllowAddNewRow to false the row never expands.  Below is the code I am using to do this. Any help I could get with this would be great.

private void TemplateRelations()
{
    GridViewTemplate template = new GridViewTemplate();
 
    template.Caption = "Tracking Info";
    template.DataSource = trackingInfos;
    gvTrackingInfo.Templates.Add(template);
    template.AllowRowResize = false;
    template.ShowColumnHeaders = false;
    template.ShowRowHeaderColumn = false;
    template.Columns[0].Width = 800;
    template.Rows[0].Height = 500;
    for (int i = 1; i < template.Columns.Count; i++)
    {
        template.Columns[i].IsVisible = false;
    }
 
    GridViewRelation relation = new GridViewRelation(this.gvTrackingInfo.MasterTemplate, template);
    relation.ParentColumnNames.Add("TrackingNumber");
    relation.ChildColumnNames.Add("TrackingNumber");
    this.gvTrackingInfo.Relations.Add(relation);
}
 
 
private void gvTrackingInfo_CellFormatting(object sender, CellFormattingEventArgs e)
{
    TabContainer tabContainer = new TabContainer();
    GridViewDataColumn column = e.CellElement.ColumnInfo as GridViewDataColumn;
    if (column != null && column.OwnerTemplate.Caption == "Tracking Info")
    {
        RadPanel panel = new RadPanel();
        tabContainer.Height = 500;
        tabContainer.Width = 800;
        panel.Controls.Add(tabContainer);
        panel.TextAlignment = ContentAlignment.MiddleCenter;
        e.Row.Height = 500;
        e.Column.Width = 800;
        e.CellElement.Children.Add(new RadHostItem(panel));
    }           
}

Jack
Telerik team
 answered on 03 Feb 2011
2 answers
98 views
The reminder is working fine except for it shows all appointments old and new.
Am I missing something?
Is there a parameter to set on an appointment like a "dismissed" so the reminder doesn't display it?

Please I need help! ;)
Thanks...
Dobry Zranchev
Telerik team
 answered on 03 Feb 2011
6 answers
187 views
I am trying to use RadGridView.RowPain. I need an extra header row to show that the columns are categorized:

e.g.

[-------- Category A --------][-------- Cat B --------][-------- Category C --------]
[--- Col 1 ---][--- Col 2 ---][------- Col 3  --------][--- Col 4 ---][--- Col 5 ---]

This should be relatively easy, except I don't know how to find out the cell locations for the column headers. Because my cells cannot be moved, I tried adding up the cell widths, I had some success - except when use the horizontal scroll bar.

Please can someone explain how to get the cell locations.

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 03 Feb 2011
7 answers
340 views
HI,

Is to edit the property of RadSpinEditor.Text??
Example put in the time format.

Marcelo
Peter
Telerik team
 answered on 03 Feb 2011
1 answer
370 views
Hello:

Our controls do not validate until after the user tabs off, which is the default for binding (OnValidating). However, in the case where the use clicks a save button, validation is taking place after the save event fires. This leads to situations where the changes aren't saved and the user closes the form, losing their changes.

In Windows Forms, you could call ValidateChildren to force the controls to bind to the underlying data object. This doesn't appear to work with Telerik controls.

Is there a way to force changes to commit to the data object before the save takes place? I don't want to change the binding DataSourceUpdateMode to OnPropertyChanged.

Thanks,
Travis Parks
Stefan
Telerik team
 answered on 03 Feb 2011
3 answers
168 views
Hi there guys

I'm trying to customize the filtering row in a Winform Telerik Grid. What I want is to hide the Filter Icon and only show the text boxes. When a user enteres text in the text box it should apply the "Contains" filter on the column.

I have been using Telerik ASP Net. Radgrid quite a lot and could set the "ShowFilterIcon=false" and on the gridboundcolumn and "AutoPostBackOnFilter=true" to get the desired functionality.

Any hints?
Richard Slade
Top achievements
Rank 2
 answered on 03 Feb 2011
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?