Telerik Forums
UI for WinForms Forum
2 answers
158 views

I have a RadForm with RadCollapsiblePanel docked left and a RadStatusStrip on bottom docked.

How is it possible to dock/fix the Statusbar complete on bottom and dock the CollapsiblePanel on the StatusBar?

The CollapsiblePanel is always left to the StatusBar and resize it.

Martin
Top achievements
Rank 1
 answered on 25 Nov 2019
14 answers
2.0K+ views
I edited the UI element for a DropDownButton by setting the Shape of the RadDropDownButtonElement to roundRectShape1.  It is working just fine.  However, there is still a square border outside each corner as shown in the attached file.  How can I get rid of this?
jiang
Top achievements
Rank 1
 answered on 25 Nov 2019
1 answer
99 views
Hello everybody
I would like to test if Test if RadGridView.MasterTemplate.LoadFrom (datareader) is successful and show a message box
Thanks so much
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Nov 2019
7 answers
605 views

Hi,

I want the user to be able to insert a new item in the combobox (via the underlying TextBoxEditor).

When entered, the user should see the newly added item as selected in the combobox.

I'm probably missing an event or not making the add/set DataSource at the good place.

I'm doing everything in the CellEndEdit event handler of the grid.

 

Reproduce: double-click on "Type 1", type any text and change the column.

If you re-open the content of the combo, the new item is there

public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        private List<KeyValuePair<string, string>> _list;
 
        public RadForm1()
        {
            InitializeComponent();
 
            this.Load += RadForm1_Load;
 
            radGridView1.CellEndEdit += RadGridView1_CellEndEdit;
        }
 
        private void RadForm1_Load(object sender, EventArgs e)
        {
            _list = new List<KeyValuePair<string, string>>();
 
            _list.Add(new KeyValuePair<string, string>(TestType.type_1.ToString(), "Type 1"));
            _list.Add(new KeyValuePair<string, string>(TestType.type_2.ToString(), "Type 2"));
            _list.Add(new KeyValuePair<string, string>(TestType.type_3.ToString(), "Type 3"));
 
            SetColumnDataset();
 
            LoadData();
        }
 
        private void SetColumnDataset()
        {
            var comboColumn = radGridView1.Columns["columnCombo"] as Telerik.WinControls.UI.GridViewComboBoxColumn;
            if (comboColumn != null)
            {
                comboColumn.DropDownStyle = RadDropDownStyle.DropDown;
                comboColumn.DataSource = _list;
                comboColumn.DisplayMember = "Value"// name to show
                comboColumn.ValueMember = "Key"// name of element of Guid of specific service
            }
        }
 
        private void LoadData()
        {
            radGridView1.Rows.Clear();
            GridViewDataRowInfo rowInfo = new GridViewDataRowInfo(this.radGridView1.MasterView);
            rowInfo.Cells["columnCombo"].Value = Guid.NewGuid().ToString();
            rowInfo.Cells["columnCombo"].Value = TestType.type_3.ToString();
            radGridView1.Rows.Add(rowInfo);
 
            rowInfo = new GridViewDataRowInfo(this.radGridView1.MasterView);
            rowInfo.Cells["columnCombo"].Value = Guid.NewGuid().ToString();
            rowInfo.Cells["columnCombo"].Value = TestType.type_1.ToString();
            radGridView1.Rows.Add(rowInfo);
        }
 
        void RadGridView1_CellEndEdit(object sender, GridViewCellEventArgs e)
        {
            // e.ActiveEditor.GetType()
            if (e.Column == radGridView1.Columns["columnCombo"])
            {
                if (e.Value != null && e.Value.ToString() != String.Empty)
                {
                    TestType enumVal;
                    bool isEnum = Enum.TryParse<TestType>(e.Value.ToString(), out enumVal);
                    if (isEnum)
                    {
                        // enumVal holds the value
                    }
                    else
                    {
                        AddNewColumnItem(Guid.NewGuid().ToString());
                    }
                }
                else
                {
                    AddNewColumnItem(Guid.NewGuid().ToString());
                }
            }
        }
 
        private void AddNewColumnItem(string name)
        {
            if (!_list.Any(x => x.Key == name))
            {
                _list.Add(new KeyValuePair<string, string>(name, string.Format("Type {0}", name)));
                SetColumnDataset();
            }
        }
    }
 
    public enum TestType
    {
        type_1,
        type_2,
        type_3
    }
sebastien
Top achievements
Rank 1
 answered on 21 Nov 2019
1 answer
181 views

I add RadCollapsiblePanel programmaticly to a form (Dock Top).

Is it possible to change the order of the CollapsiblePanel via Drag&Drop?

An alternative could be 2 Buttons (Up/Down) but D&D will be the best solution.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Nov 2019
3 answers
1.0K+ views
I was facing problem in setting the SelectedValue property of MutiColumnComboBox. Even after spending few hours in search and trying doing different things I couldn't figure out the problem. Just before submitting the support ticket I figured out that you need to set the property using the Object not the value. Here is the example.

//This doesn't work
MultiColumnComboBox.SelectedValue = 1;
 
//This is the correct way of seeting the value
MultiColumnComboBox.SelectedValue = "1";
 
//Another way
MultiColumnComboBox.SelectedValue = Convert.ToInt32(intValue).ToString();


Posting the as thread so others can save time.

Thanks
Muhammad Waseem

​

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Nov 2019
2 answers
232 views

Hi there,

I'm using the RadRichTextEditor the first time and I'm wondering if it is somehow possible to get only the HTML out of the editor. I've thought about something like:

1.string htmlText = txtText.Text; // while txtText is my RadRichTextEditor


But this returns me the plain text, without any html tags. I've seen I can export and import it using a HtmlFormatProvider. This worked great, but it is not exactly the thing I want, since it returns the whole HTML document instead of only the html I have in my text editor.

1.HtmlFormatProvider prov = new HtmlFormatProvider();
2.string htmlText = prov.Export(txtText.Document);

The output I wish would be something like this:

1.string htmlText = "This is a <b>bold</b> text. Great, isn't it?"

Regards,
Roman
Roman
Top achievements
Rank 1
Iron
 answered on 19 Nov 2019
1 answer
303 views

I have a simple test Form with just the RadWebCam control on it. When you first open the form, the camera runs at about 10-15fps. Once you take a snapshot it seems to move up fps.(v4.0.30319 - Win10, I7vPro, 16Ram)

Why does it shut the camera off every time you take a snapshot? How can I use it to capture multiple images one after another if it shuts the camera off and displays the image in the viewer after every snapshot?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Nov 2019
8 answers
1.9K+ views
How can I clear the row selection in RadGrid? grid.ClearSelection() does not working. I'm using version 2017.1.221.40. Thanks in advance.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Nov 2019
3 answers
215 views
Hello Telerik Team , Good time
When I open an Excel file in my program,The data is not displayed but when  I open an Excel file in Demo Application - Telerik UI for WinForms The data is displayed,  Although both  visual studio settings  and manifest file are the same
The relevant photo was attached.
thanks a lot
Dimitar
Telerik team
 answered on 18 Nov 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?