If I am setting :
mygrid.TableElement.BeginUpdate()
mygrid.CurrentRow = Nothing
mygrid.TableElement.EndUpdate()
WHY IS CELLFORMATTING BEING CALLED ON CURRENT ROW???!?!?!?!?
Oh, that's right...I refuse to pay support to companies that don't know how to make a usable product.
I think the only solution to save my sanity is GET AWAY FROM TELERIK WINFORMS CONTROLS!
Nothing works as it should...NOTHING!
Hello,
I have issues with major step on the y linearAxis changing when zooming in. Generated ticks and corresponding grid is displayed correctly only in the case when whole chart is shown (zoom = 1). When I zoom in, interval between ticks on y axis is changed. Please note that I have applied similar logic on the zoom event on the x axis and it's working fine. However, it seems that MajorStep on the linear y axis cannot be changed in the same like MajorTickInterval on the categorical x axis. So, how to keep interval between ticks on the y axis constant after changing the zoom settings?
Here is the code snippet I'm using:
private
void
View_ZoomChanged(
object
sender, EventArgs e)
{
var horizontalAxis = radChartView1.Axes[0]
as
CategoricalAxis;
int
DesiredHorizontalTickInterval = 12;
double
horizontalScale = (radChartView1.View
as
IChartView).ZoomWidth;
int
zoomWidth = (
int
)(horizontalScale + .5);
if
(horizontalAxis.MajorTickInterval != zoomWidth * DesiredHorizontalTickInterval)
{
horizontalAxis.MajorTickInterval = zoomWidth * DesiredHorizontalTickInterval;
}
int
desiredVerticalMajorStep = 7;
double
verticalScale = (radChartView1.View
as
IChartView).ZoomHeight;
int
zoomHeight = (
int
)(verticalScale + .5);
var yAxis = ((sender
as
ChartView).Axes.Last()
as
LinearAxis);
if
(yAxis.MajorStep != zoomHeight * desiredVerticalMajorStep)
{
yAxis.MajorStep = zoomHeight * desiredVerticalMajorStep;
}
}
Hello,
how can I change, by property or by code, the color of the splitter ?
Thank you.
Hello,
When implementing functionality to programmatically allow user to zoom (not to cut, but zoom, being able to zoom in/out afterwards) to particular range on the x and y axis I had an issue with pan/zoom functionality.
I used radChartView1.View.Area.AreaModel.PlotArea.LayoutSlot.Width and radChartView1.View.Area.AreaModel.PlotArea.LayoutSlot.Height to get visible area inside axes because there was always a shift caused by axes titles whose size I must also be able to change dinamically. That shift isn't constant and I had to manually calculate it based on the selected font size of chart elements. This worked fine.
However, it turned out that I have an issue when chart is redrawn from the start, with the legend shown, and my calculations are performed in such a way that radChartView1.View.Area.AreaModel.PlotArea.LayoutSlot.Width doesn't consider the legend on the right which is added after I do my calculations. My question is, is there an event which is fired after the legend is added (or any event before finally drawing chart which will still allow me to call method that I'm using to change pan/zoom) so I can use PlotArea.LayoutSlot.Width in a way that it will be the width of the plotted chart area after the legend is shown (since legend will eat some of the width I calculated).
Thanks
cbEName.DataSource = Main.DataSet.Employee
cbEName.DisplayMember =
"FName"
cbEName.ValueMember =
"id"
cbEName.DataSource = Main.DataSet.Employee
cbEName.DisplayMember =
"FName"
&
" "
&
"LName"
cbEName.ValueMember =
"id"
Hi everybody,
we are extensively using your great new RadVirtualGrid.
We currently have this problem:
If an underlying data item of a row is being edited in a separate editor or values have been updated by database queries: how do we force an update on the cell?
Obviously somehow the event CellValueNeeded has to be refired; but how do we do that?
We already tried:
MyVirtualGrid.Invalidate()
MyVirtualGrid.Refresh();
MyVirtualGrid.Update();
Thanx in advance,
regards
Ronald
Hi Team,
I guess this is something i either cannot find or i am missing something in tutorials,
I want to have a tree which binds to my custom list and i want to use load on demand feature ,
i did find solution in patches ,
1) load on demand examples only creates new RadTreeNode whereas i want to bind my custom object
2) binding custom object example shows how to bind a object list with levels known at design time.
Any sample code or direction will be highly appreciated.
I'm building a grid where a GridViewComboBox will have its list dynamically updated based on the selection of an item in a previous column. I've read numerous posts about how to and how not to do this and they all make sense but I'm having one tiny problem that I cannot resolve (its because of my newness to this Grid I'm sure!)
Here's the code:
Private Sub ATGrid_EditorRequired(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.EditorRequiredEventArgs) Handles ATGrid.EditorRequired
If ATGrid.CurrentColumn.Name.ToLower = "messagecodetype" Then
If e.EditorType Is GetType(RadComboBoxEditor) Then
RemoveHandler DirectCast(e.Editor, RadComboBoxEditor).ValueChanged, AddressOf Editor_ValueChanged
AddHandler DirectCast(e.Editor, RadComboBoxEditor).ValueChanged, AddressOf Editor_ValueChanged
End If
End If
End Sub
See where it says "RadComboBoxEditor" ? My Visual Studio 2017 code says, "RadComboBoxEditor not defined"
My form imports the following:
Imports Telerik.WinControls
Imports Telerik.WinControls.UI
but clearly this object is either not exposed or not found in either namespaces. Can someone direct me to the correct namespace, please?
Thanks much!
-Curtis
I need to load a "Dropdown & List" with images and data from a SQL Server table but not if I load the options with Entity Framework or some other option.
Could someone help me or recommend some similar example please?