Telerik Forums
UI for WinForms Forum
3 answers
287 views
Hi,

I am looking for some help as I am new to this control.

I have set up a RadTreeView to pull data from an Oracle database via the Datasources option. I have been able to load 3 levels of data. Now, I want to be able to edit the data on the treeview and that update be replicated back to the oracle database.

Thus far I have come up with the following. However I think I am missing something.

When I update a Node, the data is saved back to the database but the child nodes on the treeview dissapear (since the parent has now changed). I cannot find a way of refreshing the treeeview. Can somebody please help??

 

Private Sub RadTreeView1_Edited(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.TreeNodeEditedEventArgs) Handles RadTreeView1.Edited

 

 

On Error GoTo ErrMsg

 

 

Dim DBConnection As New OleDbConnection("Provider=msdaora;Data Source=ubrmos01;User Id=tiadmin;Password=******")

 

 

Dim strsql As String

 

 

If e.Node.Level = 0 Then

 

DBConnection.Open()

strsql =

"UPDATE APPLICATION set APPLICATION = " & "'" & e.Node.Text & "'" & " where APPLICATION = " & "'" & Text_beforeedit & "'"

 

 

Dim Command As New OleDbCommand(strsql, DBConnection)

 

Command.ExecuteNonQuery()

 

End If

 

 

If e.Node.Level = 1 Then

 

DBConnection.Open()

strsql =

"UPDATE ENVIRONMENT set ENVIRONMENT = " & "'" & e.Node.Text & "'" & " where ENVIRONMENT = " & "'" & Text_beforeedit & "'"

 

 

Dim Command As New OleDbCommand(strsql, DBConnection)

 

Command.ExecuteNonQuery()

 

End If

 

 

Exit Sub

 

errmsg:

e.Node.Text = Text_beforeedit

MsgBox(Err.Description, MsgBoxStyle.Critical,

"Error Updating Database")

 

 

End Sub

 

Svett
Telerik team
 answered on 12 Aug 2011
1 answer
130 views
Hello

I am trying to make a border or a separator line primitive to draw in dashed or dotted style, but cannot figure out how to accomplish this.

Best Regards
Lars Krog-Jensen
Stefan
Telerik team
 answered on 12 Aug 2011
8 answers
193 views
Dear support community,

I am working with a form that will be used to schedule manufacturing orders.  Each column of the grid represents a piece of machinery (resource) and each cell in a column represents a placeholder for a work order (activity).

I have my grid working in such that it create the columns and populates the cells in each column with the activities assigned from a back end system.

Now I would like to make it so the user can drag/drop a cell from one row to a higher or lower row in the same column or to an entirely different cell in a different column.

I cannot figure out a way to allow a cell to be drag/dropped like with some of the other controls such as the Scheduler control (which I have tried but it does not seem suited to my application).

So one option would be to know which cell the user has the mouse over when clicked and also which cell the user has the mouse over when the mouse button is released and then execute some code afterwards to either automatically adjust the grid cell contents or in some cases prompt the user for what they wish to do.

Any help is greatly appreciated.

Best Regards,
Bill Mitchell
David
Top achievements
Rank 1
 answered on 11 Aug 2011
1 answer
168 views
On the website i read that it is possible to add elements to the propertygrid, but i cannot figure out how to do this. Can anybody show me how to do this. I want to be able to create groups and add elements by clicking a button.

Thanks in advance.
Stefan
Telerik team
 answered on 11 Aug 2011
5 answers
131 views
Hello,

The Open Recurring Item Dialog for the Rad Scheduler is commonly too small for the text that it needs to display [the text gets truncated]. I'd also like to change the background color. Can you point me at some information so that I can achieve both of these things?

Thanks!
Jeremy
Jeremy
Stefan
Telerik team
 answered on 11 Aug 2011
1 answer
329 views
Probably missing something here, but is there an easy way to block the selected and hovered item being highlighted?  It is undesirable in my touch screen application.
Stefan
Telerik team
 answered on 11 Aug 2011
9 answers
1.9K+ views
Hi,
I need to manually set coloring in my grid rows(I don't want this, the customer does!!!) and I am puzzled

I managed to do it with the header like this:

 For i As Integer = 0 To Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells.Count - 1
        Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor = Color.Green
        Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor2 = Color.Green
        Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor3 = Color.Green
        Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.BackColor4 = Color.Green
        Me.RadGridView1.MasterGridViewInfo.TableHeaderRow.Cells(i).CellElement.ForeColor = Color.White
      Next

How can I do the same for the rest of the rows, especially when I need to have different colors for the alternating rows??


Thank you in advance


George


Stefan
Telerik team
 answered on 11 Aug 2011
1 answer
87 views
Hi,

It seems to me that changing the visibility of a richRibbonBar Tab is not working.

ie:
richRibbonBar1.ShowHomeTab = false;
richRibbonBar1.ShowInsertTab = false;  // ...etc
The tabs still stay visible.

Could you check this out?
Thank you,
Karl
Stefan
Telerik team
 answered on 11 Aug 2011
1 answer
98 views
Hi,
I need to change the backcolor of an entire column in RadGridView. I am working in VB
Can you help me on this issue?
Thanks
Stefan
Telerik team
 answered on 11 Aug 2011
1 answer
403 views
Hello,

I have a form with raddropdownlists and am using the 2010Office black theme.

When a dropdownlist has focus the border turns orange.  is there a way to make the border thicker so that the orange border stands out more when the dropdown list has focus?

thanks in advance,
Francis
Alexander
Telerik team
 answered on 11 Aug 2011
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?