Telerik Forums
UI for WinForms Forum
3 answers
147 views
Hello,

I've got a couple questions. The first is related to a ScreenTipNeeded Event Handler that I've programmatically added to all of my controls. Essentially, I'm wondering how I can determine what control has invoked the handler using the sender or eventargs variables. In my attempt below, the o variable is null...

        void AllControls_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e) 
        { 
            RadOffice2007ScreenTipElement screenTip = new RadOffice2007ScreenTipElement(); 
            Control o = sender as Control; 
            string sHelp = "This is help text for " + o.Name; 
            screenTip.CaptionLabel.Text = string.Empty; 
            screenTip.MainTextLabel.Text = sHelp; 
            e.Item.ScreenTip = screenTip; 
        } 

Second, as you may have guessed, the purpose of this is to provide help text for each of my controls on the screen. I've come up with this method of using the screentips, but I was wondering if there was a better or more standardized way for achieving this sort of thing? 
Thanks!
Jeremy
Nick
Telerik team
 answered on 19 Oct 2009
2 answers
124 views
Hi,

I use a RadribbonForm as a mybase.
When I push one button Radribbonform changed to maximize dialog, and it will be topmost and have no button.

For returning normal dialog, I want to use keydown event(Escape key). However it dosen't work.

Can I get any sample source or example key event on the radribbonform?

Thanks, 
Martin Vasilev
Telerik team
 answered on 19 Oct 2009
4 answers
326 views
Dear all,

after finishing the installtion of Radcontrol for Winform Q1 2009 SP1 on Vista 32 Home Premium (German) there are the following problem in VS 2008.

I can't see the "Telerik Radform" template when i try to add a new item in the solution explorer.

The toolbox for Radcontrols Winform seems to be complete.

During installating there was no problem or error notifier.

I have just the VS 2008 Prof. (German) installed not the VS 2005.

Does anybody has an idear how to fix this

Kind Regards

Martin Gartmann

Jon Ronnenberg
Top achievements
Rank 1
 answered on 17 Oct 2009
2 answers
621 views
Is there a way to set the minimum date for a datetime picker in a grid view?  I am adding a GridViewDateTimeColumn in a grid view but I don't see a property related to minimum date on the GridViewDateTimeColumn class.

I am using the 2008 Q2 version in Winforms.

Thanks,
Byron
Thomas Douglas
Top achievements
Rank 1
 answered on 16 Oct 2009
1 answer
624 views
Hello,
I have a grid with certain fields that are not editable depending on the value of other fields on that row.  The best way I came up with to handle this was to wire up the CellBeginEdit event, and if the field is not allowed to be edited, then cancel the event.

 Private Sub rgvLines_CellBeginEdit(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.GridViewCellCancelEventArgs) Handles rgvLines.CellBeginEdit  
 
        Select Case e.ColumnIndex  
 
            Case rgvLines.Columns("MFG_ENTITY_ID").Index  
 
                Dim lineCategoryTypeId As Integer 
                Dim lineCategoryShortName As String = Nothing 
 
                'Get the Line Category short name  
                 lineCategoryTypeId = CType(rgvLines.CurrentRow.Cells("LINE_CATEGORY_TYPE_ID").Value, Integer)  
                 lineCategoryShortName = GlobalMethods.GetTypeDefShortNameForTypeID(lineCategoryTypeId)  
 
                  If lineCategoryShortName = AppDefs.LineCategoryShortName.Group  
 
                       e.Cancel = True 
 
                  End if   
 
          End Select 
 
    End Sub 

 

This all works fine but the problem that I am having is that if the user has tabbed into this cell, then focus still stays with the cell that editing was cancelled for.  The default behavior is for tabbing to skip over read-only columns.  So once I cancel the CellBeginEdit event, how can I get to the next editable cell?  Is it possible to simulate the tab key press programmatically?

Thanks,
Sean

Robert
Top achievements
Rank 1
 answered on 16 Oct 2009
0 answers
75 views
Hello

I`m Using 2 DataGrid (Master/Detail) and wanna add new row in both of them, so i`m wrote on button Click event this code.

// Adding Row On Master  
GridHdr.Rows.AddNew(GridHdr.Rows.NewRow());  
// If new row is first row current row being null then i`m changing it.  
if (GridHdr.CurrentRow == null)  
   GridHdr.CurrentRow = GridHdr.Rows[0];  
// Filling Hdr Primerykey  
GridHdr.CurrentRow.Cells["pkID"].Value = HdrID;  
GridItm.Rows.AddNew(GridItm.Rows.NewRow());  
// On DetailGrid current row, if is first row thats not null  
if (GridItm.Row.Count == 1)  
   GridItm.CurrentRow = GridItm.Rows[0];  
// Filling Itm PrimeryKey  
GridItm.CurrentRow.Cells["pkID"].Value = ItmID;  
// Filling Itm FKey  
GridItm.CurrentRow.Cells["fkHdrID"].Value = HdrID; 
 but when button Click event was end, GridItm.Rows.Cells["pkID"].Value and other Cells has not value.
and when GridItm lost focus Itm new row lost, because has not fkHdrID (it`s Relation) Value.

Regards.
HamiD Mayeli
Top achievements
Rank 1
 asked on 16 Oct 2009
1 answer
140 views
When hiding or showing a tool window, there is a noticeable flicker on the rest of the controls in the rad dock. Setting the AutoHideAnimateMode to None seems to help a little but I can still see the flicker.

Setup:
I have two docking windows with user controls pre-loaded. I have four tool windows with user controls dynamically loaded.

Observations:
If I remove the pre-loaded user controls from the docking windows, there is no flicker. If I dynamically load the user controls into the docking window, the flicker occurs.

Thoughts?
Georgi
Telerik team
 answered on 16 Oct 2009
1 answer
91 views
When loading the RadDock from a previously saved XML file, there is a noticeable paint issue. The first thing drawn on screen is one of the docked windows, then about a second or two after that, the rest of the dock loads. Simply turning off the loading from XML fixes the issue. I thought it might be a problem with the RadDock's active window being incorrectly set, but after reading this post (http://www.telerik.com/community/forums/winforms/dock/autohide-doesn-t-seem-to-work-for-right-docked-toolwindows.aspx) and explicitly setting the active window, I don't think active window is the issue because the paint problem persists.

Thoughts?
Georgi
Telerik team
 answered on 16 Oct 2009
4 answers
472 views

Hi,
        I am new for Radcontrols.I want to print the gridview's data and show print preview. Plz help me.
luis
Top achievements
Rank 1
 answered on 16 Oct 2009
3 answers
460 views
Hi,
In my form at some event I am adding a RadDateTimePickerElement to a cell of a gridview. The RadDateTimePickerElement shows date picker. However my requirement is such that I want to show only a timepicker and want to select a specific time of day. But currently it allows me to select days and not time. I want tp select time of day.
Nikolay
Telerik team
 answered on 16 Oct 2009
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
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?