Telerik Forums
UI for WinForms Forum
2 answers
150 views
Hi guys,

Im sure there is some obvious im missing, but the problem i have is that i have a grid with 3 columns. Column 1 has report name, Column 2 - a checkbox column to 'show' that report, Column 3 - a checkbox column to 'hide' that report. So if a user clicks the checkbox in 'Show' column, i want to uncheck the 'Hide' checkbox column (ie column 2) and vice versa. The code below handles it, however the grid only refreshes the change once i move off the current row... So what do i need to call so that the cells or row is repainted instantly once this code runs? Also should i instead use the CellValueChanged event? coz that didnt seem to work, hence why i chose this event here. Also do i even need to call BeginEdit and EndEdit here? Im not quite sure when those methods should be used.

Thanks for your advice :-) Chris.

private void gridReport_ValueChanged(object sender, EventArgs e)
        {
            RadCheckBoxEditor editor = (RadCheckBoxEditor)sender;
            editor.BeginEdit();
            SUB_REPORT report = (SUB_REPORT)gridReport.CurrentCell.RowInfo.DataBoundItem;
            if (gridReport.CurrentCell.ColumnIndex == 1) // show column
            {
                if ((bool)editor.Value)
                {
                    report.Hide = false;
                }
            }
            else
            {
                if ((bool)editor.Value)
                {
                    report.Show = false;
                }
            }
            editor.EndEdit();           
        }                 
chris petropoulos
Top achievements
Rank 1
 answered on 25 May 2010
3 answers
197 views
Hi
How can I load an existing theme to visual style builder then edit the colors and save as new theme
i can' find from the smart tag of any controls, click "Open Visual Style Builder" 


i use Q1 2010
Regards,
Rasha


 
Vassil Petev
Telerik team
 answered on 24 May 2010
4 answers
172 views
hey guys I finally figured out why I can't see my appointments!
if I enable the following code I can't see any appointments:
            radScheduler1.GroupType = GroupType.Resource;
if I use no group type I can see all my appointments !!! why is that ? please help me out !!!

regards
Dobry Zranchev
Telerik team
 answered on 24 May 2010
5 answers
700 views

By any chance does any one sample code on how I can load the root folder structure.

For example C:\Test\ is the root.

I need to list all the files and sub folders in the rad tree view with different icons for folders and different icons for the files.

 

Any sample code would be appreciated.

thanks,

Goran

Victor
Telerik team
 answered on 21 May 2010
3 answers
228 views
Hi!

Is it possible to set the working area to weekend also?
For now, I can change the Time Interval but it always show for monday to friday.

Thanks,
Nadia
Boyko Markov
Telerik team
 answered on 21 May 2010
1 answer
197 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
166 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
118 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
318 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?