We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Line numbers not displaying propoerly after 99

Hi,
I am setting,
_editControl.ShowLineNumbers = true;

But my output is like this,

cid:image001.png@01D21FB2.BF0E7080




Any help is appreciated.


3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team October 7, 2016 10:04 AM UTC

Hi Ramesh,

Thank you for using Syncfusion products.

We are unable to use the shared image file and based on the reported details, kindly share the file once again. we could find Line Number is not rendered properly in EditControl and we are unable to reproduce it in our side. Could you please look into the below sample and Video? 
Screenshot: 
  
Could you please clarify us on some of the details below? 
  • File extension used in EditControl.
  • If you have specified Encoding Format?
  •  Code customization applied in EditControl.
  •  How EditControl is used in your application?
  •  Essential Studio Version.
  •  If possible, kindly reproduce and share us the sample with reproducing steps.
So that we can analyze and provide you the prompt solution at the earliest. 
Regards, 
Vijayalakshmi V.R. 



RA Ramesh October 7, 2016 01:04 PM UTC


I have attached the image.

  • File extension used in EditControl. - xml
  • If you have specified Encoding Format? no
  •  Code customization applied in EditControl. no
  •  How EditControl is used in your application? Very basic application. created dynamically, added the control to the form and called LoadFile with xml filename.
  •  Essential Studio Version. tried with 13.x and 14.x
  •  If possible, kindly reproduce and share us the sample with reproducing steps. 
  • _editControl = new Syncfusion.Windows.Forms.Edit.EditControl();
                // 
                // _editControl
                // 
                Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config1 = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
                _editControl.Configurator = config1;
                _editControl.ContextChoiceSize = new System.Drawing.Size(250, 100);
                _editControl.Dock = DockStyle.Fill;
                _editControl.LineNumbersFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204);
                _editControl.Location = new System.Drawing.Point(0, 33);
                _editControl.Margin = new Padding(5);
                _editControl.Name = "_editControl";
                _editControl.SaveOnClose = false;
                _editControl.SharedFileMode = true;
                _editControl.ShowOutliningCollapsers = false;
                _editControl.ShowOutliningTooltip = false;
                _editControl.ShowSelectionMargin = false;
                _editControl.Size = new System.Drawing.Size(718, 578);
                _editControl.StatusBarSettings.StatusPanel.MinWidth = 70;
                _editControl.StatusBarSettings.TextPanel.AutoSize = StatusBarPanelAutoSize.Spring;
                _editControl.TabIndex = 0;
                _editControl.Text = "";
                _editControl.VisualColumn = 13;
                _editControl.TextChanging += EditControlTextChanging;
                _editControl.KeyDown += EditControlKeyDown;
                _editControl.KeyPress += EditControlKeyPress;

                Controls.Add(_editControl);

Attachment: EditControl_e4ca0af3.7z


VR Vijayalakshmi Roopkumar Syncfusion Team October 10, 2016 06:59 AM UTC

Hi Ramesh,

Thank you for your update.

We have tried to reproduce the reported issue with the given code snippet, but the line numbers after 99 is correctly shown at our end. Please find the screenshot and modified sample from the following link:

Screenshot: 
 
 
We have also taken video that shows the line numbers are correct after number 99.

Video: http://www.syncfusion.com/downloads/support/forum/126304/ze/VideoNeweditcontrol613500768 

So could you please check it and let us know whether we are following the correct replication steps to reproduce the issue? If not, kindly provide us your issue reproducible sample along with brief description about replication steps. Kindly provide the file which you have used to load. So that it would be helpful for us to proceed further on this.

Regards,
Vijayalakshmi V.R.


 


Loader.
Live Chat Icon For mobile
Up arrow icon