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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GetBarControl returning null

Thread ID:

Created:

Updated:

Platform:

Replies:

47410 Aug 4,2006 02:41 AM UTC Aug 9,2006 03:21 AM UTC General Discussion 4
loading
Tags: General Discussion
Arthur Goh
Asked On August 4, 2006 02:41 AM UTC

I have upgraded from v3 to v4 and found the following statement now return null.

CommandBar cmdBar = this.mainFrameBarManager.GetBarControl(toolbar);

Any ideas?


Mano J [Syncfusion]
Replied On August 4, 2006 04:24 PM UTC

Hi Arthur,

I have tested this issue in v.4.2.0.37. For some reason, I was not able to see the problem with GetBarControl method. Please refer to my test sample and let me know if you are able to reproduce it from your side.

It would be great, if you could provide a sample that shows this issue. Thanks for using Syncfusion products.

Regards,
Mano

Sample_CmdBar_Test.zip


Arthur Goh
Replied On August 8, 2006 02:02 AM UTC

Hi Mano

I have rewritten the example to show my problem.

Please note it used to work in v3.

Regards

Arthur Goh


Sample_CmdBar_Test.zip

Saradha [Syncfusion]
Replied On August 8, 2006 02:45 PM UTC

Hi Arthur,

Thanks for your sample. When MainForm is a MDI Container, MergedBars are used instead of original Bars.This is because of Bars from different MdiChild forms can be merged to a single Bar.
Therefore, you should get hold of the Bar''s MergedEquivalent to access it. Refer the attached sample.

Sample_CmdBar_Test.zip

Please let me know if you have any questions.Thanks for using Syncfusion products.

Regards,
K.Saradha Devi.

Arthur Goh
Replied On August 9, 2006 03:21 AM UTC

Thanks a lot. That seems to have done the trick. Will continue to port to v4.

Regards
Arthur Goh


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;