Telerik Forums
UI for WinForms Forum
3 answers
1.0K+ views

Hi Admin,

 

MouseHover - I want to open the one of form and  once the mouse is moved away the form closes

Please tell to me how to do like that?

 

Thanks,

Moe

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Sep 2019
1 answer
372 views

Dear Admins.

I was Using the following code for populating radGridView. But it was little bit slower (items Count was more then 40,000)

BindingSource source = new BindingSource
{
    //GetItemTable Return the DataTable
    DataSource = _ItemRepository.GetItemTable()
};
radGridView1.MasterTemplate.DataSource = source;

 

Then i give a try to use VirtualGrid (By using the Example given in the Documentation), to check the performance difference.it is good.

I have some question regarding presentation/ populating of VirtualGrid.

The ItemClass is used to populate the VirtualGrid have 15 columns(Attributes),

  1. I want to load only some of them, Locating at different Column Numbers not in Sequence. Like i have Column Number from 1...15, I want to display only 1,3,6,10th Column Numbers(Index Numbers).
  2. How to Hide any Column which is already populated in the Grid.
  3. I want to make custom filter functionality. I Have a Text Box above the VirtualGrid. I want to use that TextBox to apply the Filter on the Grid by Typing the Item Name, and Grid filter the Number of items according the typed text and display in the grid.
  4. How to Clear VirtualGrid rows.

I can use these functionalities by using the radGridView, but due to performance i want to use Virtual Grid.

I have achieved this behavior using the Microsoft DataGridView. But due to Conversion. I want to use all the controls only from telerik. (Using R2 2019 SP1)

If possible any working example will be appreciated. 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Sep 2019
4 answers
380 views

Hi *,

I follow the docs and use

<p>InitializeComponent();</p> <p>ThemeResolutionService.ApplicationThemeName = "CrystalDark";   </p>

 

Unfortunately my open file Dialog does not accept the theme I set for the application.

Questions:

- is this a right way to set app theme in the ctor of main window (after Initialize component of Course)?

- I would like to use a new folder select dialog by Rad Browse Editor. How to do this?

Thanks a lot

Rostislaw

Dimitar
Telerik team
 answered on 10 Sep 2019
3 answers
273 views

Hi,

