Telerik Forums
UI for WinForms Forum
1 answer
187 views
Hello,
I can't find out how to hide weekends in timelineview with resource grouping.

 I found an example with DayViewBase in your winforms demo, but for timelineview there is no DataAreaElement to use
private void radSchedulerNavigator1_ShowWeekendStateChanged(object sender, StateChangedEventArgs args)        
{            
  if (this.radSchedulerDemo.ActiveView as SchedulerDayViewBaseView != null)            
  {                
     (this.radSchedulerDemo.SchedulerElement.ViewElement as SchedulerDayViewElement).DataAreaElement.ScrollView.Value = Point.Empty;                 
     (this.radSchedulerDemo.SchedulerElement.ViewElement as SchedulerDayViewElement).DataAreaElement.Table.ScrollToWorkHours();            
  }        
}

my ActiveView is SchedulerTimelineView
and radSchedulerDemo.SchedulerElement.ViewElement is TimelineGroupingByResourcesElement datatype.


Is any way how to make it work?

Thank you
Robert

Ivan Todorov
Telerik team
 answered on 17 Jan 2013
2 answers
343 views
I need to have a button on a form that  when clicked -  iterate through all rows of the RADGridview and change some of the rows background color according to some criteria.
All of the samples suggest using 'RowFormatting' event, but it doesn't sound applicable here.

So if my code looks like:

foreach (GridViewRowInfo rowInfo in grdOrderlinesBase.Rows)

{
...
}

How do I make the background of the row corresponding to the i'th rowInfo become red?

Thanks
Plamen
Telerik team
 answered on 17 Jan 2013
1 answer
123 views
Hi,

I can't get the SelectedItemChanged to fire when I'm clicking one of  the arrows in a radCarousel. There is no problem with the SelectedIndexChanged. But shouldn't they both(SelectedIndexChanged and SelectedItemChanged) fire ? As both the index and item chance when clicking the arrow?

Regards,
Thomas
Anton
Telerik team
 answered on 17 Jan 2013
5 answers
213 views
I need to add a button next to the drop down button in a GridViewComboBoxColumn.  is that possible?  the user want's a button displayed when in the cell next to the drop down to add new items to the drop down for the grid.  i've seen stuff where it was customized to add new stuff typed in the GridViewComboBoxColumn but they don't want to do that.  they want a specific click step and a popup to add it.

Thanks!
John
Top achievements
Rank 1
 answered on 16 Jan 2013
0 answers
139 views
I see the Autoscroll property for the GroupBox but I am unable to set set it to true, and when I try to set it in code it dies not do anything.  Is there some other setting that needs to be set or does this not work?
Eric Klein
Top achievements
Rank 1
 asked on 16 Jan 2013
1 answer
74 views
When I set an appointment to something like:
Start Time - 1/15/2013 4:00:00 PM
End Time - 1/16/2013 12:00:00 AM

the appointment spans both days (1/15 and 1/16). Since 1/16/2012 12:00 AM is the same thing as 1/15/2012 24:00, I would not expect this behavior. See the attached image for an example.

I realize that appointments in the month view are taking up the whole day horizontally but an 8 hour appointment starting at 4:00 PM should not look like it is also spilling over into the next day. At least not in my opinion.

I also realize that I can get around this by having the user enter 11:59:59 PM. But 1) its not accurate and 2) its clunky.

Microsoft's Outlook handles this correctly.
Ivan Todorov
Telerik team
 answered on 16 Jan 2013
3 answers
193 views
Hi -

I am using the 2012 Q3 2012.3.1211.40 version of the Masked Edit box.
I set the mask property to 'c' for (US) currency.  During design time the masked edit box displays properlt $0.00.  It also displays fine when the form initially starts up.  Not only until you assign a value to the text property does the formatting go away.

I have not experienced this in the previous version of the masked edit box.  I have not made any changes to the source code as well.

Can you indicate if there was a change made or a bug introduced to the Masked Editbox?

Thanks
Bob
Peter
Telerik team
 answered on 16 Jan 2013
8 answers
302 views
when mouse click the "click here to select" then show menu let me to select user
how can i do this
thank you.
           WebOrdersAppointGridView.MasterTemplate.AutoGenerateColumns = true;
           WebOrdersAppointGridView.ShowGroupPanel = true;
WebOrdersAppointGridView.MasterTemplate.AllowEditRow = true;
WebOrdersAppointGridView.MasterTemplate.AutoExpandGroups = true;
WebOrdersAppointGridView.MasterTemplate.EnableFiltering = true;
WebOrdersAppointGridView.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
WebOrdersAppointGridView.MasterTemplate.EnableGrouping = true;
WebOrdersAppointGridView.MasterTemplate.AllowAddNewRow = false;
WebOrdersAppointGridView.MasterTemplate.AllowDragToGroup = true;
WebOrdersListGridView.TableElement.BeginUpdate();
WebOrdersAppointGridView.Rows.Clear();
// start read data
 
