Telerik Forums
UI for WinForms Forum
13 answers
1.4K+ views
hi,

Can anyone guide me in how to change the scrolling position of the scoll bar of radGridView  by code behind. 

regards,
Shewta
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Aug 2020
1 answer
152 views

Hello,

I have problem with completion window location when vertical scroll of SyntaxEditor is not at start position. In that case position of completion window is at the top of control, in same case, somewhere else. I reproduced such behavior on minimal example which I am sharing with you right now.

 

using System.Windows.Forms;
using Telerik.WinForms.Controls.SyntaxEditor.UI.IntelliPrompt.Completion;
 
namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
 
            ICompletionInfoCollection completionInfoCollection = new CompletionInfoCollection
            {
                new CompletionInfo("AAA", "A description."),
                new CompletionInfo("BBB", "B description."),
                new CompletionInfo("CCC", "C description.")
            };
 
            var completionListWindow = this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.CompletionListWindow;
            completionListWindow.Presenter.CompletionListItems = completionInfoCollection;
        }
 
        private void radSyntaxEditor1_DocumentContentChanged(object sender, Telerik.WinForms.SyntaxEditor.Core.Text.TextContentChangedEventArgs e)
        {
            Telerik.WinForms.Controls.SyntaxEditor.UI.CompletionListPopup completionListWindow = this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.CompletionListWindow;
            completionListWindow.Show();
            completionListWindow.Refresh();
        }
 
    }
}

As you can see in the images, in the first two cases everything is ok, but in the third image, when the vertical scroll is not at the start position (moved a little bit), the completion window has a completely wrong place.

Thank you for your answers.
Stoyan
Telerik team
 answered on 12 Aug 2020
3 answers
192 views

Is it possible to export the whole diagram as an image?

Image image = this.radDiagram1.ExportToImage(new Size(10000, 5000));
Clipboard.SetImage(image);

This only exports the visible area which gives me scrollbars which is not what I need.  I want the entire diagram as an image.

Thanks

Paul

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Aug 2020
1 answer
3.7K+ views

Hello,

Already using back color of textbox for validation. I'm trying to set border color for a different flag on the same textbox, but this coloring goes back to default color when the control is not in focus using TextBoxElement.Border.ForeColor. Would like to have the backcolor stay all the time; which I could achieve with RootElement.BackColor, but this goes away when the control is in focus.

 

How can I achieve a static border color?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Aug 2020
1 answer
308 views

My grid has a checkbox column "MyColumn" that has EnableHeaderCheckBox enabled.  That column is disabled in the following manner using the CellFormatting event, code follows(did it this way due to need to show a tool tip).  When I click on the header check box, every check box, including the disabled ones, are checked.  I don't want those that are disabled to be checked.  I've tried using the event HeaderCellToggleStateChanged to modify the toggle value of the checkbox, it's not taking effect.  How can I do this?

 

 private void MyGrid_CellFormatting(object sender, CellFormattingEventArgs e)
        try
            {

                e.CellElement.RowElement.ToolTipText = @"";
                e.CellElement.Enabled = true;

            if (!(bool)e.Row.Cells["Condition1"].Value)
                {
                    e.CellElement.Enabled = false;
                    e.CellElement.RowElement.ToolTipText = @"Disabled condition 1 ";
                }
              

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Aug 2020
1 answer
131 views
Is there a way to export diagram to a vector type image? I only see options to export to bitmap. Also, export only includes visible image, anything that was generated outside of initial view (such as negative positions) are not rendered.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Aug 2020
2 answers
147 views

Hi there,

I'm having a problem loading data in gridview. It's taking too long, like 2 seconds for 5-10 rows.

I think the main problem is where i assign the bindingsource.

I'd like to know if there is any faster way to do this.

I'm using progress 4gl and OE 12.1.

I'll attach a file of what i'm doing.

 

Thanks.

 

Hugo
Top achievements
Rank 1
 answered on 10 Aug 2020
2 answers
145 views

I need to use a RadGridView, so I can assign the DataSource.

 

However, when I do the following code, i get zero rows and columns.  What am I missing

 

 

List<Records> data = dbc.Records.ToList();
RadGridView gv = new  RadGridView();
gv.BeginUpdate();
gv.AutoGenerateColumns = true;
gv.AutoGenerateHierarchy = true;
gv.DataSource = data;
gv.EndUpdate();

 

 

When I look at the gridview, after the datasource is set, the row count and column count are zero?  Again, What I am doing wrong? The only thing that is different then what we are doing in our application, is the grid is not on a FORM.

 

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 10 Aug 2020
9 answers
649 views
Is there a way to capture or trap when the user hits the TAB key while on the RadTextBox?  I've tried various KeyPress, KeyDown, and PreviewKeyDown events but none of them seem to capture the TAB key.  I've tried turning TabStop on and off on the control and turning the KeyPreview property on and off on the ShapedForm but that doesn't appear to changing anything related to this problem.

Basically I'm trying to capture the TAB key for use with a barcode scanning gun that will scan the barcode then automatically enter a TAB key after the scan.  Unfortunately due to other applications that are using the barcode scanner, I'm forced to deal with the TAB key.  I tried using the Leave event but that event wants to fire all the time including when the control has focus and the user clicks a button or when the control has focus and the form is being closed.  I've been unable to come up with a viable solution just yet.  Any  help would be much appreciated!

Thanks,
-Tim
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Aug 2020
1 answer
136 views

I have not seen it, but is there any ability to export from the grid to a fixed length flat file?

 

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Aug 2020
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
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?