Telerik Forums
UI for WinForms Forum
1 answer
149 views

This is my code to select multiple rows and it works. But when i use the search bar the selected rows un-select themselves

 //Enabling multiple row selection
dataGridViewCompanies.MultiSelect = true;
dataGridViewCompanies.SelectionMode = GridViewSelectionMode.FullRowSelect;

 

Any tips on how to keep the selected rows after i search so i can select as many as i want! 

 

Thanks

 

 

Dimitar
Telerik team
 answered on 21 Dec 2018
9 answers
1.4K+ views

Hi,

spreadexportrenderer not available in telerik.wincontrols.export name space. Anyone can give me a idea on how sort this.

 

what I am trying is

          Dim renderer As Telerik.WinControls.Export.SpreadExportRenderer = New Telerik.WinControls.Export.SpreadExportRenderer()
          spreadExporter.RunExport(dialog.FileName, renderer)

Madura

Hristo
Telerik team
 answered on 21 Dec 2018
6 answers
1.1K+ views

Hi,

How do I remove/hide buttons specifically 

  • Html Document 
  • Rich Text Format
  • Plain Text
  • XAML Document

from the backstage view of the Rich Text Editor Ribbon Bar.

With a regular backstage view I could do something along the lines of

this.radRibbonBarBackstageView1.Controls.Remove(this.radButton1);

but here I can't access the backstage view.

 

picture

 

Thank you in advance

Mohammed

Hristo
Telerik team
 answered on 21 Dec 2018
4 answers
718 views

Hello.

 I've been researching and made a code that could solve my problem of automatic visibility of the scroll bar in Telerik listView, Telerik ListControl and Windows listView

using System;
 
namespace TelerikWinFormsApp2
{
    public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        public RadForm1()
        {
            InitializeComponent();
  
            for (int i = 0; i < 50; i++)
            {
                radListView1.Items.Add("aa");
                radListControl1.Items.Add("aa");
                listView1.Items.Add("aa");
            }
 
            //Windows listView Mouse Events
            listView1.MouseEnter += new EventHandler(listView1_MouseEnter);
            listView1.MouseLeave += new EventHandler(listView1_MouseLeave);
 
            //Telerik listView Mouse Events
            radListView1.MouseEnter += new EventHandler(radListView1_MouseEnter);
            radListView1.MouseLeave += new EventHandler(radListView1_MouseLeave);
 
            //Telerik listControl Mouse Events
            radListControl1.MouseEnter += new EventHandler(radListControl1_MouseEnter);
            radListControl1.MouseLeave += new EventHandler(radListControl1_MouseLeave);
 
        }
 
        private void RadForm1_Load(object sender, EventArgs e)
        {
            //Windows ListView
            listView1.Scrollable = false;
 
            //Telerik ListView
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
 
            //Telerik ListControl
            this.radListControl1.ListElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
        }
 
        private void radListView1_MouseEnter(object sender, EventArgs e)
        {
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
        }
 
        private void radListView1_MouseLeave(object sender, EventArgs e)
        {
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListView1.ListViewElement.ViewElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
        }
 
        private void radListControl1_MouseEnter(object sender, EventArgs e)
        {
            this.radListControl1.ListElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListControl1.ListElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListControl1.ListElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListControl1.ListElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListControl1.ListElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Visible;
            this.radListControl1.ListElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Visible;
        }
 
        private void radListControl1_MouseLeave(object sender, EventArgs e)
        {
            this.radListControl1.ListElement.Scroller.Scrollbar.FirstButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.SecondButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.ThumbElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.FillElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.Children[1].Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            this.radListControl1.ListElement.Scroller.Scrollbar.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
        }
 
        private void listView1_MouseEnter(object sender, EventArgs e)
        {
            listView1.Scrollable = true;
        }
 
        private void listView1_MouseLeave(object sender, EventArgs e)
        {
            listView1.Scrollable = false;
        }
    }
         
}

 

I hope it helps.

 

Regards
Felipe. 

 

 

​

Hristo
Telerik team
 answered on 21 Dec 2018
3 answers
147 views

I'm creating a custom theme for the scheduler using the style builder. In the style builder I can switch the view to month and timeline, but agenda view is missing. How can I get it to show agenda view?

 

Thanks in advance

Hristo
Telerik team
 answered on 21 Dec 2018
2 answers
175 views

Hi, I'm having trouble solving a problem.

To guarantee a better user experience I need to call the BestFitColumns method, but the data to be presented in the grid comes from an asynchronous method which ends up generating unexpected and random results.

Is there an event occurring immediately after CellValueNeeded that I can call BestFitColumns or in that case would it be better to simply access the data in a synchronous way?

I tried PageChanged and ValueChanged events, but to no avail.

 

Thank you.

Luis
Top achievements
Rank 1
 answered on 20 Dec 2018
3 answers
173 views

Hello,

I use rowformatting to change row forecolor in my radgridview. But when I use Fluent theme, the row forecolor changing in rowformatting doesn't work any more.

But it works in some other themes like windows7, windows8, VS2012,Office2007, Desert, Aqua, etc. I've tried change fore color in cellformatting by using Fluent theme, it works. 

Why in Fluent theme, forecolor cannot be changed in rowformatting ?

Thank you

 

 

Dimitar
Telerik team
 answered on 20 Dec 2018
1 answer
130 views

How I can change the culture of RadChartView at runtime? tooltip write "Category" and "Value". I need change Culture for Portuguese, I'm using Visual Basic.Net 2017 and Telerik 2018 R2.

Regards.

Hristo
Telerik team
 answered on 20 Dec 2018
4 answers
282 views

Hi,

Changing the size of a form at runtime somehow messes up the control size / layout if DPI / scaling ist at >100%.

This only happens if the form is loaded inside an Excel add in, if the same form is loaded in a normal WinForms project everything is fine.

Attached is a sample Excel add in project.

 

Kind regards,

Christian

Hristo
Telerik team
 answered on 20 Dec 2018
5 answers
157 views
How can I move Search above columns header?
Dimitar
Telerik team
 answered on 20 Dec 2018
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
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
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?