Does anyone have any examples of using the RadSpellChecker with the WinForm DataGridView? I'm trying to integrate these together and I'm not finding any examples or guidance.
Thanks
Hi,
I want visible range minimum / maximum of vertical axis after zoom in.
Image1 is default view
Image2 is zoom view
How to get visible range of 12437.1275 & 11437.1275 after zoom
I'm trying to remove the sort arrow from column headers in the RadListView control.
I attached an image for example.
Thank you.
Using Telerik UI for WinForms 2019.1.117.40
Have a form with multiple controls including RadMultiColumnComboBox. Dropdownstyle is DropDownList. I see the RadMultiColumnComboBox receives focus when tabbing thru the controls, but it will not receive keyboard input initially. I can get it to receive keyboard input on subsequent times if I use the mouse to open the drop-down & close the drop-down 1st.
Sequence of actions:
1. tab thru controls to set focus on RadMultiColumnComboBox <---- keyboard input does not work
2. tab to another control
3. tab to RadMultiColumnComboBox <----- keyboard input still does not work
4. use mouse to click the drop-down arrow to open
5. use mouse to click arrow to close drop-down
6. use mouse to click on another control
7. tab thru controls to set focus on RadMultiColumnComboBox <---- keyboard input NOW works.
I have tried in code to open and close the drop-down and then tabbing to it, but keyboard input still does not work. Keyboard input only works after I have used the mouse one time to open & close the drop-down.
Is there a way to get the keyboard input to work every time?
I found this code on telerik resource site. This function return value of LinearAxis,
Private Function GetVerticalAxisValueFromMouse(ByVal e As MouseEventArgs) As Object
Dim axis As LinearAxis = TryCast(RadChartView1.Axes(1), LinearAxis)
Dim delta As Double = axis.ActualRange.Maximum - axis.ActualRange.Minimum
Dim totalHeight As Double = axis.Model.LayoutSlot.Height
Dim ratio As Double = 1 - (e.Location.Y - Me.RadChartView1.Area.View.Viewport.Y - axis.Model.LayoutSlot.Y) / totalHeight
Dim value As Double = axis.ActualRange.Minimum + delta * ratio
Return value
End Function
I want to get value of CategoricalAxis value from CandleStick Chart
Hello,
I am trying to bring into view all elements of a diagram, but cannot manage to fit it to screen. Is there any workaround for BringIntoView method?
I tried to use the followings and won't work.
Last piece of code sometimes works, sometimes doesn't.
Is there a formula to calculate the bounds, the view port size and zoom to fit all elements of a diagram into view?
Thank you!
1.
var box = selectedHardwareVariant.Shapes.GetEnclosingBounds();
selectedHardwareVariant.DiagramElement.BringIntoView(box, false);
selectedHardwareVariant.DiagramElement.Controller.OnViewportC
hanged();
2.
var box = selectedHardwareVariant.Shapes.GetEnclosingBounds(); selectedHardwareVariant.PanToPosition(box.Center()); selectedHardwareVariant.DiagramElement.BringIntoView(box, false); selectedHardwareVariant.DiagramElement.Controller.OnViewportChanged();
3.
Telerik.Windows.Diagrams.Core.DiagramConstants.MinimumZoom = 0.001;
Telerik.Windows.Diagrams.Core.DiagramConstants.MaximumZoom = 50;
selectedHardwareVariant.AutoScroll = true;
selectedHardwareVariant.AutoLayout = true;
selectedHardwareVariant.ZoomIn(1);
selectedHardwareVariant.Zoom = 1;
selectedHardwareVariant.DiagramElement.Controller.OnViewportChanged();
var box = selectedHardwareVariant.Shapes.GetEnclosingBounds();
selectedHardwareVariant.PanToPosition(box.Center());
selectedHardwareVariant.DiagramElement.BringIntoView(box, false);
selectedHardwareVariant.DiagramElement.Controller.OnViewportChanged();
IEnumerable<
IShape
> shapesOutside = selectedHardwareVariant.DiagramElement.Shapes.Where(x => !selectedHardwareVariant.DiagramElement.IsInViewport(x));
for (int i = 0; i <
shapesOutside.Count
(); i++)
{
double
newZoom
=
Math
.Round(selectedHardwareVariant.Zoom/1.1, 3);
box
=
selectedHardwareVariant
.Shapes.GetEnclosingBounds();
selectedHardwareVariant.DiagramElement.PanToPosition(box.Center());
selectedHardwareVariant.DiagramElement.Controller.OnViewportChanged();
selectedHardwareVariant.ZoomOut(newZoom, box.Center());
selectedHardwareVariant.Zoom
=
newZoom
;
if (selectedHardwareVariant.DiagramElement.Shapes.All(x => selectedHardwareVariant.DiagramElement.IsInViewport(x)))
{
break;
}
}
Hello,
I'm having some troubles with the alignment of any control in a layout or panel. Perhaps, I'm missing something trivial. Appreciated your help in this regard.
The attached image shows the basic approach that I'm looking for. Using RadLayoutControl or RadPanel, I'm not able to keep any control center aligned during design time. It this possible in any way?
Thanks
Lao