Telerik Forums
UI for WinForms Forum
1 answer
78 views

Hi all,

I have C# class called EventHandler that looks like this. StartTime and EndTime both represent the number of seconds since the start of its "parent", which is basically just a list of Events.

 

public class EventHandler
{
    public Event Event;
 
    public float StartTime => Event.StartTime;
    public float EndTime => Event.EndTime;
}

 

I'm trying to use RadGanttView to display the parent, (i.e. a List<Event>), but since StartTime and EndTime are both relative and don't have specific dates, I'm not sure where to begin. Values are both also typically below 5 seconds. Can anyone point me in the right direction?

Thanks in advance!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Mar 2019
3 answers
215 views

I have 2 telerik gridviews - overall & details. 

What is the easiest way to print invoice using the information in Telerik winform gridview?

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Mar 2019
1 answer
135 views

Hi, I try to copy/paste merged cells, when right click appears a menu with copy/paste options, when copy a cell or range of cells anything is wrong, but when paste the cells appear a popup that say "Cannot change part of a merged cell." Anyone know about this?

 

Thanks

Nikolay Demirev
Telerik team
 answered on 13 Mar 2019
0 answers
156 views

Hello everyone.

     When I use the RadGridView control, I want to add data to the table that can be entered into four decimal places, but when the data is entered,

 it automatically rounds to save two decimal places; I want it to show how to solve multiple decimal places;

hong
Top achievements
Rank 1
 asked on 13 Mar 2019
5 answers
124 views

Create new Word-inspired project. Add the event handler below:

private void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is EditFooterCommand)
    {
        e.Cancel = true;
    }
}

 

If document is not protected then user cannot enter the footer, either by menu or by double-click. If the document is protected (menu Review > button Protect Document) the user cannot edit the footer (as document is protected), nor can they enter it by menu (Insert > Footer), but they can still enter it by double-click. Is there a way to prevent them even from entering the footer by double-click when the document is protected?

Boby
Telerik team
 answered on 12 Mar 2019
8 answers
643 views
Hi,

How to use default context menu items like copy from radgrid context menu as i am able to use delete item from a gird , delete a  row by right clicking on the context menu items and able to delete a row, similarly i need copy a row using context menu  copy


Thanks,
Senthil
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Mar 2019
1 answer
187 views

Hello,

My gridview is in bound mode. I reorder the rows by drag & drop. I'm inspired by this telerik github demo:

https://github.com/telerik/winforms-sdk/tree/master/GridView/BoundGridReorderRows/GridViewRowsReorderBoundModeVB

I change the order of data source in order to reorder the rows by drag & drop. It worked well.

But if a column is sorted, any drag & drop cannot be toke into account. And then if I canceled a column sorting, the order synchronize well by drag & drop.

I wonder the column sorting maybe changed the order of child rows, not the order of rows, but then I change the order of rows (data source) by drag & drop, the order of child rows stays put strangely. So that's why there is no reordering affecting the display.

What happens between child rows and rows when I cancel the column sorting ?

What is the way out of this situation?  I would like drag & drop has higher priority than column sorting/grouping.

 

Thank you by advance.

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Mar 2019
1 answer
270 views

Hello,

I am wondering if it is possible to set a RadContextMenu for certain nodes when creating them programmatically.

For example, my tree will look something like this:

[MAIN NODE]

    [Child1]

    [Child2]

[MAIN NODE 2]

    [Child1]

    [Child2]

 

Would it be possible to have a RadContextMenu only for the parent node, and then a separate RadContextMenu for all the Child nodes?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Mar 2019
0 answers
129 views

Dear all,

After setting the selectionmode attribute to CellSelect in RadGridView, look at the photos below.

Click on the area in the red circle and the back cell row becomes highlighted in orange. However, the inner part of the circle does not change color.

This is not a whole row selection, I need a whole row selection

Is that possible?

What should I do?

Best wishes

Ricardo
Top achievements
Rank 1
 asked on 12 Mar 2019
1 answer
229 views

I have a GridViewComboBoxColumn whose autocomplete behavior is undesired upon first cell click. Users are entering in a value, but when they first try to do something their input isn't properly appending to what they type and instead appends the first suggestion entirely onto their input. Please see UndesiredBehavior.gif.

Strangely enough, if they delete everything in the cell or change it and go back to it later on, then the behavior is desired: suggestions are being appended properly to what their input is. Please see DesiredBehavior.gif.

I am having a work around right now by instructing users to CTRL + A upon first entering into the cell and then deleting whatever is appended to their first key stroke, and then typing again, but I get complaints from users that they shouldn't have to do this.

Here is my code. Any suggestions?

         private void radGridViewDetail_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {

            if (e.ActiveEditor is RadDropDownListEditor)
            {
                //RadDropDownListEditor editor = (RadDropDownListEditor)e.ActiveEditor;
                RadDropDownListEditor editor = this.radGridViewDetail.ActiveEditor as RadDropDownListEditor;
                if (editor != null)
                {
                    RadDropDownListEditorElement element = (RadDropDownListEditorElement)editor.EditorElement;
                    element.AutoCompleteSuggest.DropDownList.SelectAllText();
                    element.AutoCompleteSuggest.DropDownList.DropDownSizingMode = SizingMode.UpDownAndRightBottom; // This does not work
                    element.ArrowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; // This works
                    element.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
                    element.AutoCompleteSuggest.DropDownList.DropDownMinSize = new Size(275, 100);
                    element.AutoCompleteSuggest.DropDownList.MaxLength = 30;    
                switch (radGridViewDetail.CurrentColumn.Name)
                    {
                        case "CO":
                            element.AutoCompleteSuggest.DropDownList.DropDownMinSize = new Size(100, 100);
                            element.AutoCompleteDataSource = companyCodeTable;
                            element.AutoCompleteDisplayMember = "COMP_CODE";
                            element.AutoCompleteValueMember = "COMP_CODE";
                            element.DropDownWidth = 200;
                            break;
                        case "CC":
                            int minimumWidth = int.Parse(costCenterTable.Rows[0]["MAX_LEN"].ToString()) * 8;
                            element.AutoCompleteSuggest.DropDownList.DropDownMinSize = new Size(minimumWidth, 100);
                            element.AutoCompleteDataSource = costCenterTable;
                            element.DisplayMember = "ADDRESS";
                            element.ValueMember = "COST_CENTER";
                            element.AutoCompleteDisplayMember = "ADDRESS";
                            element.AutoCompleteValueMember = "COST_CENTER";
                            break;
                        case "Acct":
                            element.AutoCompleteSuggest.DropDownList.DropDownMinSize = new Size(275, 100);
                            element.AutoCompleteDataSource = glMajorTable;
                            element.DisplayMember = "ACCT_DESC";
                            element.ValueMember = "GLMAJOR";
                            element.AutoCompleteDisplayMember = "ACCT_DESC";
                            element.AutoCompleteValueMember = "GLMAJOR";
                            break;
                    }
                }
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Mar 2019
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?