Telerik Forums
UI for WinForms Forum
6 answers
481 views
I have a RadListBox full of items.  I have two buttons "Up" and "Down" to move items around the RadListBox.  So if I have an item selected in the box and click the Up button then it swaps the currently selected item with the one above it.  Here's the code, it's very simple:
        Dim selIndex As Integer = RadListBox.SelectedIndex 
        If selIndex <> 0 Then 
            Dim selItem As String = RadListBox.Items.Item(selIndex).Text 
            Dim aboveItem As String = RadListBox.Items.Item(selIndex - 1).Text 
            RadListBox.Items.Item(selIndex - 1).Text = selItem 
            RadListBox.Items.Item(selIndex).Text = aboveItem 
        End If 
        RadListBox.SelectedIndex = selIndex - 1 
 


My problem is with the last line.  The SelectedIndex part highlights the correct item, but a black rectangle stays around the previously selected item.  I've tried refreshing the control, setting the focus, etc...  What do I need to do to get the black rectangle to follow the SelectedIndex item?

Chris
Georgi
Telerik team
 answered on 08 Jun 2007
1 answer
285 views
Just wondering if this is another known Telerik bug, or something I'm doing wrong? Looks like I can't even use Telerik Shaped Forms without getting errors!

System.ArgumentException: The parameter 'sectionGroupName' is invalid. 
Parameter name: sectionGroupName 
   at System.Configuration.MgmtConfigurationRecord.GetSectionGroup(String configKey) 
   at System.Configuration.Configuration.GetSectionGroup(String sectionGroupName) 
   at System.Configuration.ClientSettingsStore.DeclareSection(Configuration config, String sectionName) 
   at System.Configuration.ClientSettingsStore.GetConfigSection(Configuration config, String sectionName, Boolean declare) 
   at System.Configuration.ClientSettingsStore.WriteSettings(String sectionName, Boolean isRoaming, IDictionary newSettings) 
   at System.Configuration.LocalFileSettingsProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection values) 
   at System.Configuration.SettingsBase.SaveCore() 
   at System.Configuration.SettingsBase.Save() 
   at System.Configuration.ApplicationSettingsBase.Save() 
   at APM.MainForm.MainForm_Resize(Object sender, EventArgs e) 
   at System.Windows.Forms.Control.OnResize(EventArgs e) 
   at System.Windows.Forms.Form.OnResize(EventArgs e) 
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e) 
   at Telerik.WinControls.UI.ShapedForm.OnSizeChanged(EventArgs e) 
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) 
   at System.Windows.Forms.Control.UpdateBounds() 
   at System.Windows.Forms.Control.WndProc(Message& m) 
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m) 
   at System.Windows.Forms.ContainerControl.WndProc(Message& m) 
   at System.Windows.Forms.Form.WndProc(Message& m) 
   at Telerik.WinControls.UI.ShapedForm.WndProc(Message& m) 
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

Jack
Telerik team
 answered on 08 Jun 2007
1 answer
138 views
[Sorry this should have gone into the menu strip forum]

Hi
Please would it be possible to add the MergeIndex property to the RadMenuSeparatorItem (or RadMenuItemBase) so that it will be possible to control the insertion point of a menu item when using the Telerik toolstrip in a CAB application.

I have extended your base class for now, but I thought it should be something that you are aware of and consider adding to your code base.

Thanks

Marek
Jack
Telerik team
 answered on 08 Jun 2007
5 answers
761 views



Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click

'Executes Ping.exe -t With RadComboBox1 as Variable

With Me.RadComboBox1

If Not Me.RadComboBox1.Items.Contains(Me.RadComboBox1.Text) Then

.Items.Add(RadComboBox1.Text)

End If

End With

 

Process.Start("\pingdev.bat", RadComboBox1.Text)


This code works with the VS combobox - I'm trying to figure out what I'm doing wrong -

I get this error -

Value type 'String' cannot be converted to 'Telerik.Wincontrols.RadItem


Can anyone help?

Thanks!
Jim


gdijim
Top achievements
Rank 1
 answered on 07 Jun 2007
1 answer
189 views
I've added a textbox into a RadToolStrip that I would like to be able to use for searching.  I would like the user to be able to type a search value into this textbox and then hit Enter and then I'll handle the appropriate event and kick off the search.

In addition to the code that was automatically generated by the designer, I added the following 3 lines of code (hoping to catch any one of these 3 events, but would prefer to get the KeyDown):

this.searchTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.searchTextBox_KeyPress);

this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyDown);

this.searchTextBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyUp);

I then added the methods specified within the handler code above and added simple code in each to just show a message box.  I also added breakpoints in each of these methods.  When I run my application, I don't see any message boxes when typing into the text box, and my breakpoints are never hit either.

Any suggestions?  Are these 3 events supposed to fire for the RadTextBoxElement within a toolstrip?

Thanks,
Ben

Georgi
Telerik team
 answered on 07 Jun 2007
1 answer
173 views
I need to add a list of items to a radlistbox control, and I can do it fine with the MS version, but this does not work.  I am using the following syntax:

        Me.RadListBox2.Items.Add("test11")
        Me.MediaListVisible.Items.Add("test11")

Can anyone give me some examples please? 

Thanks in advance..
Georgi
Telerik team
 answered on 07 Jun 2007
3 answers
204 views
Hi

The grid seems to slow down alot when I have a few checkbox columns and I display the grid fullscreen. I've testing by removing and adding columns using the column chooser, and the grid is only slow when the check box columns are present.

I am binding a a generic list to the grid.

I am doing the following when initially creating the grid (setting the columns to readonly), and removing this code does improve that responsiveness

For Each col As GridViewColumn In grdProdArea.MasterGridViewTemplate.Columns

col.ReadOnly = True

Next

Jack
Telerik team
 answered on 07 Jun 2007
1 answer
172 views
I have a PanelBar that contains few controls like listboxes, comboboxes, textboxes, etc.  When I click to expand the panels, I can alomst count to 5 before they actually expand and pegs the CPU at 100% Has anybody else experienced this?

I can provide more information if needed.
Boyko Markov
Telerik team
 answered on 06 Jun 2007
7 answers
172 views
to a shaped form, i added a panelbar with a few groupelements. i toggled one of the groupelements to EnableHostControlMode.

initially i was able to add a treeview to the groupelement in question; however, when i ran the app it flickered really bad and then crashed after i tried to collapse the groupelement.

now it's to the point to where i can't even toggle the groupelement to EnableHostControlMode without crashing the VS IDE.

ultimately, i want to add treeviews to groupelements and have no flickring.

thanks....
Vassil Petev
Telerik team
 answered on 06 Jun 2007
2 answers
170 views
Dear Sir,

Please we need help.

How can we change RadTreeview layout to RightToLeft. becuase we tried to set the RightToLeft Property to 'yes' but it did not change the layout of the RadTreeview.

Please is RadTreeview support this functionalty or not?

Thank you.
Ahmad Alkhiary
Top achievements
Rank 1
 answered on 05 Jun 2007
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?