Telerik Forums
UI for WinForms Forum
3 answers
241 views
I am having problems with the Scheduler's ScrollToTime method not working properly. It does change the scroll position, but not far enough.

I am using the Scheduler with an ActiveViewType of Day and displaying one week of data in 15 minute increments. The combinatin of  RulerScale and in the control's size this displays about 10 hours of data. I am trying to get the control to scroll to a position that a normal work day is in the middle of the screen.

I am using ScrollToTime and it appears to be doing something, but does not scroll far enough. No matter what TimeSpan value I enter in the ScrollToTime method, it will only scroll the control forward about 2 hours.

I suspect that ScrollToTime attempts to determine how far (in actual distance) to scroll, but is possibly ignoring the RulerScale setting when calculating this value.

These are the values that I am using for the RadScheduler control:

SchedulerDayView WeekSchedulerDayView = WeekScheduler.GetDayView();
WeekSchedulerDayView.DayCount = 7;
 WeekScheduler.HeaderFormat = "dddd";

WeekSchedulerDayView.RulerScaleSize = 10;
WeekSchedulerDayView.RulerTimeFormat = RulerTimeFormat.hours12;
WeekSchedulerDayView.WorkTime.Start = TimeSpan.Parse("08:00");
WeekSchedulerDayView.WorkTime.End = TimeSpan.Parse("17:00");

WeekSchedulerDayView.RangeFactor = ScaleRange.QuarterHour;
WeekSchedulerDayView.ShowAllDayArea = false;

SchedulerDayViewElement dayViewElement = WeekScheduler.SchedulerElement.ViewElement as SchedulerDayViewElement;
if (dayViewElement != null)
{
 dayViewElement.DataAreaElement.Table.ScrollToTime(TimeSpan.Parse("18:00"));
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 May 2014
1 answer
167 views
I have GridView with several columns:

number 1 Checkbox (called "Select all")
number 2 test line
number 3 Checkbox
number 4 Checkbox

What i want to do is once the Checkbox from the first column is selected so i want automatic select Checkbox number 3 and 4 (all the checkbox inside the row except the first of curse...)

so this is what i have try:

        private void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
        {
            if ((bool)e.RowElement.RowInfo.Cells["Select"].Value)
            {
                e.RowElement.RowInfo.Cells["First Name"].Value = true;
                e.RowElement.RowInfo.Cells["Second Name"].Value = true;
            }
            else
            {
                e.RowElement.RowInfo.Cells["First Name"].Value = false;
                e.RowElement.RowInfo.Cells["Second Name"].Value = false;
            }
        }
the only problem that i have is once selected the first checkbox  of several rows and all checkbox selected is i want to deselect specific checkbox this also select \ deselect other rows checkbox










Dimitar
Telerik team
 answered on 19 May 2014
1 answer
184 views
Hello

Is it possible to copy a RadPageViewPage from one instance of an application to another? I've found a snippet for copying a RadPageViewPage between RadPageViews in the same application, but I'd like to do it between two instances of the same application. Is it possible with RadPageView?
George
Telerik team
 answered on 19 May 2014
3 answers
317 views
Hello.
I'm using RadGridView control where I use columns as dates in month like:
| 1 | 2 | 3 |...... | 31 |
I need a way to highlight 'today' column.
Thank you in advance.
Stefan
Telerik team
 answered on 19 May 2014
1 answer
142 views
I have two controls, an radPanel and a radLabel which is contained within the panel. 
I had hoped to set them both to use a rounded rectangle, but I wanted them to have different radius and rounded corners. 

I've been using the "Edit UI Elements" link to bring up the Element hierarchy editor to set the shape. 
I set both the panel and label to use a RoundRectShape, and then setup the radius and which corners I want to use. 

I found that no matter if I edited the panel, or the label, both of them would always take on the same shape. Looking at the designer code, it looks like the element hierarchy editor is only generating one RoundRectShape object and sharing it between whatever controls I set to use a RoundRectShape shape. I would of expected it to make a different RoundRectShape object per control. I tried providing the editor a different name for the RoundRectShape object, but it just renames any existing one. 

Not sure if this is intended or not.

Thanks, 
Ben
Stefan
Telerik team
 answered on 19 May 2014
2 answers
375 views
I'm attempting to create a radPanel with a rounded 3 pixel thick border. 
I would like to dynamically add radLabels to this panel, and dock them to the top, so they stack within the panel. 

I'm finding that the docked labels sit on top of the border, covering it up. I'm also finding that the docked labels remove the rounded corners. 

I realize this is because the border is drawn within the panel, but how can I get the effect I'm looking for? I want the docked labels within the border, maintaining the rounded corners. 

Attached is a screen shot of panel as it is now with an empty blue label docked across the top.
Stefan
Telerik team
 answered on 19 May 2014
1 answer
140 views
Hi

I've extended from RadMenuItem. But while rendering the style is missed. I had the same problem for my customized RadTreeView, Which was solved this way:

  public class KSTree : RadTreeView
    {
        public KSTree()
        {
            this.FullRowSelect = false;
            this.ShowLines = true;
            this.LineStyle = TreeLineStyle.Solid;
        }

        public override string ThemeClassName
        {
            get
            {
                return typeof(RadTreeView).FullName;
            }
        }
  }

But there is no similar property to override for RadMenuItem. Is there any solution?

Thanks.


Saeed
Top achievements
Rank 1
 answered on 18 May 2014
2 answers
257 views
I'd appreciate if you can help. I've seen this example but i want in different way.
and also i want to apply the TreeView MultiSelect properties.
Saif
Top achievements
Rank 2
 answered on 17 May 2014
1 answer
328 views
Hello,

how can i change the Backcolor at SpecialDays?
I read a xml file and create specialdays about this information automatically.
When i create the specialdays with the following code, then i can not see the Day-Number.

public void date_eintrag(string tick_imput, string text, int color)
         {            
             long tick = Convert.ToInt64(tick_imput);
             DateTime time = new DateTime(tick);
             Telerik.WinControls.UI.RadCalendarDay day = new Telerik.WinControls.UI.RadCalendarDay();
             Telerik.WinControls.RadHostItem item = new Telerik.WinControls.RadHostItem(new System.Windows.Forms.Control());
             item.BackColor = Color.Transparent;
             item.ForeColor = Color.Black;
             item.Text = time.Day.ToString();
             day.Date = time;
             day.TemplateItem = item;
             radCalendar1.SpecialDays.Add(day);
         }



How is the right way for this function?



Thanks in advance,


Ronny Gleicke
Stefan
Telerik team
 answered on 16 May 2014
1 answer
83 views
Hi Telerik Team,

I tried to switch the expandImage of the radPropertyGrid for several hours now. Hopefully you can help me to switch the Image ( see attachment -> red box ). In addition to this... how do I switch the backcolor of the sourrounding bars ( see attachment -> yellow boxes ).

I'm setting the content of the radPropertyGrid during runtime using the SelectedObject Property.

Thank you in advance :)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 May 2014
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
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
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?