Telerik Forums
UI for WinForms Forum
1 answer
205 views
Hello-

I have created a UserControl with the RadRotator on it and 4 buttons.  1 for Previous, 1 for View, 1 for Remove, and 1 for Next.  All the buttons work except the Remove button.  Here is my code to add images to the RadRotator:

foreach (FileInfo  photoFileInfo in m_photos) 
            { 
                Bitmap photoBitmap = new Bitmap(Image.FromFile(photoFileInfo.FullName), 313, 253); 
 
                RadImageItem radImageItem = new RadImageItem 
                                                { 
                                                    Image = photoBitmap, 
                                                    Tag = photoFileInfo.Name 
                                                }; 
 
 
                this.InvokeIfNeeded(() => photoRadRotator.Items.Add(radImageItem)); 
            } 

The Remove button calls the RemovePhoto Method.  Here is the event handler for the delete button:
if (photoRadRotator.CurrentItem != null) 
            { 
                RadItem currentItem = photoRadRotator.CurrentItem; 
                string fileNameString = currentItem.Tag.ToString(); 
 
                foreach (RadItem radItem in photoRadRotator.Items) 
                { 
                    List<RadItem> items = new List<RadItem>(); 
                    if (radItem != currentItem) 
 
                        items.Add(radItem); 
                    ((RadImageItem) radItem).Image = null; 
                } 
 
                photoRadRotator.Items.Clear(); 
                currentItem.Dispose(); 
                this.RemovePhotos(fileNameString); 
            } 

Here is the code for the last line the RemovePhotos method:
            if (!Directory.Exists(m_unusedFolder)) 
            { 
                Directory.CreateDirectory(m_unusedFolder); 
            } 
 
            File.Move(Path.Combine(m_associatedFolder, fileToRemove), 
                      Path.Combine(m_unusedFolder, fileToRemove)); 

I an error on the File.Move line that says the file is in use by another process.  I have determined that the RadRotator i still holding on to the file through the Image property of the RadImageItem.  I am trying to allow a user to look through a directory of photos using the RadRotator.  If they find a photo they want to remove, they click the delete button and the photo is removed from the RadRotator and moved to another directory.  

How can I programmatically remove an item from the RadRotator and then move it to another directory without the RadRotator still having a lock on the file?

Thanks,
Chance
Victor
Telerik team
 answered on 21 May 2010
7 answers
172 views
I wish to make the panel bar more like Outlook. I have select the OutlookNavPane as the group style, and I have modified the capiton with some additional code, but I am struggling the make the GroupElement highlight orange when it has been selected.

Can this be done? What is the best way to do this?

Thanks.
Jack
Telerik team
 answered on 21 May 2010
11 answers
1.7K+ views
Hi, I like 'Telerik theme' of Ribbon control very much, but i need change a title bar color. So i don't know where i can get the Telerik theme file to modify rather than build from scratch.

best,
tle
Victor
Telerik team
 answered on 21 May 2010
1 answer
125 views
I'm brand new to your controls, and am just playing around with your examples. 

I was looking at your dock examples.

After placing a Panel into a tab, I couldn't turn it back into a Panel.

Just wondering if there was a way to do this outside of your examples, or if its not really possible.
(or maybe I'm missing something)

Thanks.

Troys
Victor
Telerik team
 answered on 21 May 2010
1 answer
325 views
I’m using RadGridView and GroupByExpression.
When displaying RadGridView items, I have managed to select specific group row but I don’t know how to give focus to current row so that keyboard navigation (up and down arrows) are working. Keyboard navigation only works when current row is mouse clicked.
I have tried something like this:

RadGridView.CurrentRow.VisualElement.Focus();  

but keyboard navigation still doesn’t work.

Thanks for help,
Tomislav
Alexander
Telerik team
 answered on 21 May 2010
3 answers
194 views
Hello everybody, can someone tell me where can I download the Solution (VS Studio 2008 or 2005) of the sample Dock / Bug Tracker WINFORM ?
I found the Silverlight version, but I cannot find the Winform Solution to download.

Thanks
Peter
Telerik team
 answered on 21 May 2010
1 answer
180 views
Hi,

In my application i have 4 toolwindows ,when any of the toolwindow is docked ,then one of the remaining toolwindow gets automatically focused.I want a toolwindow which is docked to be focused and the other toolwindows to be autohide without focusing.

Please find the attached screenshots.

Thank you,
Pradeep

Georgi
Telerik team
 answered on 21 May 2010
1 answer
210 views
Hi,

I am using talerik radtabstrip in my project.I am facing one problem using this.I have set the tabPosition to Left. i have four tabs in this tabstrip.To move between the tabs, a user would expect to be able to use the up/ down arrow keys, however this does not seem to work so well. (works for up arrow, but not down arrow).I can movie up and down b/w the tabs using the right/left arrow keys.Plz provide me the solution for the same ASAP

Thanks
Georgi
Telerik team
 answered on 21 May 2010
1 answer
246 views
Hi

My RadGridView has a one "GridViewDataColumn" which may contains a dynamic controls based on the data from the DataBase (CheckBox, TextBox, DateTime Picker and RadDropDownButton). (Dynamic controls are created by using CellElement)

 RadComboBoxElement elem = new RadComboBoxElement();
RadGridView1.CurrentRow.Cells[0].CellElement.Children.Add(elem);

When my grid reached a vertical scrollbar area, when i do a vertical scrolling, the controls which is dynamically created getting re-painted in the different row index which is not the same as before vertical scrolling.

See the diiference in the attachment before vertical scroll and after

How to solve this issue.
 

 

Kindly reply ASP. 

 



Thanks
Arul
Jack
Telerik team
 answered on 20 May 2010
1 answer
168 views
I have a custom theme based on the Desert Theme. However, when alternating Grid Row Colors are enabled the color is the base orange and I cannot find that anywhere in the VSB. If I load the theme package in my application and do color blending then I can control the orange row color, but I would like to save the change back as theme package, so could you help me with one or the other of my two issues:

  1. Direct me in altering the theme so the alternating row is not orange in the theme package.
  2. Direct me to the equivalent save process for the LoadPackageResource

If you need an example please let me know

Victor
Telerik team
 answered on 20 May 2010
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?