Telerik Forums
UI for WinForms Forum
1 answer
392 views
Is there a way to make the Enter key act like the Tab key for the RadDropDownList?  I have tried the following methods and none actually advance to the focus:

private void dropDownList_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyData == Keys.Enter)
    {
        this.ProcessTabKeys(true);
    }
}
 
 
private void dropDownList_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Enter)
    {
        this.ProcessTabKeys(true);
    }
}

I also tried alternatives of the above:

private void dropDownList_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Enter)
    {
        nextDropDownList.Focus();
        e.Handled = true;
    }
}
 
 
private void dropDownList_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Enter)
    {
        nextDropDownList.Focus();
        e.Handled = true;
    }
}


The only way to advance the focus is to use the Tab key.  In case it makes any difference, I have AutoComplete set to SuggestAppend.

Is there another way to make the Enter key act like the Tab key?
Peter
Telerik team
 answered on 13 Oct 2011
3 answers
154 views
Hi Telerik

I'm trying to color the checkmarks in two GridViewCheckBoxColumns in a grid in our app. I have tried the following code but have only succeeded in producing visual gibberish. The entire grid is destroyed - my fault  :-)

Could you please provide some guidance.
Many thanks in advance
regards
Ian Carson

void rgvOperationsGrid_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.ColumnIndex == 2)
    {
        ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkGreen;
    }
    else if (e.ColumnIndex == 3)
    {
        ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkRed;
    }
}


Ian
Top achievements
Rank 1
 answered on 13 Oct 2011
1 answer
146 views
Hey everyone,

I just started working with the Telerik RadCalendar control, and it looks promising to be able to accomplish what I want. I do, however, seem to be running into an issue. 

Using the arrow keys and space bar to select/deselect dates works great, but when I use the mouse to do this, it is awkward. I found a post relating to the issue, (http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker/urgent-radcalendar-not-deselect-dates-correctly.aspx) The Telerik representative mentioned that the reason this felt awkward was because of the "Focus Date" feature. 

I understand how this works, but would it be possible to somehow change the color of the "Focus Date" part of the calendar? I think this would help my end users tell the difference between the "Focus Date" and a recently deselected/selected cell. 

Thanks


Ivan Petrov
Telerik team
 answered on 13 Oct 2011
3 answers
377 views
I'd like for images within a RadImageItem to resize as the RadRotator resizes.  Does anyone know how to do this?  

Any help would be greatly appreciated.  Thank you!
Slav
Telerik team
 answered on 13 Oct 2011
1 answer
113 views

Hi
I'm using Q2 2011 SP1 (v2011.2.11.0831) and have discovered differences in Appointment.Start + End DateTime values between Dayview Viewtypes and Monthview,Timelineview.

