Telerik Forums
UI for WinForms Forum
2 answers
144 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
631 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
135 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
339 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
934 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
437 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
1 answer
269 views

Hello,

In Run Time, How to remove/change the white space in the middle of the word rapped text. Kindly refer to the screenshot. 

https://anilkumar-aitechindia.tinytake.com/tt/NDUxMjc0NF8xNDI5OTY2Mg

Nadya | Tech Support Engineer
Telerik team
 answered on 07 Aug 2020
2 answers
222 views

Could you provide an example of using the RadSyntaxEditor commands? 

 

https://docs.telerik.com/devtools/winforms/controls/syntax-editor/commands

Thanks! Jason

Jason
Top achievements
Rank 1
Veteran
 answered on 06 Aug 2020
1 answer
187 views

Why does the PropertyGridDropDownListEditor automatically select the first option for me, is it possible to change this behavior?I want to keep things as they are when I have not chosen to.

public partial class RadForm1 : Telerik.WinControls.UI.RadForm
        {
        private class Info
            {
            [Editor(typeof(PropertyGridDropDownListEditor), typeof(BaseInputEditor))]
            public string Address { get; set; }
            }
 
        public RadForm1()
            {
            InitializeComponent();
            }
 
        private void RadForm1_Load(object sender, EventArgs e)
            {
            radPropertyGrid1.SelectedObject = new Info { Address = "B" };
            }
 
        private void radPropertyGrid1_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
            {
            PropertyGridDropDownListEditor ddl = e.Editor as PropertyGridDropDownListEditor;
            if (ddl != null)
                {
                BaseDropDownListEditorElement el = ddl.EditorElement as BaseDropDownListEditorElement;
                el.DataSource = new List<string> { "A", "B", "C" };
                el.Text = ((PropertyGridItem)e.Item).Value + "";
                }
            }
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Aug 2020
4 answers
846 views
Hi

I have a radgrid with the cell text alignment, in the first column, set to middle left.
The text in the cell (and the headertext) is to close to the edge of the radgrid.

The text in the cell looks missplaced since the is a 5px margin both above and below the text, but to the left there is none.

Is it possible to add a spacing to the left of the text (both headertext and cell), that is equal to the spacing above and below the text?
Can it be done by using FormatString?

Regards
Per Bornsjo


Nadya | Tech Support Engineer
Telerik team
 answered on 05 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
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
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
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?