Telerik Forums
UI for WinForms Forum
0 answers
54 views

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!

Abba
Top achievements
Rank 1
 asked on 06 Aug 2017
0 answers
85 views
Hi,
I have a gridview with a child template (X) and another child template (Y) into the child template (X) and have a decimal column (C) in (Y).
I want to SUM the decimal column (C) in (Y) into a cell of its parent row in (X).
Thanks,,,
Ahmed
Top achievements
Rank 1
 asked on 04 Aug 2017
1 answer
132 views

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;
            }
        }

Borislav
Top achievements
Rank 1
 answered on 03 Aug 2017
3 answers
170 views

Hello,

how can I change, by property or by code, the color of the splitter ?

Thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
3 answers
142 views

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

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
6 answers
1.1K+ views
Hi

Linking a dropdownlist to a datatable seems simple enough:

cbEName.DataSource = Main.DataSet.Employee
cbEName.DisplayMember = "FName"
cbEName.ValueMember = "id"

But I want to display the persons full name and the display member.  Logically I'd write something like this:

cbEName.DataSource = Main.DataSet.Employee
cbEName.DisplayMember = "FName" & " " & "LName"
cbEName.ValueMember = "id"

But that obviously doesn't work.  Anyone know how to run through the dropdown list collection and add the surname?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
6 answers
653 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
1 answer
96 views

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.  

 

Dimitar
Telerik team
 answered on 03 Aug 2017
1 answer
116 views

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

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2017
1 answer
190 views

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?


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 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?