Telerik Forums
UI for WinForms Forum
2 answers
130 views
Hi,

I need to be able to popup a context menu if the user right clicks on the grid, even if there are no rows. I want to be able to show a "New" context menu item.

i can't seem to get the menu to show. It only work if i right click on a row.

Thanks,

Kim
Dimitar
Telerik team
 answered on 31 Jul 2013
1 answer
255 views
How do we stop the DateTimePicker Month resize options

There is a setting on the TimePicker but I cant find it on the DateTimePicker
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jul 2013
1 answer
99 views

I'm using the following code to return to the current row after reloading my grid. Everything works fine except the grid won't scroll past the third row from the bottom. I'm using Ver: 2012.608.40 and don't have the option of upgrading at this time.

For i As Integer = 0 To grdViewPayments.ChildRows.Count - 1 

    If grdViewPayments.ChildRows(i).Cells("PaymentID").Value.ToString() = selectedItem Then

 

        If i = 0 Then

            grdViewPayments.ChildRows(1).IsSelected = True

 

            grdViewPayments.ChildRows(1).IsCurrent = True

 

        End If

        grdViewPayments.ChildRows(i).IsSelected = True 

 

        grdViewPayments.ChildRows(i).IsCurrent = True

 

        grdViewPayments.TableElement.ScrollTo(grdViewPayments.CurrentRow.Index, 0

 

        Exit For

    Else

         grdViewPayments.ChildRows(i).IsSelected = False

 

 

    End If

Next

George
Telerik team
 answered on 31 Jul 2013
5 answers
417 views
In Windows 7, changing Display setting to 125% causes RadForms to not resize properly (normal WinForms handle the change correctly).

I've read this:  http://www.telerik.com/community/forums/winforms/dock/anchor-not-work-during-changing-text-size-to-125.aspx 

I can't ask my customers to change their settings to fix this issue (Use Windows XP style DPI scaling).

If I remove the suggested AutoScale settings from the designer generated code, the problem is at least partially solved, but I'm left with the labels ending up UNDER the text boxes even in my simple example (see attached images).

radform_normal_display.png show the correct image at 100% display.
radform_125_percent_display.png shows the labels "underlapping" the text boxes.

Any idea what I can do to fix this?   It's preventing us from using your product for our application.


Paul
Telerik team
 answered on 31 Jul 2013
1 answer
353 views
How can I globally set theme for application?

I know I can accomplish it in at run-time with the following.

public Form1()

{

     InitializeComponent();

     ThemeResolutionService.ApplicationThemeName = "Aqua";

}

Is there a way to iterate through all the Telerik controls in my application and set the theme or use a style inheritance scheme at design-time?

 

Thanks!

Anton
Telerik team
 answered on 31 Jul 2013
7 answers
915 views
Hi,

I am using the Rad gridview for windows forms.  I have multiselect enabled and it mostly works like a charm (holding shift down and clicking with the mouse still does not select multiple rows).

However, when I use some other method to select multiple rows (holding the control key down for example) and I right click to bring up my context menu, all of the rows I had selected become unselected except for the actual row I right-clicked on.

Is this a known issue?  Is there a workaround for this problem?

Thanks,

John Reynolds
Nikolay
Telerik team
 answered on 31 Jul 2013
1 answer
99 views

Hello Telerik,

 

I'm glancing at RadScheduler for a functionality in one of my current project. To be more precise it's about "Absence Management" in Human Ressource Application (Yeah you know the application, everybody love, in which you entry your workhour :-)).

 

In my first approach, I have some asks about.

  1. I'm looking for a view bigger than month, something like half year or year (I have attached an exemple). I think that's this kind of view is more clear than the monthview when you work with appointement having a long time. It's a really good feature for everybody who wants to use your control for ressources planification and scheluding with a global view. The timeline with month timescales is not a good option because it doesn't show the periode of an appointement.
  2. I would like to use a custom time measure which represent a quarter of a working day. Appointenement, which will represent in my project an holliday or a disease, should use this custom time measure for periode. Is there a way to customize the dayview and having the ruller and cell to display my custom measure instead of hours ?

