Telerik Forums
UI for WinForms Forum
4 answers
508 views
How do I allow only one row in a hierarchical RadGridView to expand at a time?
Nadya | Tech Support Engineer
Telerik team
 answered on 06 Jan 2021
2 answers
122 views

As title.

My xaxis is DateTimeCategoricalAxis and how to use ScatterSeries?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jan 2021
1 answer
137 views

         i would like to drag RadTreeView Node to  winform standard Panel, but when i drag and drop  to the panel , my mouse always busying

         my code as fellows 

         

          panel   is   System.Windows.Forms.Panel panel

           this.tree  is  RadTreeView

 

           this.panel.AllowDrop = true;
            this.tree.AllowDrop = true;
           

            this.tree.ItemDrag  += Tree_ItemDrag;
            this.tree.DragEnter += new DragEventHandler(this.tree_FunctionList_DragEnter);

            this.panel.DragEnter += Panel_DragEnter;
            this.panel.DragDrop  += Panel_DragDrop;

 

        private void Tree_ItemDrag(object sender, RadTreeViewEventArgs e)
        {
            RadTreeNode tn = e.Node as RadTreeNode;
            if (tn != null)
            {
                (this.tree).DoDragDrop(tn, DragDropEffects.Copy);
            }
        }

        private void tree_FunctionList_DragEnter(object sender, DragEventArgs e)
        {
            e.Effect = DragDropEffects.Copy;
        }



        private void Panel_DragDrop(object sender, DragEventArgs e)
        {
            RadTreeNode node = e.Data.GetData(typeof(RadTreeNode)) as RadTreeNode;
            Console.WriteLine(node.Text);
        }

        private void Panel_DragEnter(object sender, DragEventArgs e)
        {
            e.Effect = DragDropEffects.Copy;
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jan 2021
10 answers
451 views
I'm using RadControls for WinForms 2008.3 1321.

I built an application, using a RadForm as main form. If I run it on a local computer everything looks good. But if I connect a remote computer via terminal services (remote desktop / RDP protocoll) which is running a "XP based" operating system (e.g. Windows XP oder Windows Server 2003) there is an issue:

The caption bar of the RadForm won't get drawn correctly. It is invisible, most time completely, sometimes just the left part (the one with the image). But it is there, obviously: if I click on the right place of the "invisible" caption bar I'm able to drag, minimize or close the window although I don't see the system menu buttons nor the whole bar itself. If I move the window outside the visible bounds of the screen and back to screen again the caption bar gets drawn correctly, with all images, titles, buttons and so on. But if I minimize/restore the window after this the drawing problems appear again.

As I said above the issue seems to occure only on XP based remote systems. On computers running a Vista derivative (like any Vista version or Windows Server 2008) the whole window gets drawn correctly. The problem is also independent from the RDP client. It occures the same if I use a XP station or a Vista station as client, which both have different RDP client versions. The RDP connection settings (as color depht oder performance settings) are also unimportant. Furthermore, only the caption bar of the form is affected but none of its contents (and I use a lot of RadControls in it), including main menu or status bar.

Can anybody confirm similar issues - and has a solution maybe?

Regards,
ReneMT
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Jan 2021
1 answer
109 views

I am using the built-in drag and drop service.   I have 3 grids.   

 

I am implementing it so I can drag and drop Grid 2 rows onto rows of either Grid 1 or Grid 2.

 

I have no problem of dragging the Grid 2 Rows to a row in Grid 1.  All is working fine.

However if I drag rows from Grid 2 to Grid 3, I cannot get the svc_PreviewDragDrop event to trigger.  It will trigger if I drop it on the grid in general, but not if I drop it on a row in Grid 3.  

 

Cannot figure out what I am doing wrong.  

 

Thank you

 

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Jan 2021
1 answer
97 views

I would like to select all rows based on the text typed in the search box or create a collection  of rows that contain the search text. 

 

For example if the user types 'cat" into the search box. is there a way to auto select those rows so the user could drag and drop.  I have the drag and drop working for selected rows, just wanted a new way  in selecting rows.   

 

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Jan 2021
2 answers
207 views

For a SelectionChanged event in a hierarchical RadGridView, how do I test to determine which template had a row selection change?

James
Top achievements
Rank 1
Veteran
 answered on 04 Jan 2021
3 answers
143 views

Hi.

I have a problem that I could not solve somehow.

I have three CheckedDropDownLists, a button and a gridview.

My goal is to filter the data (List <SomeClass>) linked to the gridview with CheckedDropDownList elements.(I know Gridview has filtering feature and I already use it. But gridview's filtering feature hides data outside of the filter.)

I want to filter the list that I have connected to the Gridview as a data source according to the criteria I have selected with these three CheckedDropDownLists and link the newly created list to the GridView as a data source.

These are simple operations that have thousands of examples on the Internet, and I've already done so far here. 

The main problem is I can't make these three CheckedDropDownLists interactive with each other. When I make a selection on one, I want the other two updated accordingly.

If I have selected 4 company numbers from the CheckedDropDownList, which lists the company number values, the names of these four companies will appear in the CheckedDropDownList, which lists the company names. I want it to show the calculation ID values of these companies in the other CheckedDropDownList that lists the calculation Id values. It seems a little complicated, but I hope I could explain it.

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Jan 2021
1 answer
118 views

I found this thread https://www.telerik.com/forums/binding-to-rangestart-and-rangeend-of-radrangeselector that RadRangeSelector's StartRange and EndRange has been changed when data object changed.

Data object can not change when I change RadRangeSelector's StartRange and EndRange by UI.

Followed as my sample code:

public partial class Form2 : Form
{
    private readonly RangeDataObject dataObject = new RangeDataObject { StartRange = 0, EndRange = 100 };
 
    public Form2()
    {
        this.InitializeComponent();
 
        this.radRangeSelector1.DataBindings.Add(
            new Binding("StartRange", this.dataObject, "StartRange", false, DataSourceUpdateMode.OnPropertyChanged));
        this.radRangeSelector1.DataBindings.Add(
            new Binding("EndRange", this.dataObject, "EndRange", false, DataSourceUpdateMode.OnPropertyChanged));
    }
 
    private void Form2_Load(object sender, EventArgs e)
    {
    }
}
 
public class RangeDataObject : INotifyPropertyChanged
{
    private float startRange;
 
    private float endRange;
 
    public event PropertyChangedEventHandler PropertyChanged;
 
    public float StartRange
    {
        get { return this.startRange; }
        set
        {
            if (this.startRange != value)
            {
                this.startRange = value;
                this.OnPropertyChanged("StartRange");
            }
        }
    }
 
    public float EndRange
    {
        get { return this.endRange; }
        set
        {
            if (this.endRange != value)
            {
                this.endRange = value;
                this.OnPropertyChanged("EndRange");
            }
        }
    }
 
    protected virtual void OnPropertyChanged(string propertyName)
    {
        if (this.PropertyChanged != null)
        {
            this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
Peter
Telerik team
 answered on 04 Jan 2021
2 answers
479 views

Hi.
I have a RadGridView that SelectionMode property is set to CellSelect.

Dictionary<int, string> drms = new Dictionary<int, string>();
 
private void ddlSetDurum_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            if (ddlSetDurum.SelectedIndex != 0)
            {
                drms.Clear();
 
                foreach (var item in rgvTakip.SelectedCells)
                {
                    int i = item.RowInfo.Index; // Works fine if no column filtering is done
                    if (!drms.ContainsKey(i))
                    {
                        drms.Add(i, rgvTakip.Rows[i].Cells["tkd"].Value.ToString());
                        rgvTakip.Rows[i].Cells["tkd"].Value = ddlSetDurum.SelectedText; 
                    }
                }
                isDurumSet = true;
                ddlSetDurum.SelectedIndex = 0;
            }
        }

 

After filtering by any column, when I try to get the row index of the selected cells, it gives me the index number in the rows created after the filtering process.

When I want to change the value of a cell using the obtained row index, this time it works according to the original table, not the filtered table.

So I have to get the original index number of that cell before filtering.

Nadya | Tech Support Engineer
Telerik team
 answered on 04 Jan 2021
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
ProgressBar
CheckedDropDownList
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
VirtualKeyboard
NavigationView
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?