Telerik Forums
UI for WinForms Forum
3 answers
131 views

Hello,

 

I'm facing a pretty strange behavior when unpinning a column in a RadVirtualGrid:

1. Pin (left or right) 1st column
2. Scroll horizontally (to not display 2nd column)
3. Unpin 1st column
4. Scroll horizontally to display 1st column
=> 1st column is hidden, the only way to make it visible is to resize a column or the entire window

 

It seems to be a bug and I'm trying some workaround:
- Is there a way to force refresh the grid ? (RadVirtualGrid.TableElement.SynchronizeRows is not working in this case)
- Is there an event that can be captured on column pinned state change, in order to force a refresh at this time ?

 

Regards.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Dec 2016
4 answers
470 views
I am building an Winforms application where the user can select his interface language (en, fr) I managed to translate about all items but not the grid column header texts.
Is there a way to load the column headers from a resource file ? Or how should it be done ?

Thanks in advance

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Dec 2016
1 answer
129 views

Hi,

 

I was wondering if any one can help me dock a RadButton to the parent container so that when the Radform is opened and the user maximizes or minimizes the screen, the RadButton will autolocate to the same location respective to the current screen size?

 

Thank you.

Dimitar
Telerik team
 answered on 19 Dec 2016
2 answers
108 views

Hello

I have two questions about the GridViewComboBoxColumn:

 

1. When I start editing a cell form a GridViewComboBoxColumn it always clears the currently displayed value. How can I disable that?

2. How can I change the item height of the drop down list? Is there something like the ItemHeight property of the ListElement of a RadDropDownList?

 

Best regards

Matthias Reiseder

Matthias
Top achievements
Rank 1
 answered on 19 Dec 2016
7 answers
331 views
Hi,

is it possible to reset the text of a breadcrumb (databind on treeview)?

.ResetText does not work...

A workaround could be to perform a click on the treeview programatically to get an update of the breadcrumb, but this doesn't seem to work either. I tried radtreeview.RootElement.PerformClick() without success.

A Clear-Method for the breadcrumb should be helpful for the beginning, but I didn't found one.

Best regards

Nadine
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Dec 2016
3 answers
156 views

I have a radform with 3 panels. The middle panel displays the initial window and any called child forms as this is the mdi parent. I found I could disable floating in each window by placing the following code:

        this-object:radcenterWindow:AllowedDockState = Telerik.WinControls.UI.Docking.AllowedDockState:All and not Telerik.WinControls.UI.Docking.AllowedDockState:Floating.

 

How can I disable floating on any loaded child form?

        define variable r-object as class Telerik.WinControls.UI.RadForm.

        define variable r-program as character no-undo.
        r-program = "programs.POSPRO".
        r-object = dynamic-new r-program().
        r-object:MDIParent = this-object.
        r-object:show().

 

Thanks

Mark

Hristo
Telerik team
 answered on 15 Dec 2016
6 answers
463 views
Is is possible to create an Expandable drop down converter object at Runtime.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2016
1 answer
74 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
217 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
98 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
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?