using (MySqlDataReader dr = MySQLHelper.ExecuteReader(MySQLHelper.DBConnectionString, CommandType.Text, sqlText, null)) {
    if (!dr.HasRows) {
        WebOrdersAppointGridView.TableElement.Text = "no data to display";
        return;
    } else {
        WebOrdersAppointGridView.MasterTemplate.LoadFrom(dr);
    }
}
 
WebOrdersAppointGridView.Columns["contact_id"].HeaderText = "NO.";
WebOrdersAppointGridView.Columns["contact_id"].TextAlignment = ContentAlignment.MiddleCenter;
WebOrdersAppointGridView.Columns["contact_id"].Width = 70;
 
WebOrdersAppointGridView.Columns["username"].HeaderText = "姓名";
WebOrdersAppointGridView.Columns["username"].Width = 150;
 
WebOrdersAppointGridView.Columns["telephone"].HeaderText = "联系电话";
WebOrdersAppointGridView.Columns["telephone"].Width = 150;
 
WebOrdersAppointGridView.Columns["qq"].HeaderText = "联系QQ";
WebOrdersAppointGridView.Columns["qq"].Width = 150;
 
WebOrdersAppointGridView.Columns["area_id"].HeaderText = "所在区域";
WebOrdersAppointGridView.Columns["area_id"].DataType = typeof(string);
WebOrdersAppointGridView.Columns["area_id"].Width = 150;
 
WebOrdersAppointGridView.Columns["address"].HeaderText = "所在地址";
WebOrdersAppointGridView.Columns["address"].Width = 150;
 
WebOrdersAppointGridView.Columns["addtime"].HeaderText = "递交时间";
WebOrdersAppointGridView.Columns["addtime"].TextAlignment = ContentAlignment.MiddleCenter;
WebOrdersAppointGridView.Columns["addtime"].DataType = typeof(string);
WebOrdersAppointGridView.Columns["addtime"].Width = 150;
           WebOrdersListGridView.TableElement.EndUpdate();
Plamen
Telerik team
 answered on 16 Jan 2013
2 answers
158 views
I am using a somewhat  special OLAP cube with a calculation that  returns textual information for pivot cells. Your pivotgrid correctly shows the text, but the text does not wrap. Only so much text is shown as fits in the column's width. Is there a setting that I missed here?

Thanks
Sjoerd
Sjoerd
Top achievements
Rank 1
 answered on 16 Jan 2013
2 answers
214 views
Hi Telerik

I'm using the following code to add button to the tabstrip at the top of some of the tool windows in my RadDock. The button adds no problem and the events for the button work fine. I would like the button to appear at the right hand edge off the tabstrip rather than its position at the moment (which is just after the image I am also adding). See the attached screenshot.

How can I move the button to the Righthand side of the tabstrip?

Many thanks in advance
Regards
Ian Carson

public void SetToolWindowElements()
{
    foreach (ToolWindow tw in rdockMain.DockWindows)
    {
        if (tw != twTemplates && tw != twExecutables && tw != twEquityFunds && tw != twInstrumentLibrary && tw != twScheduleLibrary) continue;
 
        var iconImage = new ImagePrimitive {Image = Resources.alpha_logo24}; //, Padding = new Padding(4, 0, 3, 0)};
        var refreshButton = new RadButtonElement {Image = Resources.Refresh20, ImageAlignment = ContentAlignment.MiddleCenter};
        tw.TabStrip.Height = 28;
 
        if (tw == twInstrumentLibrary)
        {
            refreshButton.Click += InstrumentLibraryRefresh;
        }
        else if (tw == twEquityFunds || tw == twScheduleLibrary)
        {
            refreshButton.Click += ScheduleEquityLibraryRefresh;
        }
 
        if (((ToolTabStrip) tw.TabStrip).CaptionElement.Children[2].Children[0].GetType() != typeof (ImagePrimitive))
        {
            ((ToolTabStrip) tw.TabStrip).CaptionElement.Children[2].Children.Insert(0, iconImage);
        }
 
        if (tw != twEquityFunds && tw != twInstrumentLibrary && tw != twScheduleLibrary) continue;
 
        if (((ToolTabStrip)tw.TabStrip).CaptionElement.Children[2].Children[4].GetType() != typeof(RadButtonElement))
        {
            ((ToolTabStrip)tw.TabStrip).CaptionElement.Children[2].Children.Insert(4, refreshButton);
        }
    }
}
Julian Benkov
Telerik team
 answered on 16 Jan 2013
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?