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

GetBarControl returning null

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

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

Any ideas?


4 Replies

MJ Mano J Syncfusion Team 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



AG Arthur Goh 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


SA Saradha Syncfusion Team 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.


AG Arthur Goh 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


Loader.
Live Chat Icon For mobile
Up arrow icon