Scroll disappears when adding a new page in Runtime
The Scroll disappears when a new page is added to the Runtime or when the visibility of a page is changed.
Property: multiline = false;
Normal:
https://ibb.co/iQ7Lhn
Change visible tab:
https://ibb.co/e76Ka7

Property: multiline = false;
Normal:
https://ibb.co/iQ7Lhn
Change visible tab:
https://ibb.co/e76Ka7
SIGN IN To post a reply.
3 Replies
MK
Mallika Kannan
Syncfusion Team
March 8, 2018 12:29 PM UTC
Hi Slava ,
Thank you for contacting Syncfusion support.
We checked your query “Scroll disappears when a new page is added to the Runtime or when the visibility of a page is changed.“, But we are unable to reproduce the reported issue at our end. We have also prepared the sample for the same. In our sample, we have changed the TabPageAdv Visibility and add/remove new TabPageAdv at dynamically. The following code demonstrates the same.
Code Example: [C#]
|
//Set TabControlAdv single line mode
tabControlAdv1.Multiline = false;
//Hide the TabPageAdv
this.tabControlAdv1.TabPages[this.tabControlAdv1.TabPages.Count - 1].TabVisible = false;
//Show the TabPageAdv
this.tabControlAdv1.TabPages[this.tabControlAdv1.TabPages.Count - 1].TabVisible = true;
//Add new TabPageAdv
TabPageAdv page = new TabPageAdv("New");
this.tabControlAdv1.TabPages.Add(page);
//Remove TabPageAdv
this.tabControlAdv1.TabPages.RemoveAt(this.tabControlAdv1.TabPages.Count - 1); |
Please find the sample and video from the below link.
Video: http://www.syncfusion.com/downloads/support/forum/136278/ze/SampleReferenceVideo1335586627.zip
Please check this video, sample and confirm the steps we have followed. Please share your working Essential Studio version along with the details of any Customization you have made on TabControlAdv, share sample/code to reproduce the issue and proceed further.
Regards,
Mallika
SL
Slava
March 8, 2018 04:43 PM UTC
Creation of tabs takes place on attributes from XML file.
Before creating, the command is:
menuPages.Controls.Clear ();
If I remove it, the scroll remains normal. If you leave something, it turns out so in the first message wrote
UPDATE:
Solved a problem.
Replaced:
menuPages.Controls.Clear ();
On:
menuPages.TabPages.Clear ();
And I know that I already asked. But I would like to know if there will be a possibility of changing the size of the buttons in TabPrimitiveHost?
Thank!
Before creating, the command is:
menuPages.Controls.Clear ();
If I remove it, the scroll remains normal. If you leave something, it turns out so in the first message wrote
UPDATE:
Solved a problem.
Replaced:
menuPages.Controls.Clear ();
On:
menuPages.TabPages.Clear ();
And I know that I already asked. But I would like to know if there will be a possibility of changing the size of the buttons in TabPrimitiveHost?
Thank!
MK
Mallika Kannan
Syncfusion Team
March 9, 2018 10:49 AM UTC
Hi Slava
Thanks for your update.
Query: I would like to know if there will be a possibility of changing the size of the buttons in TabPrimitiveHost?
We have maintain the TabPrimitiveHost Buttons size internally. So, there is no direct property to set the Buttons size in TabPrimitiveHost. As per your request, We have prepared the sample to change the size of the buttons in TabPrimitiveHost using the following code example.
Code Example: [C#]
|
//TabControlAdv Item size
this.tabControlAdv1.ItemSize = new Size(this.tabControlAdv1.ItemSize.Width, 50);
//Set the TabPrimitive Buttons size
foreach (TabPrimitive item in this.tabControlAdv1.TabPrimitivesHost.TabPrimitives)
{
var obj = item;
FieldInfo fi = obj.GetType().
GetField("m_szSize", BindingFlags.NonPublic | BindingFlags.Instance);
//Set the Buttons size
fi.SetValue(obj, new Size(50, 50));
} |
Screenshot
Sample: http://www.syncfusion.com/downloads/support/forum/136278/ze/WindowsFormsApplication51-1793862925.zip
Please try this above solution and let us know if it is helpful.
Regards,
Mallika
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
SL Slava
- Mar 7, 2018 05:19 AM UTC
- Mar 9, 2018 10:49 AM UTC