Telerik Forums
UI for WinForms Forum
1 answer
87 views

Dear forum,
I would like to know if it is possible to change the background color of the ActionButton of a RadSplitButtonElement when it is pressed (not expanded).

 

Any help is appreciated

 

Roberto

Dimitar
Telerik team
 answered on 15 Dec 2016
4 answers
226 views

Hello,

I was wondering if there is a way to know when the fire of CellValueNeeded event will end ? Like is there a way to know the cells row and column range on which the update/synchronize will be done ?

Hoping my question is understandable :)

 

Greetings.

Amand
Top achievements
Rank 1
 answered on 14 Dec 2016
1 answer
102 views

Hello,

I'm trying to add custom menu item to the header cells context menu but i have weird display when i am using derived class instead of RadMenuItem class directly (see attached image).

Can you explain to me what is wrong with my code ?

public class CustomOpMenuItem : RadMenuItem
{
    private MyForm _form;
    private int _columnIndex;
    private CustomOp _op;
 
    public CustomOpMenuItem (MyForm form, int columnIndex, CustomOp op)
    {
        _op = op;
        switch(_op)
        {
            case CustomOp.CUSTOM1:
                this.Text = "Custom 1";
                break;
            case CustomOp.CUSTOM2:
                this.Text = "Custom 2";
                break;
            case CustomOp.CUSTOM3:
                this.Text = "Custom 3";
                break;
        }
 
        _columnIndex = columnIndex;
        _form = form;
        this.Click += onClick;
    }
 
    private void onClick(object sender, EventArgs e)
    {
        _form.DoCustomOp(_columnIndex,_op);
    }
}
 
private void onContextMenuOpening(object sender, VirtualGridContextMenuOpeningEventArgs e)
{  
    for (int i = 0; i < e.ContextMenu.Items.Count; i++)
    {
        if (e.ContextMenu.Items[i].Text == "Pinned state")
        {
            // hide the Delete option from the context menu
            e.ContextMenu.Items[i].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
            if(i != 0)
            {
                // hide the separator before the Delete option
                e.ContextMenu.Items[i - 1].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
            }
        }
    }
 
    if (e.RowIndex == RadVirtualGrid.HeaderRowIndex)
    {
        RadMenuSeparatorItem separator = new RadMenuSeparatorItem();
        e.ContextMenu.Items.Add(separator);
        RadMenuItem customMenuItem = new RadMenuItem();
        customMenuItem.Text = "Custom Data Operation";
        e.ContextMenu.Items.Add(customMenuItem);
        e.ContextMenu.Items.Add(separator);
        e.ContextMenu.Items.Add(new CustomOpMenuItem(this, e.ColumnIndex, CustomOp.CUSTOM2));
        e.ContextMenu.Items.Add(separator);
        e.ContextMenu.Items.Add(new CustomOpMenuItem(this, e.ColumnIndex, CustomOp.CUSTOM3));
    }
}

 

Regards.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Dec 2016
1 answer
100 views
I Use Telerik.WinControls.UI.RadRibbonForm.
My application must use F10 key to do something.
But when user press F10 twice ,UI show some other thing that user not wanted.
Dimitar
Telerik team
 answered on 14 Dec 2016
2 answers
135 views

Looking at some options for modernizing an old scheduling application.

Is it possible to set scheduler to put the time and date on the same axis? All the demos/documentation I can find do not show anything similar.

David
Top achievements
Rank 1
 answered on 13 Dec 2016
2 answers
138 views

I have a RadForm that contains multiple Radtextboxes. How can I have one of them be the focused box once the form has opened?

I have tried placing both lines of code below in the constructor but neither initialize the cursor in the iUSERNAME text box.

this-object:iUSERNAME:Focus(). 
this-object:iUSERNAME:Select(). 

 

Thanks

Mark

Mark
Top achievements
Rank 1
 answered on 12 Dec 2016
5 answers
301 views

Hi, I'm evaluating this control.

I'm opening a docx file in the control as a RadDocument. The file is right to left file and showing two pages on the screen in the wrong direction (page 1 on the left) - event when I change the control to RightToLeft=Yes (this only changes the scroll to the other side).

I would like one of two options:

1. Show only one page on the screen at a time (scroll down will go to second page). I found this can be done when making my window small but I'd like it to open maximized.

2. Show two pages but in the correct direction (page 1 on the right and page 2 on the left).

Any help?

Thanks!!

Hristo
Telerik team
 answered on 12 Dec 2016
11 answers
721 views
When I use RadPdfViewer1.Print() or RadPdfViewer1.Print(True) to print, the printed document has been shrunk. If I use the Navigator it prints fine.


I did some testing this morning and have discovered that I get the same results with using RadPrintDocument to print using RadPrintDocument1.Print. 

What do I need to do to make this work properly?
Hristo
Telerik team
 answered on 12 Dec 2016
4 answers
822 views
How can I change page margins before radGridView.PrintPreview()?
Hristo
Telerik team
 answered on 12 Dec 2016
7 answers
259 views

Hello ,

I am trying to use a radCheckedDropDown list in a winforms application (C#).  The list is working the way I want it to except for 1 thing.

When I click the dropdown list it shows (which is correct) however while it is open if I start to type in the text area the text popup shows in front of the dropdown popup, and as a result you can click through to the drop down list.  What I would like is to close the dropdown portion when typing, and vice versa when using the drop down list. 

If I use a standard combobox I can accomplish this by  hooking the preview and the droppeddown events, however the radcheckeddropdownlist does not have the droppeddown event.

private void comboBox_DropDown(object sender, EventArgs e)

{

ComboBox cbo = (ComboBox)sender; cbo.PreviewKeyDown += new PreviewKeyDownEventHandler(comboBox_PreviewKeyDown);  

}

private void comboBox_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)

{

ComboBox cbo = (ComboBox)sender;

cbo.PreviewKeyDown -= comboBox_PreviewKeyDown;

if (cbo.DroppedDown) cbo.Focus();

}

 

Thanks,

Jeff

Dimitar
Telerik team
 answered on 12 Dec 2016
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?