Telerik Forums
UI for WinForms Forum
3 answers
361 views
How to display the numeric datagridview , (ie) all rows and columns must accept only numeric values .. and to mask the cells in this format - 0000.00
Richard Slade
Top achievements
Rank 2
 answered on 04 Feb 2011
1 answer
190 views
I am using the Timeline-View. I found the property "HeaderFormat" and the header (displaying the time range) gets formatted accordingly. But how can I format the second header which displays the individual day?

TIA
Heiko
Dobry Zranchev
Telerik team
 answered on 03 Feb 2011
11 answers
305 views
Is there a way to get that using ColumnGroupsViewDefinition. I have a Columngroup with 3 rows in them and I want each of them to have a distinct color.

Thanks
Deepak
Richard Slade
Top achievements
Rank 2
 answered on 03 Feb 2011
9 answers
223 views
Afternoon,

I'm working on a little idea and wondered if it would be the best way to go. Basically i'm working on a basic CRM system for a sales environment. The section i'm working on is based around recording quotes. As a helpful reporting tool i'm now going to try to record from when the quote was opened to when it was won as this will show turn around times.

Now the problem I have is trying to record that difference. My current idea is for them to have a checkbox which they tick to indicate it has been won and then to record the datetime in another cell. This will then give me my start and finish dates. I've looked at both using a custom popup editor like the one here http://www.telerik.com/support/kb/winforms/gridview/create-pop-up-user-control-for-row-editing.aspx and using a checkbox column in the gridview. It is my feeling that the gridview checkbox would be the simplest way to go.

What I'm stuck on is how to, when the checkbox is selected, set the value of another cell in the same row with the current datetime. I think I would also want it so that once the checkbox has been ticked, it cannot be unticked else the results would be modified for the reporting end of things.

Is this the best way to go or is there a better solution? Any ideas or help would be greatly appreciated.

Regards,

Guy
Richard Slade
Top achievements
Rank 2
 answered on 03 Feb 2011
4 answers
256 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
296 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
168 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
160 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
173 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
108 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?