Telerik Forums
UI for WinForms Forum
1 answer
130 views

I have a GridViewComboBoxColumn and while in edit mode I want the StretchVertically to be false so I use the following code:

this.radGridView1.CellBeginEdit += RadGridView1_CellBeginEdit;

private void RadGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
switch (e.Column.Name)
{
case "MyColumn":
RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
if (editor != null)
{
editor.EditorElement.StretchVertically = false;
editor.EditorElement.Alignment = ContentAlignment.TopLeft;
}

But the dropdownlisteditor is still vertically centered in the cell. Is there a way to have it TopLeft?

Dimitar
Telerik team
 answered on 21 Jun 2017
3 answers
104 views

Hi,

I defined  item and dragged it to the radDiagram. 

My question is how to find the items by ID? 

When I found the IDs, I would connect two items programmatically. <Source and target are known>.

I used this code

 MessageBox.Show(radDiagram1.Shapes[0].Name.ToString());

but nothing ...

But when I used this code

MessageBox.Show(radDiagram1.Shapes[0].Width.ToString());

the width was shown!

I need to find the items individually. 

Thank you

 

Dimitar
Telerik team
 answered on 21 Jun 2017
16 answers
1.6K+ views
Hi guys,

I fall into a problem of performance when binding a BindingList<T> to a grid where T implements INotifyPropertyChanged interface.

Exactly, what happens is that, having a lot of rows (10000), when I change a property of one object the FirePropertyChanged method takes some seconds and I don't understand why.

Can someone help me about that?

Thanks in advance.

Stefano.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Jun 2017
4 answers
102 views

Is there a way to change the button on the collapsible panel from a round button to a rectangle?  I would have TEXT in the button instead of a UP/DOWN arrow?

 

TIA

Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
 answered on 20 Jun 2017
16 answers
1.3K+ views
Hi,

I have a hierarchical grid with some childs. Now I need to set programatically the right Row and Column in the grid (after the user has clicked somewhere). In the normal grid this is easy and goes just this:

grid.CurrentRow = grid.Rows[rowIndex];<br>grid.CurrentColumn = grid.Columns[fieldIndex];


But when the cell is in one of the child grids it gets complicated. After searching the grid I know in which child in which row it is. Since the rows in each child grids are also zerobased, my only solution to set the correct line is this one (if it is in the first level of the hierarchy):

grid.CurrentRow = selectedRow.ViewInfo.ParentRow.ChildRows[rowIndex];

But I cannot get set the correct column.
grid.CurrentColumn = selectedRow.ViewInfo.ParentRow.ChildRows[rowIndex].ViewTemplate.Columns[fieldIndex];

The expression on the right side returns the correct index. But assigning to grid.CurrentColumn doesn't change anything. No error, but also no setting of the currentcolumn.

  1. Can anybody help how to set this correctly?
  2. Is there a more elegant generic solution to get to right child? For now I would just need to hardcode the access to each child level.

Thanks,
Michael                                     
                                    
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jun 2017
3 answers
175 views
We are using an unbound hierarchical RadGridView. 

When there is a MouseDown click event on a cell in a child grid, how can we find out which GridControl the cell belongs to?
Dimitar
Telerik team
 answered on 20 Jun 2017
0 answers
115 views

Hello to all
Is there a way to leave the first empty line of the MulticolumnComboBox for example when I open the form that contains it?
I do not know if I explained it well

Fabrizio

fabrizio
Top achievements
Rank 1
Veteran
 asked on 20 Jun 2017
2 answers
168 views

Hi,

I am trying to add/remove Pages based on selection made during the a Page step. How can i do that?

Eg. If user select Radio button A in Step 2, i want to skip 3 steps next to it and add few more.

Please help.

 

Thanks

Binu

 

Binu
Top achievements
Rank 1
 answered on 19 Jun 2017
4 answers
298 views

Hi,

 

I am utterly confused by my inability to format numbers in a VirtualGrid to only show three decimals. I can find no access to a "Columns" property, and when using the CellFormatting event, I am unable to utilize CellElement.FormatString (VS tells me the set accessor is inaccessible in that context)...

 

How can I prevent numbers from showing as 1.23456489456987654 and instead show 1.235 (for instance), without converting the underlying data itself?

 

Any help appreciated, because I am convinced this must be a trivial operation, which got me to search for hours - to no avail.

 

For reference, here is what I was trying with the CellFormatting event that will not compile for me:

 

       private void rvgData_CellFormatting(object sender, VirtualGridCellElementEventArgs e)
        {
            if (e.CellElement.RowIndex > -1)
            {
                if (e.CellElement.ColumnIndex > 1)
                {

/* This yields: Error    CS0272    The property or indexer
'VirtualGridCellElement.FormatString' cannot be used in this context
because the set accessor is inaccessible */
                    e.CellElement.FormatString = "...";
                }
            }
        }

 

And there's for something else that's frustrating: your code editor on this site does not seem to work on Firefox/Mac...

 

Seb
Top achievements
Rank 1
 answered on 19 Jun 2017
4 answers
123 views

Hi,

is it possible to move selected cell of PivotGrid with keyboard (arrows keys, like in Excel)?

Alex

 

Hristo
Telerik team
 answered on 19 Jun 2017
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?