Telerik Forums
UI for WinForms Forum
3 answers
159 views
Me Again!!
I don't know if i'm doing something wrong, or if this is a bug. 
I am trying to make my scheduler only show a given appointment.
I wanted to display the hour before and after the appointment. To do so I am using this code:

private void showAppointment(DateTime dt1) 
            rsAppointments.ActiveView.StartDate = Convert.ToDateTime(dt1.ToShortDateString()); 
            ((SchedulerDayView)rsAppointments.ActiveView).RulerStartScale = dt1.Hour - 1; 
            ((SchedulerDayView)rsAppointments.ActiveView).RulerEndScale = dt1.AddMinutes(Convert.ToDouble(appointDuration)).Hour + 1; 

It works fine the first time its called, however after its been called a few times, it starts showing more and more time and will show the 3-6 hours before the appointment. 

Any suggestions?

Thanks!
Dobry Zranchev
Telerik team
 answered on 11 May 2010
5 answers
271 views
Hi!
I am new to RadTools, so feel free to laugh. I am using the RadScheduler, however I don't want to use the context menu for adding a new appointment. I would just like to be able to highlight the area and double click (or another shortcut key).   I cannot seem to figure out how to get the highlighted time slot to save the appointment. 

Any suggestions?

Thanks!
Dobry Zranchev
Telerik team
 answered on 11 May 2010
6 answers
319 views
How would one override the context menu when you right click on the top caption bar of a floating dock window.
Adrian
Top achievements
Rank 2
 answered on 11 May 2010
3 answers
192 views

Hi,

I have a grid which I populate using the below method

 

this.gvSheet.MasterGridViewTemplate.LoadFrom(q.ExecuteReader());

            for (int i = 0; i < gvSheet.MasterGridViewTemplate.Columns.Count; i++)

            {

                this.gvSheet.MasterGridViewTemplate.Columns[i].Width = 150;

                this.gvSheet.MasterGridViewTemplate.Columns[i].WrapText = false;

            }

 

I then add three checkbox columns using the below

GridViewCheckBoxColumn cb1 = new GridViewCheckBoxColumn();

            cb1.UniqueName = "ucb1";

            cb1.HeaderText = cb1";

            cb1.Width = 150;

            cb1.WrapText = false;

            cb1.ReadOnly = false;

            this

 

.gvSheet.Columns.Add(cb1);

 

 

            this.gvSheet.Columns.Add(cb2);

 

 

            this.gvSheet.Columns.Add(cb3);

 

 

 

 

I’m trying to get the values of these three GridViewCheckBoxColumn on the gvSheet_ValueChanged(

I’ve tried

gvSheet.CurrentRow.Cells["ucb1"].Value.ToString() and gvSheet.CurrentRow.Cells["cb1"].Value.ToString() and I get nothing back.

 

What I’m trying to achieve is if I select cb1 and cb2 column I should get true, true, false returned. I have some business logic which works off the values of these three check boxes.

 

Any help or pointers would be great.

 

Thanks

Karl
Top achievements
Rank 1
 answered on 10 May 2010
1 answer
470 views
Hi,

I have a winforms radGridView with a group summary row that sums various fields.  From reading other posts I understand that to format the summary row I need to use the viewCellFormatting event.  My question it why does the text (numeric data) not get aligned to the middleRight by the following code?

 private void rgvFinancials_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
        {
            if (e.CellElement is Telerik.WinControls.UI.GridSummaryCellElement)
            {
                float f = 8.25f;
                                
                e.CellElement.Alignment = ContentAlignment.MiddleRight;
                e.CellElement.Font = new Font("Microsoft Sans Serif", f, FontStyle.Bold, GraphicsUnit.Point);
                e.CellElement.UpdateLayout();
            }
        }



The Font size and bold properties are being set correctly but the text alignment appears to be centered not to the right.





Jack
Telerik team
 answered on 10 May 2010
5 answers
484 views
Hi there,

My windows application includes Checked List box and Picture box in the forms. I am trying to migrate my application using RAD controls. I have looked into the Telerik RAD tool box but i couldnt find the Checked list box and Picture box. Could you please assist where could i find these controls.
Could you please provide few samples/Links which could help me migrate the controls.

Also could you please let me know how to handle Checked events in Telerik RadDatagridView check box column.

Thanks,
Prasad.
Svett
Telerik team
 answered on 10 May 2010
1 answer
204 views
Hi,

Is it possible to add a tab character (\t) to a grouping text?
If I'm adding a tab character to the cells in the column on which I'm grouping, the tab isn't visible.

Kind regards.
Alexander
Telerik team
 answered on 10 May 2010
1 answer
159 views
I'm using Telerik Windows Forms 2010 Q1.
I have a desktop application that have some functions, one of them is freezing rows and columns for user to check and compare data.
I used pin feature in gridview. But got some unconvenience as followed:
When I pinned some rows (or just one row) then refreshed the grid (reload data from database and rebind to grid), this encountered an error.
I put a try ... catch and found out the error: Column 'COLUMN_NAME' does not belong to table, with table here is datasource.

To fix this, I put an iteration that unpin all currently pinned rows right before the datasource assignment. But it's my solution for the ease of my work.

Would you tell me if there is any other solutions for that matter or Telerik Windows Forms GridView has supported this (pin rows) internally?

Jack
Telerik team
 answered on 10 May 2010
3 answers
217 views
Hi,
how do i style the radMessageBox? it seems it doesn't appear in q1 2010 VisualStyleBuilder

Thanks a lot,
Anca
Alexander
Telerik team
 answered on 10 May 2010
1 answer
74 views
Hi all,

I have upgraded my application from Q1 2010 SP1 to Q1 2010 SP2 to fix a memory leak. However, in this new Service Pack I encounter another problem:

I have a couple of listboxes with multiselect, in which the user can select multiple items. I use the theme Office 2007 Silver in my application, and in Q1 2010 SP1 (and older versions) it was clear: selected items had a grey background and the 'current' item had a grey border around the item. So when a user deselects an item it changes from a grey background (selected) to a grey border (current). See also the first attached screenshot.

In SP2 however, the styles\themes seem to have changed. Both the selected items and the current item are now orange. The exact same color of orange... So the difference between the selected items and the 'current' (possibly not-selected) item is not visible. Also  when a user deselects an item, it is not visible that the item is deselected until the users selectes another item. See the second attached screenshot.

This is not only with the Office 2007 theme but also with other themes. The only theme so far where this still works correct is 'Breeze', which I am not going to use in my application. Is this a mistake with the themes/styles or is this intentional? Can I adjust this by making my own theme (copied from Office 2007)? I have no experience with the Visual Style Builder and cannot find the 'selected item' style and the 'current item' style for ListBoxes in the Style Builder... Any help is appreciated. Thanks!

Regards,
A. Bennen.
Victor
Telerik team
 answered on 10 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)
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?