Telerik Forums
UI for WinForms Forum
3 answers
166 views

Hi.

How to save TreeView. I have no problem read data from database, like this:

 

   Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        Me.TblSkydeHoldTableAdapter.Fill(Me.SkyttecenteretDataSet.tblSkydeHold)

        Me.RadTreeView1.DisplayMember = "name"
        Me.RadTreeView1.ParentMember = "pid"
        Me.RadTreeView1.ChildMember = "id"
        Me.RadTreeView1.ValueMember = "id"

        Me.RadTreeView1.DataSource = Me.GetSampleData()

    End Sub

    Private Function GetSampleData() As DataTable

        Dim dt As New DataTable()
        Dim dc As New DataColumn()
        dc.ColumnName = "id"
        dc.DataType = GetType(Integer)
        dt.Columns.Add(dc)
        Dim dc1 As New DataColumn()
        dc1.ColumnName = "name"
        dc1.DataType = GetType(String)
        dt.Columns.Add(dc1)
        Dim dc2 As New DataColumn()
        dc2.ColumnName = "pid"
        dc2.DataType = GetType(Integer)
        dt.Columns.Add(dc2)


        Me.TblSkydeHoldTableAdapter.Fill(Me.SkyttecenteretDataSet.tblSkydeHold)

        For Each dRow As DataRow In Me.TblSkydeHoldTableAdapter.GetData
            Dim dr As DataRow = dt.NewRow()
            dr(0) = dRow.Item("dr0")
            dr(1) = dRow.Item("dr1")
            dr(2) = dRow.Item("dr2")
            dt.Rows.Add(dr)
        Next

        Return dt

    End Function

 

But my problem starts when i want to save back to database. When i add a new node, the node have no parentmember value or valuemeber value. Is it possible to add those values automaticly when a new node is created?

Kindly Peter

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 21 Apr 2020
3 answers
120 views

I am creating ScatterSeries

                    var scatterSeria = new ScatterSeries
                    {
                        XValueMember = "COLUMN0", YValueMember = "COLUMN1", 
                        HorizontalAxis = horizontalAxis1, 
                        VerticalAxis = verticalAxis1,
                        Shape = new CircleShape(),
                        BackColor = Color.Red,
                        BorderColor = Color.Black,
                        PointSize = new SizeF(10.0f, 10.0f),
                        IsVisibleInLegend = true
                    };
But the border of the shape is not drawn in black on the chart. But the same shape is drawn in the legend with a black border.

In a legend, I draw a shape using

        private void LegendElement_VisualItemCreating(object sender, LegendItemElementCreatingEventArgs e)
        {
            e.ItemElement = new LegendItemElement(e.LegendItem);
            if (!(e.LegendItem.Element is ScatterSeries seria)) return;
            e.ItemElement.MarkerElement.Shape = seria.Shape;
        }

How to set the border color for the shape on the chart?

Nadya | Tech Support Engineer
Telerik team
 answered on 21 Apr 2020
1 answer
1.1K+ views

Hi, I've got  a TabControl, with several TabPages, with RadGridViews i nthem.

I pretty much let the GUI do most of the wiring up of the grids & data..

Everything seems to be working except, I'm getting the above message when I

Add a new Row.

As soon as the row is added, I get the icon on the row, and that message.

The row adds just fine, and I can update it, & delete it as well.

 

Without posting the entirety of the projects code, is there a place I might look to first, to find why I've

apparently got two datareaders open?

Attached is what I see after adding that new row, and scrolling to the bottom of the data grid.

Rich

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Apr 2020
4 answers
351 views
Hello,  I apologize if I am missing something obvious here but, should the radButton be resizing to the text it contains?  If I take a standard button, put long text into it and set autosize = true the button will expand to the size of the text.  Can I do this with the radButton? 

Thank you,
Tyler
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Apr 2020
2 answers
87 views

Hello,

I use radrangeselector to quick scroll and zoom-in my radchartview.

At first, I show a part of my chart by using radrangeselector. The export as image works great. Only the part that I zoomed is exported.

But when I print by calling "RadChartView1.printpreview()", the image which I got is shifted.

Please find the photos in attach files.

You can download my demo in this link:

https://www.dropbox.com/s/kjabhazib59wfrd/DemoPrintChart.zip?dl=0

 

Great Regards,

Kun

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Apr 2020
13 answers
327 views
Is it possible to change the height of appointments in the schedulers timeline view?

Either a fixed size or a "fill" option - where the appointment would fill the day/resource cell- would be great. In the case of the fill option, multiple appointments would divide available space between them until such time as the text becomes unreadable, then they scroll.

If either of these options are possible, can someone please point me in the right direction so I can implement it on my control?

Thanks,
Karl
Giovanni
Top achievements
Rank 1
 answered on 17 Apr 2020
3 answers
638 views

Hi

I have 2 treeviews.

When i highlight one item on treeview 1 and drag and drop to tree view 2. While the mouse button is kept pressed, and i hover on treeview 2, i would want the hovered node to be highlighted or style changed.

In the example in the attachment, the node "jacket" is to be highlighted..when the node "car" is dragged over it.

May I know if this can be done?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2020
5 answers
424 views

Hi Team,
       On the cell end edit mode the enter key event is working fine and it is firing the keydown event from the CellEditorInitialized and gets updated with the given value on the other grid. - This is the actual process.

Is it possible to have the same functionality while pressing the tab key?

 

Video Link
Dev
Top achievements
Rank 1
Veteran
 answered on 17 Apr 2020
1 answer
122 views

I created custom shape

    public class LineShape : ElementShape
    {
        public override GraphicsPath CreatePath(Rectangle bounds)
        {
            var path = new GraphicsPath();
            path.AddLine(bounds.X, bounds.Y + 1.0f, bounds.X + bounds.Width, bounds.Y + bounds.Height);
            return path;
        }
    }

When I add a ScatterSeries, then assigned Shape = LineShape. But these points are not drawn on the chart!!!

However, if I add an event

        private void LegendElement_VisualItemCreating(object sender, LegendItemElementCreatingEventArgs e)
        {
            e.ItemElement = new LegendItemElement(e.LegendItem);
            if (!(e.LegendItem.Element is ScatterSeries seria)) return;
            e.ItemElement.MarkerElement.Shape = seria.Shape;
        }

then LineShape drawn in the legend

 

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Apr 2020
2 answers
122 views

HI,

I have set the data source in my grid view. When I add the next data source, I want the new data source add, not the existing data source to be cleared.

Append with previous. it's possible?

waiting for your favorable response.

Thanks

Shanti 😎
Top achievements
Rank 2
Veteran
 answered on 15 Apr 2020
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
+129 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?