Telerik Forums
UI for WinForms Forum
5 answers
319 views

Hello,

I have a couple questions related to RadGridView Self-Reference Hierarchy:

1. Is there a way to use the properties of System.Guid type as parent/child IDs? or only Int type?
2. How to configure a grid to be able to specify the columns manually and set AutoGenerateColumns property to false. I was not able to achieve it.

Thanks in advance!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Dec 2018
1 answer
107 views

Hi, I'm using a CheckedDropDownList fine, when the user press the Down Arrow key I show the dropdown ShowDropDown().

But I don't wanna it to be shown when the autocomplete is open, like when the user is switching between the suggestions pressing up and down arrows key...

   public static bool IsAutoCompleteOpen(this RadDropDownList ddl)
        {
            return ddl.DropDownListElement.AutoCompleteSuggest != null && ddl.DropDownListElement.AutoCompleteSuggest.DropDownList != null && ddl.DropDownListElement.AutoCompleteSuggest.DropDownList.IsPopupOpen;
        }
// the key down event
{
 
 if (e.KeyCode == Keys.Down && ddlItems.IsPopupVisible == false && ddlItems.IsAutoCompleteOpen() == false)
            {
                ddlItems.ShowDropDown();
                e.Handled = true;
            }
}

 

ddl.DropDownListElement.AutoCompleteSuggest is always null, so I can't find which is the correct property of AutoCompleteSuggest on CheckedDropDownList to check, any help?

Leandro
Top achievements
Rank 1
 answered on 21 Dec 2018
10 answers
50 views

Just noticed that when the grid as a sorting applied the following line ALWAYS return -1

 

var rowIndex = grdData.Rows.Add("whatever");

 

Without sorting it return the actual row. What i actually do is :

1 - Call the Grid.BeginUpdate();

2 - Clear the rows

3 - Loop in my collection and add 1 row per object

4 - Call the Grid.EndUpdate()

Dimitar
Telerik team
 answered on 21 Dec 2018
8 answers
777 views
Hi,

I'm using PdfViewer and it works file, but how to unload opened document programmatically?
Hristo
Telerik team
 answered on 21 Dec 2018
1 answer
113 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.2K+ 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.0K+ 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
597 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
103 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
5 answers
100 views

i have noticed that if you click on the + icon of the pdfnavigator it doesn't work. outside the + icon it works.
is this only the case with me ?

 

andre

Andre
Top achievements
Rank 1
 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
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?