We are using RadMaskedEditBox. We have set the mask - (###) ###-#### &&&&&&&&&& & masktype as Standard. The issue which we are facing in this is it is allowing to type the values in the middle of the mask. Can you please suggest a method to restrict it? It should allow me to type from beginning to end. Video link mentioned below for your reference.

Video link 

 

Dimitar
Telerik team
 answered on 10 Sep 2019
0 answers
123 views

Greetings,

Using the Panorama control , it is possible to design panels similar to Windows start menu panel. But I It would be even better if there had been a fade-in effect for tiles when appearing for the first time. I attached a gif image that I recorded from my Windows 8.1 start menu panel to illustrate what I'm talking about.

P.S I tried making tiles invisible and then making them visible one by one , like every 10 milliseconds, through rows and columns of groups in the control. Not bad, but changing visibility this way isn't smooth as the fade-in effect .

 

Any trick ?

George C.
Top achievements
Rank 2
Iron
Veteran
 asked on 10 Sep 2019
2 answers
235 views

Dear Admins.

 

I want to Display icon in RadTextBox.

Found the solution on  this link.

How can i do this at Design Time. 

Kashif
Top achievements
Rank 1
 answered on 09 Sep 2019
5 answers
434 views

     Hey guys, I'm using RadListView with Customized Items and I have some problems that I need help, please check Image attached

this is my custom item class:

class MensagensCustomListView : SimpleListViewVisualItem
    {
        LightVisualElement tituloElement;
        LightVisualElement descricaoElement;
         
        LightVisualElement textoImageDestaqueElement;
        LightVisualElement nossoObterElement;
        LightVisualElement fecharElement;
        StackLayoutPanel stackLayout;
 
        private void Elemento_MouseLeave(object sender, EventArgs e)
        {
            BackColor = Color.Transparent;
            BorderColor = Color.FromArgb(221, 221, 221);
            fecharElement.Visibility = ElementVisibility.Hidden;
        }
 
        private void Elemento_MouseEnter(object sender, EventArgs e)
        {
            BackColor = Color.White;
            BorderColor = Color.Black; this.BorderGradientStyle = GradientStyles.Solid;
            var bound = Data.DataBoundItem as notificacao_model;
            if (bound.pode_fechar_notificacao)
                fecharElement.Visibility = ElementVisibility.Visible;
            else
                fecharElement.Visibility = ElementVisibility.Hidden;
        }
 
 
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            stackLayout = new StackLayoutPanel
            {
                Orientation = System.Windows.Forms.Orientation.Vertical,
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true,
            };
 
            textoImageDestaqueElement = new LightVisualElement
            {
                Font = new Font("Segoe UI", 8, FontStyle.Italic, GraphicsUnit.Point),
                ForeColor = Color.Gray,
                TextAlignment = ContentAlignment.MiddleLeft,
                Margin = new System.Windows.Forms.Padding(1, 3, 0, 0),
                Text = "Destaque",
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true,
                Visibility = ElementVisibility.Collapsed,
            };
            stackLayout.Children.Add(textoImageDestaqueElement);
 
            var stackLayoutHorizontal = new StackLayoutPanel
            {
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true,
                Orientation = Orientation.Horizontal
            };
 
            tituloElement = new LightVisualElement
            {
                TextAlignment = System.Drawing.ContentAlignment.MiddleLeft,
                TextWrap = true,
                Margin = new System.Windows.Forms.Padding(3, 1, 3, 1),
                Font = new System.Drawing.Font("Segoe UI", 9, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point),
                ForeColor = System.Drawing.Color.FromArgb(51, 3, 0),
                StretchHorizontally = true,
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true,
            };
            stackLayoutHorizontal.Children.Add(tituloElement);
 
            fecharElement = new LightVisualElement
            {
                Font = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point),
                ForeColor = System.Drawing.Color.Black,
                Text = "x",
                StretchHorizontally = false,
                DisableHTMLRendering = false,
                BackColor = Color.FromArgb(230, 230, 230),
                EnableHighlight = true,
                HighlightColor = Color.FromArgb(240, 240, 240),
                Padding = new Padding(5, 2, 5, 2),
                DrawFill = true,
                ToolTipText = "Fechar Mensagem",
                NumberOfColors = 1,
                Visibility = ElementVisibility.Collapsed,
            };
            fecharElement.MouseEnter += Elemento_MouseEnter;
            fecharElement.MouseLeave += Elemento_MouseLeave;
            fecharElement.Click += FecharElement_Click;
            stackLayoutHorizontal.Children.Add(fecharElement);
 
            stackLayout.Children.Add(stackLayoutHorizontal);
 
            descricaoElement = new LightVisualElement
            {
                TextAlignment = System.Drawing.ContentAlignment.MiddleLeft,
                Margin = new System.Windows.Forms.Padding(3, 1, 3, 1),
                Font = new System.Drawing.Font("Segoe UI", 8, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point),
                ForeColor = System.Drawing.Color.FromArgb(60, 60, 60),
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true,
            };
 
            stackLayout.Children.Add(descricaoElement);
 
            nossoObterElement = new LightVisualElement
            {
                Margin = new System.Windows.Forms.Padding(190, 5, 3, 0),
                Font = new System.Drawing.Font("Segoe UI", 8, FontStyle.Regular, System.Drawing.GraphicsUnit.Point),
                ForeColor = Color.FromArgb(153, 153, 153),
                Text = "Mensagem da Obter",
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true,
            };
            stackLayout.Children.Add(nossoObterElement);
 
            Children.Add(stackLayout);
 
            Margin = new Padding(6, 0, 0, 0);
            Padding = new System.Windows.Forms.Padding(1);
            BackColor = Color.FromArgb(245, 245, 245);
            BorderColor = Color.FromArgb(221, 221, 221);
            BorderGradientStyle = GradientStyles.Solid;
            DrawBorder = true;
            DrawFill = true;
            Shape = new RoundRectShape
            {
                BottomLeftRounded = true,
                BottomRightRounded = true,
                TopLeftRounded = true,
                TopRightRounded = true,
                Radius = 3
            };
 
            this.MouseEnter += Elemento_MouseEnter;
            this.MouseLeave += Elemento_MouseLeave;
 
            //SetMouseEnterLeave(stackLayout, stackLayoutHorizontal, textoImageDestaqueElement, tituloElement, descricaoElement, nossoObterElement, fecharElement, this);
        }
 
      
        private void FecharElement_Click(object sender, EventArgs e)
        {
            var bound = Data.DataBoundItem as notificacao_model;
            Data.ListView.Items.Remove(Data);
            this.Visibility = ElementVisibility.Collapsed;
            if (bound != null)
            {
                bound.notificacao_fechada = true;
                bound.OnFechar();
            }
        }
 
        protected override void SynchronizeProperties()
        {
            var bound = Data.DataBoundItem as notificacao_model;
            if (bound != null)
            {
                tituloElement.Text = bound.titulo;
                if (bound.descricao.IsNotNullOrEmpty())
                {
                    descricaoElement.Visibility = ElementVisibility.Visible;
                    descricaoElement.Text = bound.descricao;
                }
                else
                    descricaoElement.Visibility = ElementVisibility.Collapsed;
 
                if (bound.destaque == true)
                {
                    textoImageDestaqueElement.DrawImage = true;
                    textoImageDestaqueElement.Visibility = ElementVisibility.Visible;
                    if (textoImageDestaqueElement.Image == null)
                        textoImageDestaqueElement.Image = new Bitmap(Properties.Resources.favicon.ToBitmap(), new Size(16, 16));
                }
                else
                    textoImageDestaqueElement.Visibility = ElementVisibility.Collapsed;
 
                if (bound.mensagem_da_obter)
                    nossoObterElement.Visibility = ElementVisibility.Visible;
                else
                    nossoObterElement.Visibility = ElementVisibility.Collapsed;
 
            }
        }
    }
