Telerik Forums
UI for WinForms Forum
1 answer
143 views

Hi,

I have a RadGridView that is the AssociatedObject of a RadPrintDocument that I want to print via a PrintDialog:

private PrintDialog printDialog;
RadPrintDocument doc = new RadPrintDocument
{
	AssociatedObject = radGridHistorie
};

printDialog.Document = doc;
printDialog.AllowSelection = true;

if (printDialog.ShowDialog() == DialogResult.OK)
{
	doc.Print();
}

 

If I select "All" in the PrintDialog, all entries are printed on the document.

If I select "Selection" in the printDialog after having Rows selected in the GridView, no entries are on the printed document.

What is wrong?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Jul 2023
4 answers
327 views

Hi

I want to copy data from RadGridView1 to another RadGridView2.  I want to copy selected row from datagridview 1 using checkbox to another datagridview2. and selected rows should be removed from datagridview1.

And if i selected from datagridview2 it should moved again to datagridview1.

 

For Each row As GridViewDataRowInfo In Me.RadGridView1 .Rows
                  if  row.Cells(0).Value = true  then''Checkbox column

                 dim i as int16= Me.RadGridView2.add

                Me.RadGridView2.rows(i).cells(0).value= row.cells(0).vlaue.tostirng

         End If
Next row

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2023
1 answer
114 views

I have a rad ribbon sittng above a table layoutpanel. when I open the backstage view from startmenubutton it opens in one of the cells of the Tablelayoutpanel rather than overlaying all the content and filling the screen. how do I resolve this

 

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2023
2 answers
207 views

I can't seem to get FreezePanes to work.

I have a sheet populated with nothing but test character data:

I tried to freeze the top 3 rows, and the left-most 3 columns:

        mySpreadsheetControl.Workbook.Worksheets(0).ViewState.FreezePanes(3, 3)

Nothing seems to happen.

The RibbonBar menu option, to freeze either the top row or the left-most column does work. (why do I have to choose?)

Am I missing something?

Ian
Top achievements
Rank 2
Bronze
Bronze
Iron
 answered on 03 Jul 2023
1 answer
153 views

I created a simple hierarchical grid.  The parent grid renders fine.  The child grid contains a title of "table" which I did not assign nor want.

For the main, parent grid, changing and hiding the title is straightforward utilizing TitleText andGridViewElement.TitleLabelElement.Visibility.  For a child grid, not nearly as much.  I caught the events for RowFormatting, ViewRowFormatting, and ViewCellFormatting, to no avail. What method am I missing?  

Attached is an image of a parent & child grid with "table" as the child grid's title, a name which I did not assign, nor want.  Also attached is a sample project which has been playing around with me.

Thanks,

_D

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jun 2023
1 answer
163 views

Actually, I want to show some text in a row in grid and that row must not be divided by columns.so I am using summary row for that but my text is not able to accommodate inside that if I can increase height of summary row it will come in that.

In Below Image It was 3 line text in top summary row but I can see only 2 line text.

I just wanted to increase row height of summary row not to increase row height for all rows.

Open for other solutions as well it should just complete my needs.

 
Dinko | Tech Support Engineer
Telerik team
 answered on 29 Jun 2023
1 answer
140 views

I have a document generator which currently generates Word documents, and I’d like to replace it with the RichTextEditor control.

Has anyone tried anything like this? I’ve already replaced Excel with the RadSpreadsheet, and that was OK, albeit with a few restrictions, but the performance improvement made it worthwhile. But the Word generator is way more complicated, and uses all kinds of Word features, so just wondering if there are any gotchas.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jun 2023
1 answer
153 views
In the 'RadCheckedDropDownList' control, when the AutoCompleteMode is set as SuggestAppend, it opens a dropdown with suggestions based on what was typed. Is there a way for me to make this suggestion dropdown not open and have the text appear in the normal dropdown instead? I don't find it very appealing to open two dropdowns when I could just use one. I didn't find any option to remove this suggestion dropdown.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jun 2023
3 answers
137 views

Hello Support-Team,

I'm using a RadScheduler with a custom ElementProvider. I need some Help with the Elements. I wanted the name element on top and a info box right below using the rest of the free space. I made a screenshot and here is my code for the CustomElements:

 

