Telerik Forums
UI for WinForms Forum
2 answers
233 views
What is the easy way to do this with the scheduler? Anyone have a sample project or any ideas on how to go about this? 

I want an "alert" to go out about 15 minutes before the start of the appointment...

an email to be sent out or even a msgbox pop up. it can even be at the time of the appointment. 

I am sure i am making this problem harder than it has to be. 

TwoLaJit
Top achievements
Rank 2
 answered on 21 May 2009
3 answers
218 views
Hey guys,

I'm trying to polish up the keystroke count in an application. I have a gridview. If the gridview is in focus and the enter key is pressed, I want the row context menu to be opened and the first item in that menu to be highlighted.

Here's my code:

        private void gvwManifestLines_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) 
        { 
            if (e.KeyCode == Keys.Return) 
            { 
                this.rowContextMenu.Show(this.gvwManifestLines, 15, 15); 
                this.rowContextMenu.Items[0].CanFocus = true; 
                this.rowContextMenu.Items[0].Focus(); 
            } 
            // remaining code omitted for brevity. 
 

Interestingly, if I just hit enter twice I am actually activating the menu item in question, so my Keystroke count has gone down by one (it cuts out a 'down' Keystroke). However, the item is not being highlighted when it is granted focus, and this is going to confuse my users.

Is there a way of getting the context menu to highlight the item?
Jack
Telerik team
 answered on 21 May 2009
1 answer
270 views
Hello,

I'm trying to format the Child Cells of a Hierarchical GridView via the CellFormatting event.

Here's the code I'm trying to use:

        private void grdRecord_CellFormatting(object sender, CellFormattingEventArgs e) 
        { 
            if (e.CellElement is GridDetailViewCellElement) 
            { 
                if (e.CellElement.ColumnIndex == (int)RecordScorpion.Column.Network) 
                { 
                    if (e.CellElement.Text.ToString().Contains("-")) 
                    { 
                        grdRecord.Rows[e.CellElement.RowIndex].Cells[(int)Record.Column.Value].CellElement.ForeColor = Color.Blue; 
                    } 
                    else if (e.CellElement.Text.ToString() != string.Empty) 
                    { 
                        grdRecord.Rows[e.CellElement.RowIndex].Cells[(int)Record.Column.Value].CellElement.ForeColor = Color.Purple; 
                    } 
                } 
                else if (e.CellElement.ColumnIndex == (int)RecordScorpion.Column.Item) 
                { 
                    e.CellElement.Text = ""; 
                } 
            } 

However, I'm finding that while the cellelement type sometimes is GridDetailViewCellElement, the columnindex is typically negative. In addition, I'm finding that the rowindex is out of range as well. Any help would be appreciated.

Thanks!
Jeremy


Jack
Telerik team
 answered on 21 May 2009
1 answer
149 views
RadApplicationMenuButtonElement

in the toolstrip, there is a new item called RadApplicationMenuButtonElement1. 
i love the way it looks over the drop down menu buttons...

but there is no info about it in the documentation, 

what i am looking to do is customize the drop down portion which seems to be out of control. attached is a picture of the section i am trying to customize, the black part seems to be way to wide and out of place.

A picture Attached: here

Deyan
Telerik team
 answered on 21 May 2009
1 answer
234 views
I am using Hierarchy grid view
what i need is how can expand or collapse all childtemplates in the Hierarchy grid view 
And also suggest me how to know all the features of Hierarchy grid view (can i display total number of records on top of each childtemplate...)

Jack
Telerik team
 answered on 20 May 2009
1 answer
120 views
Hi,

after upgrading to the newest version of telerik controls I noticed that a couple of labels are not displayed as intended any more.
The text gets cut off though the label is definetely large enough to display the whole content.

i played around but I am not able to get the labels behaviour as it was before.

additionally I create labels dynamically on a form. suddenly the labels get rendered on a completly different location..
i changed the position where they get rendered... but why is this??

 -- suggestions how to fix this are appreciated.

thanks

best regards

tommy
Peter
Telerik team
 answered on 20 May 2009
6 answers
275 views
Hi

I am having some trouble with the report chart in winforms , I would like to export or print a winform chart , how would I do this ?

ANy help would be great
Dwight
Telerik team
 answered on 20 May 2009
3 answers
252 views
Hi,
I'm developing a win form application using VS2005 and Teleric RadControls for WinForms Q1 2007.
I have inserted one docking Manager object in the forms with 4 docking panels and one tabbed document.

Now, when in VS I close the tab with form1.cs [Design], I receive the following error:
"The control Telerik.WinControls.Docking.AutoHideContent has thrown an unhandled exception in the designer and has been disabled.

Exception:
Cannot access to disposed object.
Object name: 'DockPanel'.

Stack trace:"
(there isn't stack trace)
The program works fine, error is only in the designer.
I have try to use dockingManager in various forms and this error occurrs only in some.. I can't find any solution.

Thanks for support!
Lorenzo
Julian Benkov
Telerik team
 answered on 20 May 2009
1 answer
167 views
Hi all,

We have implemented a master-detail hierarchical grid. The cell.image property of certain cells in the master grid, and also in the detail grid, is assigned an image depending on the value of some other cell in the same row. Note that not all master records have a corresponding non empty detail grid. Some do, because there is data to display bebeath them, and some do not because there is not any data to display beneath them. The cellformating event is used to assign the corrresponding images to the current cell as follows:

Private Sub FFAViewGrid_CellFormatting(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles FFAViewGrid.CellFormatting
        If e.CellElement.ColumnIndex = 3 Then
            Try
                Select Case e.CellElement.RowInfo.Cells(5).Value
                    Case "3"
                        e.CellElement.Image = FFAViewGrid.SmallImageList.Images(FFAViewIcons.UpTick_Green)
                    Case "2"
                        e.CellElement.Image = FFAViewGrid.SmallImageList.Images(FFAViewIcons.Minus_Green)
                    Case "0"
                        e.CellElement.Image = FFAViewGrid.SmallImageList.Images(FFAViewIcons.Minus_Red)
                    Case "1"
                        e.CellElement.Image = FFAViewGrid.SmallImageList.Images(FFAViewIcons.DownTick_Red)
                End Select
            Catch

            End Try
      end if
end sub

Initially the grid is displayed in unexpanded mode as in this picture: view picture  In htis example only the period columns labeled Q3-09 and Q4-09 have a non empty hierarchical child grid and have a value in cell(5) of the row to trigger the image property event. All other master rows have a zero value in cell(5) and hence they should not triger the image property event.

However, when you click to expand the master rows to see the detailed child grid for some reason randomly selected empty master rows are populated with cell images. This phenomenon repeats as many times as you expand and unexpand a master row, populating more random master rows with images when it should not. The picture of the undesired output can be viewed here: view picture and here: view picture

We have extensively tried to debug the cellformating event, only to notice that although the row index number was refering to an empty master row, one that  does not have any value in e.CellElement.RowInfo.Cells(5).Value  to trigger the code to display an image in cell(3), the value reported by the debuger for e.CellElement.RowInfo.Cells(5).Value was from another row and not from the one corresponding to the event.

We can only guess that this is a problem related to the fact that not all master records have a non empty detailed child grid. Do you have any other suggestions why is this behaviour caused and how it can be remedied?

Thank you in advance for your kind cooperation.

Regards,

George



Jack
Telerik team
 answered on 20 May 2009
1 answer
88 views
I want to know about dock functionality with sample application,please suggest me
Nick
Telerik team
 answered on 20 May 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)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?