Telerik Forums
UI for WinForms Forum
1 answer
180 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
166 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
177 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
111 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
254 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
401 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
418 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
214 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
9 answers
222 views
Is automatic DataBinding with a TelerikDropDownButton possible?
When I'm binding a DataSoure to a TelerikDropDownButton does it only shows the first line in the table. 
Must I create manually all items by a function when I load the form or is here an automatic mechanism?

thanks in advance
guy
Petar Mladenov
Telerik team
 answered on 03 Feb 2011
1 answer
190 views
I need to use two button columns on a grid view and to pop up win forms when each button is clicked.
On the cell click event other columns are identified but not the button columns,

How can I fix this??
Any help will be highly appreciated.

:-(
Richard Slade
Top achievements
Rank 2
 answered on 02 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
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?