Telerik Forums
UI for WinForms Forum
10 answers
405 views
Good morning

I have the next case i am using a gridView and i want export a Excel the content the gridView but with exception of any columns. its is possible.. for example i have a GridView with 7 columns and i need export a excel..but only five column of the grid its possible?

public

 

void Export(String sFilepath, RadGridView grvExportExcel)

 

{

 

try

 

{

 

ExportToExcelML exporter = new ExportToExcelML(grvExportExcel);

 

exporter.SummariesExportOption =

SummariesOption.ExportAll;

 

exporter.RunExport(sFilepath);

}

 

catch (Exception)

 

{

 

throw;

 

}

}

Thanks for your help.
Best wish
Elver Cano

Dimitar
Telerik team
 answered on 16 Sep 2019
7 answers
366 views

Hi,

Is it possible to add shadows to my radforms ?

Thanks for your response

Dimitar
Telerik team
 answered on 13 Sep 2019
2 answers
437 views

The MultiColumn ComboBox is always selecting a value after data is added to it. Is it possible to have it work almost exactly the same as the DropDownList?

 

For i As Integer = 1 To 12

    Me.MultiColumnComboBox1.EditorControl.Rows.Add(i, "Row " & i)

    Me.RadDropDownList1.Items.Add(i)

Next


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Sep 2019
3 answers
927 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
318 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
336 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
238 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
100 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
203 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
385 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
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?