//all views are initialized with
            if (utcPlusOneTimeZone == null)
            {
                //utcPlustOneTimeZoneInfo = new SystemTime.TimeZoneInformation();
                //utcPlustOneTimeZoneInfo = TimeZoneInfo.Local;
                //utcPlustOneTimeZoneInfo.bias = -60;
                //utcPlustOneTimeZoneInfo.daylightBias = -60;
                //utcPlusOneTimeZone = new SchedulerTimeZone(utcPlustOneTimeZoneInfo, "CH");
  
                utcPlusOneTimeZone = new SchedulerTimeZone(TimeZone.CurrentTimeZone);
             }
            switch (vt)
            {
                case SchedulerViewType.Day:
                    if (_dayView == null)
                    {
                        _dayView = radScheduler1.GetDayView();
                        _dayView.DefaultTimeZone = utcPlusOneTimeZone;
                    }
                    break;
                case SchedulerViewType.Month:
                    if (_monthView == null)
                    {
                        _monthView = radScheduler1.GetMonthView();
                        _monthView.DefaultTimeZone = utcPlusOneTimeZone;
                    }
                    break;
                case SchedulerViewType.Timeline:
                    if (_timelineView == null)
                    {
                        _timelineView = radScheduler1.GetTimelineView();
                        _timelineView.DefaultTimeZone = utcPlusOneTimeZone;
                    }
                    break;
  
  
//save function calls webservice
  
                DateTime start = app.Start.ToLocalTime();
                DateTime end = app.End.ToLocalTime();
                if (systemService.ChangePlanningElement(app.ElementGID.ToString(), start,end)) return true;

- Month + Timelineview  :  app.Start.Kind = Unspecified  and ToLocalTime() adds 2hours (utc+1 + Summertime)
- other dayview type      :  app.Start.Kind = Local  and and ToLocalTime()  = 0

 

//Workaround before calling webservice 
TimeSpan tsOffset = app.Start.ToLocalTime() - app.Start; 
DateTime start = app.Start.ToLocalTime() - tsOffset;  //subtracts 0 or Timezonedifference

Why ist MonthCellElement.Date of Type Unspecified with TimezoneOffset=2h and SchedulerCellElement.Date of type Local with TimezoneOffset=0h

Thanks for clearing, Daniel

Ivan Todorov
Telerik team
 answered on 13 Oct 2011
2 answers
133 views

Greetings all

I have a simple winform app that loads a RadGridView and optionally exports it to Excel.  The app works fine in the Development environment and as a standalone exe.  However, when the code is moved to Citrix, the invocation of the RadGridViewExporter.Export method triggers an Excel error: "an error occured and this feature is no longer functioning properly".  Once this error dialog is clicked, the export happens successfully.

I understand from various searches that this is likely a config issue with the server and not a Telerik internal problem.  My hope is that someone has hit this before and might suggest a work-around from the application side.

We are using VS2010, .Net 4.0, and Q2/2011 Radcontrols for Winforms.

Relevant code follows.  Many thanks for any advice.

 

private void Export(String filepath)

{

 

//this.radButtonExport.Enabled = false;

exporter =

 

new RadGridViewExcelExporter();

 

BackgroundWorker worker = new BackgroundWorker();

worker.DoWork +=

new DoWorkEventHandler(DoWork);

 
worker.RunWorkerCompleted +=

 

new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted);

worker.RunWorkerAsync(filepath);

exporter.Progress +=

 

new ProgressHandler(exportProgress);

radProgressBar1.Visible = true;

 

radProgressBar1.Text =

 

string.Format("Exporting to {0}", filepath);

radProgressBar1.Width = radGridView1.Width * 2/3;

}

 

private void DoWork(object sender, DoWorkEventArgs e)

{

exporter.Export(radGridView1, (

 

String)e.Argument, "script results");

}

Martin Vasilev
Telerik team
 answered on 13 Oct 2011
10 answers
233 views
Hello,

I have some strange effects when using Anchor Bottom / Anchor Right with Controls placed on a PageView Page. The Controls do not keep their positions correcty. Also, the Designer (VS2010) seems to garble up sometimes.
Anyone else having issues with this?

Regards
Erwin
Stefan
Telerik team
 answered on 13 Oct 2011
1 answer
254 views
Hello guys,

How can I expand all rows from hierarchical gridview?

Thank you ,
Victoria.
Emanuel Varga
Top achievements
Rank 1
 answered on 13 Oct 2011
6 answers
237 views
How do I sort on a aggragated grouped column 
example if I group and sum on product  sold
how would I sort grouping show top seller in desc order
Please so example in VB
Bernd
Top achievements
Rank 1
 answered on 12 Oct 2011
3 answers
223 views
Hello every one, I have a problem with axis gridlines. In my project I need to draw custom gridlines on the chart. On the chart I have to draw those gridlines that I calculated. I tried ArrayList, List, Array for each lines but I could not succeeded. Each line calculated simultaneusly.
Yavor
Telerik team
 answered on 12 Oct 2011
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
CheckedDropDownList
ProgressBar
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
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?