Telerik Forums
UI for WinForms Forum
1 answer
3.2K+ 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
239 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
75 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
100 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
70 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
427 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
74 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
3 answers
228 views

Good morning, the binding with RadDocument and Docx drive me crazy. 

When I click in importCommand, fires ImportDocx() correctly and file docx is imported in Rdoc property but in RadRichTextBox don´t display in view. When I clik in keyboard, the aplicacion pause in set.

This is my view model:

private RadDocument rd;
public RadDocument Rdoc
{
get { return rd; }
set {

        rd = value;
              OnPropertyChanged();
       }
}
public void ImportDocx()
{
      RadDocument doc = null;
      DocxFormatProvider provider = new DocxFormatProvider();
      using (Stream inputStream = File.OpenRead(“Any File.docx"))
      {
        doc = provider.Import(inputStream);
      }
      Rdoc=doc;
 }

 

This is my view (Xaml)

<telerik:DocxDataProvider RichTextBox="{Binding ElementName=radRichTextBox}" Docx="{Binding Path=Rdoc, Mode=TwoWay}"/>           
            <telerik:RadRichTextBox x:Name="radRichTextBox"/>.......

Martin
Telerik team
 answered on 10 Aug 2020
13 answers
716 views

Hi. Is it possible to overflow a text into the next cell?

Something like no-wrap and no ellipsis but the whole text should still be visible.

There seems to be no straightforward way to do this in gridview.

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

In Run Time, How do I change the line space in the wrapped label text, please see the Screenshot .

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 07 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
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?