Telerik Forums
UI for WinForms Forum
1 answer
178 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
262 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
120 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
203 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
2 answers
1.0K+ views

Hello, I'm currently integrating an API into my application. This API sends out emails, but linebreaks needs to be in \n format. Now, my question is how do I replace the regular (I suppose enviroment.newline) with \n. I tried to do a txtMailMessage.Text.Replace(.....) but it does not work. 

 

Thanks in advance

Nicklas
Top achievements
Rank 1
 answered on 11 Mar 2019
3 answers
104 views

When the user clicks on my shape, I'd like to make the outline red, and maybe thicker border. How can I accomplish this?

I thought it would just be a matter of putting this in my ElementShape-derived classes, but it seems my overrides for ForeColor and BackColor are only called when a new shape is placed on the diagram.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Mar 2019
5 answers
914 views

Dear All,

I wanted to alternate the rows in my RadGridView, but the way I searched was using RowFormatting events, which I didn't want to use.

Is that possible?

Best wishes.

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

Hello,

I use range seletor to associate with a radchartview.

If I associate the RadChartView control to RadRangeSelector both in design time and in program (in the function "form_load"), there is a strange behavior.

After I changed the form size, the range selector will initialize start range and end range by which means it cannot memorize the start/end range set by the movement.

However, if I only do "Me.radRangeSelector1.AssociatedControl" ONCE in the design time or in the program, the problem will be disappeared.

In my opinion, there is a bug in RadRangeSelector. It cannot support AssociatedControl 2 times. This issue doesn't appear for the other proprieties, even I set the other proprieties both in design time and in program.

I made a simple demo, please download here:

https://www.dropbox.com/s/u61lk7yql1ua25f/TestRangeSelector.rar?dl=0

 

In order to reproduce the issue:

step 1. launch the demo

step 2. move range selector

step 3. change the form size

You will see the range selector return to its original location.

You can remove this line in RadForm1_Load:

RadRangeSelector1.AssociatedControl = RadChartView1

 

Or remove the associated control in design time. You will find range selector can memorize the location all the time.

 

It makes us lot of time to find out. If it is a bug, please correct it. If it is not, any explication ?

 

Thank you by advance.

Regards,

 

Hristo
Telerik team
 answered on 07 Mar 2019
3 answers
505 views
I am trying to modify the color of the filter row in a RadGridView in the visual style builder.  I have changed the BackColor property of the GridFilterRowElement but the filter row cell color does not change.  Am I setting the wrong property?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Mar 2019
1 answer
362 views

In Excel, holding onto a single value, you can paste it across all cells of a rectangle that you draw. I would like to duplicate this behavior with radGridView. Is it possible? I have tried it in my own program but it doesn't seem that the value is pasted across all cells selected, just the first one that was clicked on.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 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)
Chart (obsolete as of Q1 2013)
Form
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?