Telerik Forums
UI for WinForms Forum
4 answers
222 views

Hi,

Small question.

GanttView supports milliseconds in TimeLine.

In my project i need add timeline (with task) from task in from 0,25 to 2 seconds.

Talis
Top achievements
Rank 1
 answered on 11 Apr 2018
3 answers
109 views
Is it possible to put multi-lined text in items of RadListBox ?
Dimitar
Telerik team
 answered on 11 Apr 2018
2 answers
54 views

Hello~~

I  have two question.

I need your help.

1. Add parent to selectedItem

privite void Buttom1_click(object sender, EventArge e)

{

    // Add parent to selectedItem

   // raising error

   GanttViewDataItem item = new GanttViewDataItem();

     item.Items.Add(radGanttView1.SelectedItem);

    radGanttView1.Items.Add(item);

}

2. GanttViewTextItemEelement Drap & drop is possible to change parent & child?

 

HWI CHEOL
Top achievements
Rank 1
 answered on 10 Apr 2018
4 answers
99 views

hi 

why are all fields empty when scrolling

 

        private void dgvTaskFactory_ViewCellFormatting(object sender, CellFormattingEventArgs e) {
          if (e.CellElement is GridHeaderCellElement) {
                e.CellElement.TextWrap = true;
                e.CellElement.TextAlignment = ContentAlignment.BottomLeft;
            } else {
                if (e.CellElement is GridCellElement cell) {
                    if (cell.ColumnInfo.Name == ColumnTitle.GridTasklistMail.priority) {
                        cell.DrawText = false;
                        cell.Image = Image.FromFile(Convert.ToInt32(cell.Value.ToString()) == -1 ? "express.png" : "timable.png");
                    } else {
                        cell.Image = null;
                    }
                }
            }

        }

Andre
Top achievements
Rank 1
 answered on 10 Apr 2018
12 answers
786 views

Is it possible to mange group expanded state with AutoExpandGroups=false?

 

I have a 4-levels grid that simulates a treeview. original data is added in code with "radGridView1.Rows.Add( params[])"

 

The gridview's parameters :            

radGridView1.MasterTemplate.ShowFilteringRow = false;
radGridView1.MasterTemplate.EnableGrouping = true;
radGridView1.MasterTemplate.AllowDragToGroup = false;
radGridView1.MasterTemplate.AutoExpandGroups = false;
radGridView1.ShowGroupPanel = false;

 

I want only the level 1-2-3 opened, the last one which contains all the leaves must be closed, until user ask to see all the entities.

 

I add more data with  GridViewDataRowInfo rowInfo = new GridViewDataRowInfo(this.radGridView1.MasterView);

Setting cell values with =>    rowInfo.Cells[0].Value = newentity.Identifier;

 

and then for the grouping, those lines of code:

                radGridView1.Rows.Add(rowInfo);
                rowInfo.IsSelected = true;
                rowInfo.IsExpanded = true;

 

My problem is that after adding the new entity, all the groups are collapsed. I tried many ideas but none to success.

If I set the radGridView1.MasterTemplate.AutoExpandGroups to true, then everything gets expanded and the grid takes way to much height.

 

Any ideas? thanks

Dimitar
Telerik team
 answered on 10 Apr 2018
1 answer
522 views

Dear Concerns

  Please help for a issue of datagridview in c#. I want create new line by enter key in datagridview instead of else. I have seen several  of your solution and trying to correct. Problem is that datagridviewTextboxColumn do no accept AcceptReturn method. Please give a solution. I am sending the snapshot of my code. please see the attachment.  

Dimitar
Telerik team
 answered on 10 Apr 2018
2 answers
106 views

I've tried several examples from this forum to try to get the flashing caret to appear in a loaded document but no matter what I do nothing seems to work.

For example:

            RadRichTextEditor2.CaretWidth = 1
            Dim position As DocumentPosition = RadRichTextEditor2.Document.CaretPosition
            RadRichTextEditor2.Document.CaretPosition.MoveToLastPositionInDocument()
            RadRichTextEditor2.RichTextBoxElement.VerticalScrollBar.Value = RadRichTextEditor2.RichTextBoxElement.VerticalScrollBar.Maximum
            position.MoveToNext()

I think the caret is at the end of the last paragraph but until I actually click on the document and hit the space bar or start typing, the Caret is not visible...

I'm sure there's a simple way to get the flashing Caret to automatically appear but it evades me.  Does anyone know how to do this?

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Apr 2018
0 answers
89 views
The text conten is always unformates until backspace is pressed.this beaviour is present in pother controls
Sergio
Top achievements
Rank 1
 asked on 09 Apr 2018
3 answers
135 views
I have created next custom panel.

 

public class PrintablePanel : RadPanel, IPrintable
    {
        public PrintablePanel()
        {
        }
        public int BeginPrint(RadPrintDocument sender, PrintEventArgs args)
        {
            return 1;
        }
        public bool EndPrint(RadPrintDocument sender, PrintEventArgs args)
        {
            return true;
        }
        public Form GetSettingsDialog(RadPrintDocument document)
        {
            return new PrintSettingsDialog(document);
        }
        public bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)
        {
            Bitmap bmp = new Bitmap(this.Width, this.Height);
            bool printLandscape = Width > Height;
            Size printSize = this.Size;
            if (Size.Width > Convert.ToInt32(args.PageSettings.PrintableArea.Width) ||
                Size.Height > Convert.ToInt32(args.PageSettings.PrintableArea.Height))
            {
                printSize = new Size(Convert.ToInt32(args.PageSettings.PrintableArea.Width),     Convert.ToInt32(args.PageSettings.PrintableArea.Height));
                bmp = Imageworker.ResizeImage(bmp, printSize.Width, printSize.Height);
            }
            args.PageSettings.Landscape = printLandscape;
            this.DrawToBitmap(bmp, new Rectangle(new Point(0, 0), printSize));
            args.Graphics.DrawImage(bmp, Point.Empty);
            sender.
            return false;
        }
        public void Print()
        {
            RadPrintDocument doc = this.CreatePrintDocument();
            doc.Print();
        }
        public void PrintPreview()
        {
            RadPrintDocument doc = this.CreatePrintDocument();
            RadPrintPreviewDialog dialog = new RadPrintPreviewDialog(doc);
            dialog.ThemeName = this.ThemeName;
            dialog.ShowDialog();
        }
        private RadPrintDocument CreatePrintDocument()
        {
            RadPrintDocument doc = new RadPrintDocument();
            doc.AssociatedObject = this;
            return doc;
        }
    }

 

The problem I have is that when I want to print a panel that's larger then the papersize, it won't resize.

Setting the page to landscape also doesn't work.

See my code in the following method:

public bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)

Hristo
Telerik team
 answered on 09 Apr 2018
1 answer
62 views

This is strange.  I have an application with a number of GridViews in separate user controls.

The code underneath each one is very similar but for some reason on GridView1 when the user clicks on the funnel icon the filter drop down - drops down (opens) but in GridView2 when the funnel is clicked on - nothing happens.  The drop down won't 'drop down'.  The filter row can be typed in but clicking the icon has no effect whatsoever... and I can't figure out why.

Has anyone else experienced this issue and if so how does one go about fixing this issue?

Dimitar
Telerik team
 answered on 09 Apr 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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?