Telerik Forums
UI for WinForms Forum
10 answers
1.4K+ views
Hi,

I would like to suggest an Inputbox for the Winforms control set. I think if you offer a radmessagebox it would only be normal to include an Inputbox.

Thanks
Guy
Top achievements
Rank 1
 answered on 30 Oct 2014
1 answer
221 views
Hi,

Sometimes I'm pedantic when it comes to the appearance of the application.
I have a RadGridView called cGrid with events:

private void cGrid_CellFormatting(object sender, CellFormattingEventArgs e)
{
    // simple background
    e.CellElement.BackColor = Color.FromArgb(186, 220, 230);
    e.CellElement.BackColor2 = e.CellElement.BackColor;
    e.CellElement.BackColor3 = e.CellElement.BackColor;
    e.CellElement.BackColor4 = e.CellElement.BackColor;
    e.CellElement.DrawFill = true;
}

private void cGrid_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    // border color from background
    Color color = e.CellElement.BackColor;
  
    // but if IsCurrent or IsSelected the border color should be red
    if (e.CellElement.IsCurrent || e.CellElement.IsSelected)
    {
        color = Color.Red;
    }
  
    // single border for nice looking
    e.CellElement.BorderBoxStyle = BorderBoxStyle.SingleBorder;
  
    // solid for using only one color
    e.CellElement.BorderGradientStyle = GradientStyles.Solid;
    e.CellElement.BorderColor = color;
  
    e.CellElement.DrawBorder = true;
}



And set:
this.cGrid.EnableHotTracking = false;
this.cGrid.HideSelection = true;
this.cGrid.MultiSelect = true;
this.cGrid.SelectionMode = Telerik.WinControls.UI.GridViewSelectionMode.CellSelect;



And now I see by selecting multiple cells (check attachment).
For cells ch last selected row can not see the bottom border.
Do you know a trick to solve this "problem"?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
2 answers
92 views
Hi, my name is Hajun Song from south korea.

I have a radgridview and it has 5 columns and 36 rows
(1 and 2 columns are GridViewTextBoxColumn and
 4 and 5 columns are GridViewComboBoxColumn).

I wanna add the images as the combobox's items, so I search and
apply the source base on this example.
http://www.telerik.com/forums/gridviewcomboboxcolumn-that-displays-only-icons-images

When I finished the code and run it, some problems happened.

First, in the first picture,
When the scroll of the table is moved down, some cells not conserned with
image combobox display the images(solid dash line image).
I wanna know how to fix that.

Second, in the second picture, when I open and select the
image of comboBox, some texts are shown as figure.
Although these texts are disappeared if I clicked other place,
but I don't want skip that step. (In upper example source, that has same reaction.)
Can't I fit that? If not, I wanna know how to remove that step.

Third picture is about my source.

Please point out my problem.
And if it is possible, I wanna example source about
successful case of my problems.
Thank you.

Hajun
Top achievements
Rank 1
 answered on 29 Oct 2014
1 answer
242 views
Hi, my name is Hajun Song from south korea.

I have a radgridview and it has 5 columns and 36 rows
(1 and 2 columns are GridViewTextBoxColumn and
 4 and 5 columns are GridViewComboBoxColumn).

I wanna add the images as the combobox's items, so I search and
apply the source base on this example.
http://www.telerik.com/forums/gridviewcomboboxcolumn-that-displays-only-icons-images

When I finished the code and run it, some problems happened.

First, in the first picture,
When the scroll of the table is moved down, some cells not conserned with
image combobox display the images(solid dash line image).
I wanna know how to fix that.

Second, in the second picture, when I open and select the
image of comboBox, some texts are shown as figure.
Although these texts are disappeared if I clicked other place,
but I don't want skip that step. (In upper example source, that has same reaction.)
Can't I fit that? If not, I wanna know how to remove that step.

Third picture is about my source.

Please point out my problem.
And if it is possible, I wanna example source about
successful case of my problems.
Thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Oct 2014
1 answer
212 views
Hello, I'm using UI for Winforms on a VSTO outlook plug-ins project. Some Email save to word doc without a problem but some get this error - "Value cannot be null.\r\nParameter name: data".

Here is my code.

var saveAsWord = new SaveAsWord(filePath, _Mail.HTMLBody, _Mail.Subject);
saveAsWord.SaveToWord();


public void SaveToWord()
        {
            try
            {
                var provider = new HtmlFormatProvider();
                RadFlowDocument document = provider.Import(TextBody);
                var providerDocx = new DocxFormatProvider();
                using (Stream output = new FileStream(SaveFileTo, FileMode.OpenOrCreate))
                {
                    providerDocx.Export(document, output);
                }
            }
            catch (Exception ex)
            {
                LogError.LogErrorMessage(ex);                
            }            
        }
Petya
Telerik team
 answered on 29 Oct 2014
3 answers
136 views
I have dragdrop enable on both controls. But i whenever i try to drag an item from the list view over to the document window, it shows the red circle that tells me it cannot drop the object. So i went down the route of implementing PreviewDragDrop to get it working, but then i have no clue how to get the handle of my document window since preview drag and drop is giving me back an RadPageViewTabStripElement and none of the item in there matches a Document window.

Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Oct 2014
1 answer
88 views
Currently the gridview exposes a few events originating from the filter. But I need more. I need to know when the user clicks the filter "textbox" (enter or beginedit) and when the user closes it (leave or endedit). I'm certain internally these events are available, but is there any way to expose them to my code?

Regards,
Martin
George
Telerik team
 answered on 29 Oct 2014
3 answers
326 views
Please see my attach screenshot.

As you can see i have 3 nodes and values.
All i want to achieve is to order all 3 values in same position for example:

Destination address:                   FF:FF:FF:FF:FF:FF
Source address:                          00:00:00:00:00:00
Protocol:                                      ARP (0x0806)

My current behavior is:

Destination address: FF:FF:FF:FF:FF:FF
Source address: 00:00:00:00:00:00
Protocol: ARP (0x0806)

How can i do that ?


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Oct 2014
2 answers
288 views
Hello

I'm using CellFormatting event to color some cells in my RadGridView. On Form_Load it works fine (see first image). But when I sort the RadGridView it messes the whole thing up (see second image). You can see my code here:

if (e.Column.Name == "va" && e.CellElement.Value != null)
{
    if ((e.CellElement.Value.ToString() == "P" && e.Row.Cells["id"].Value.ToString() == "1") ||
        (e.CellElement.Value.ToString() == "A" && e.Row.Cells["id"].Value.ToString() == "1") ||
        (e.CellElement.Value.ToString() == "E" && e.Row.Cells["id"].Value.ToString() == "1"))
    {
        e.CellElement.DrawFill = true;
        e.CellElement.BackColor = Color.Red;
        e.CellElement.NumberOfColors = 1;
    }

    else if (e.CellElement.Value.ToString() == "P" || e.CellElement.Value.ToString() == "A" || e.CellElement.Value.ToString() == "E")
    {
        e.CellElement.DrawFill = true;
        e.CellElement.BackColor = Color.Orange;
        e.CellElement.NumberOfColors = 1;
    }
}

Any suggestions how to fix this?

Thanks in advance
Danilo
Top achievements
Rank 1
 answered on 29 Oct 2014
6 answers
346 views
Is it possible to create a right click Rad context menu in the designer with submenu items?  Or can it only be done in code.

Is there any suitable rad menu that can be created in the designer with sub menus and be used as a right click menu?

Otherwise I can use the standard .Net menu I guess.

Thanks
Dimitar
Telerik team
 answered on 29 Oct 2014
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
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?