Leandro
Top achievements
Rank 1
 answered on 06 Sep 2019
1 answer
203 views
How progamming grouping colum in radgridview?
I have this grid (picture "grid_now.jpg")
Need to do (picture "grid_needow.jpg")

Programm code :
this.columnGroupsView = new ColumnGroupsViewDefinition();<br><br>            this.columnGroupsView.ColumnGroups.Add(new GridViewColumnGroup("group1"));<br>            this.columnGroupsView.ColumnGroups[0].Groups.Add(new GridViewColumnGroup("h1"));<br>            this.columnGroupsView.ColumnGroups[0].Groups[0].Rows.Add(new GridViewColumnGroupRow());<br>            this.columnGroupsView.ColumnGroups[0].Groups[0].Rows[0].ColumnNames.Add("column1");<br>            this.columnGroupsView.ColumnGroups.Add(new GridViewColumnGroup("group2"));<br>            this.columnGroupsView.ColumnGroups[1].Groups.Add(new GridViewColumnGroup("h1"));<br>            this.columnGroupsView.ColumnGroups[1].Groups[0].Rows.Add(new GridViewColumnGroupRow());<br>            this.columnGroupsView.ColumnGroups[1].Groups[0].Rows[0].ColumnNames.Add("column2");<br>            this.columnGroupsView.ColumnGroups[1].Groups[0].Rows.Add(new GridViewColumnGroupRow());<br>            this.columnGroupsView.ColumnGroups[1].Groups[0].Rows[1].ColumnNames.Add("column3");<br><br>            this.radGridView1.ViewDefinition = columnGroupsView;<br>
not work(
Dimitar
Telerik team
 answered on 06 Sep 2019
3 answers
366 views
I have 3 vertical tool windows inside a dock that fills the window.  I have all set as relative sizing. It works great when I resize smaller.  When I increase the application window size, the tool windows do not increase in width.  How can I fill the dock window when I enlarge?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Sep 2019
3 answers
435 views

Dear Admins.

 

I have a problem in printing Sale Receipt (width = 3in) direct to printer without preview (on Thermal Printer).

I was trying to Use other Reporting tool like rdlc reporting, but have some problem in rdlc.

Is there any option in telerik for doing this. 

Any working example will be appreciated.

I'm Using UI for Winform R2 2019 SP1.

 

Dimitar
Telerik team
 answered on 06 Sep 2019
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?