Thank for your answer. I'm now going to start my prototype (or maybe buy an ice cream)) 

George
Telerik team
 answered on 31 Jul 2013
1 answer
603 views
Hello,

I have a DataGridView with TelerikMetro theme. I've set EnableHotTracking to False, but header cells still follow mouse hover events, e.g. border around header cell is highlighted when mouse is over header cell.
I need to disable that HotTracking for header and also make header non-clickable.

Thank you.
Anton
Telerik team
 answered on 31 Jul 2013
1 answer
97 views
Hi,
I'm currently upgrading a solution from telerik controls from 2010 to telerik controls from 2013. 
In our solution we have a class inheriting from RadComboBoxItem.
This control appears to have been deprecated. What control can I inherit from in telerik 2013 to achieve the same behaviour? Thanks.
Dave
George
Telerik team
 answered on 30 Jul 2013
20 answers
1.3K+ views

Hi,
I'm trying to implement F11 feature - full screen in my application.

It works like a charm for standard .NET Form, but for RadForm I have some inaccuracy.
Win7 x64 - on the top of the screen I see part of title bar which should be normally hidden by calling "targetForm.FormBorderStyle = FormBorderStyle.None;".
WinXP - on the top I still can see like 2px space from title bar, but more important is that it doesn't cover Windows taskbar in the bottom of the screen.

The Code is simple:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
  
namespace RadControlsWinFormsApp1
{
    public partial class RadForm1 : RadForm
    {
        public FormState fs = new FormState();
  
        public RadForm1()
        {
            InitializeComponent();
        }
  
        private void radButton1_Click(object sender, EventArgs e)
        {
            fs.Maximize(this);
        }
  
        private void radButton2_Click(object sender, EventArgs e)
        {
            fs.Restore(this);
        }
    }
  
    /// <summary>
    /// Selected Win AI Function Calls
    /// </summary>
  
    public class WinApi
    {
        [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "GetSystemMetrics")]
        public static extern int GetSystemMetrics(int which);
  
        [System.Runtime.InteropServices.DllImport("user32.dll")]
        public static extern void
            SetWindowPos(IntPtr hwnd, IntPtr hwndInsertAfter,
                         int X, int Y, int width, int height, uint flags);
  
        public static void SetWinFullScreen(IntPtr hwnd)
        {
            SetWindowPos(hwnd, IntPtr.Zero, 0, 0, GetSystemMetrics(0), GetSystemMetrics(1), 64);
        }
    }
  
    /// <summary>
    /// Class used to preserve / restore state of the form
    /// </summary>
    public class FormState
    {
        private FormWindowState winState;
        private FormBorderStyle brdStyle;
        private bool topMost;
        private Rectangle bounds;
  
        public bool IsMaximized = false;
  
        public void Maximize(RadForm targetForm)
        {
            if (!IsMaximized)
            {
                IsMaximized = true;
                Save(targetForm);
                targetForm.WindowState = FormWindowState.Maximized;
                targetForm.FormBorderStyle = FormBorderStyle.None;
                targetForm.TopMost = true;
                WinApi.SetWinFullScreen(targetForm.Handle);
            }
        }
  
        public void Save(RadForm targetForm)
        {
            winState = targetForm.WindowState;
            brdStyle = targetForm.FormBorderStyle;
            topMost = targetForm.TopMost;
            bounds = targetForm.Bounds;
        }
  
        public void Restore(RadForm targetForm)
        {
            targetForm.WindowState = winState;
            targetForm.FormBorderStyle = brdStyle;
            targetForm.TopMost = topMost;
            targetForm.Bounds = bounds;
            IsMaximized = false;
        }
    }
}

When you replace RadForm by Form everything is all right on both OS :-(

Any idea, any help?
Thanks Zbyněk
Paul
Telerik team
 answered on 30 Jul 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
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?