class CustomSchedulerResourceHeaderCellElement : SchedulerResourceHeaderCellElement
{

        private readonly StackLayoutElement _container = new StackLayoutElement();
        private readonly StackLayoutElement _subContainer = new StackLayoutElement();
        private readonly LightVisualElement _nameElement = new LightVisualElement();
        private readonly LightVisualElement _infoElement = new LightVisualElement();

        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            _container.StretchHorizontally = true;
            _container.StretchVertically = true;
            _container.Orientation = Orientation.Vertical;
            _container.Alignment = ContentAlignment.TopCenter;
            _container.Padding = new Padding(3);
            _container.Children.Add(_nameElement);

            _nameElement.StretchHorizontally = true;
            _nameElement.DrawImage = true;
            _nameElement.ImageLayout = ImageLayout.None;
            _nameElement.TextWrap = true;
            _nameElement.TextAlignment = ContentAlignment.TopLeft;
            _nameElement.ImageAlignment = ContentAlignment.TopLeft;
            _nameElement.TextImageRelation = TextImageRelation.ImageBeforeText;

            _container.Children.Add(_subContainer);
            _subContainer.StretchHorizontally = true;
            _subContainer.StretchVertically = true;
            _subContainer.Orientation = Orientation.Vertical;
            _subContainer.Alignment = ContentAlignment.TopCenter;
            _subContainer.Children.Add(_infoElement);

            _infoElement.StretchHorizontally = true;
            _infoElement.StretchVertically = true;
            _infoElement.TextWrap = true;
            _infoElement.TextAlignment = ContentAlignment.TopLeft;

            _infoElement.BackColor = Color.FromArgb(128, Color.LightGray);
            _infoElement.NumberOfColors = 1;
            _infoElement.DrawFill = true;
            _infoElement.Font = new Font(this.Font, FontStyle.Regular);

            this.Children.Add(_container);
            this.DrawImage = false;
            this.DrawText = false;
        }

        public override string Text
        {
            get
            {
                InitElements();
                return base.Text;
            }
            set
            {
                base.Text = value;
            }
        }

/* Some more methods for setting the text elements and the image*/
}

 

I started with only one container, but adding a subcontainer didn't do the trick. Hope you can provide me a solution.

Regards,

Stephan

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Jun 2023
1 answer
157 views

I Have One GridViewTextBox Column in a grid and One ComboBox Column based on selection in a combobox column I need cells of TextBox Column to contain either string or integer value how I can do this please help me.

already used below mentioned code but having issue with that I cannot able to put values more than 100 in that and getting up/down arrows to increases and decrease values but I dont need them.

 radGridView1.EditorRequired += new Telerik.WinControls.UI.EditorRequiredEventHandler(radGridView1_EditorRequired);  // binding event on grid

void radGridView1_EditorRequired(object sender, Telerik.WinControls.UI.EditorRequiredEventArgs e)
        {
            if (this.radGridView1.Columns[1].IsCurrent)
            {
                var a = TextCodes.SingleOrDefault(t => t.Name.Equals(this.radGridView1.CurrentRow.Cells[0].Value));
                if (a == null)
                    return;
                if (a.TextCodeType == TextCodeTypeEnum._datetime)
                {
                    e.Editor = new RadDateTimeEditor();
                    e.EditorType = typeof(RadDateTimeEditor);
                }
                else if (a.TextCodeType == TextCodeTypeEnum._string && a.TextCodeValueList == null)
                {
                    e.Editor = new RadTextBoxEditor();
                    e.EditorType = typeof(RadTextBoxEditor);
                }
                else if (a.TextCodeType == TextCodeTypeEnum._string && a.TextCodeValueList != null)
                {
                    e.Editor = new RadDropDownListEditor();
                    try
                    {
                        ((RadDropDownListEditor)e.Editor).DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    }
                    catch (System.Exception)
                    {
                    }
                    e.EditorType = typeof(RadDropDownListEditor);
                }
                else if (a.TextCodeType == TextCodeTypeEnum._number)
                {
                    e.Editor = new GridSpinEditor();
                    e.EditorType = typeof(GridSpinEditor);
                }
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Jun 2023
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?