ViewPort demo C# code error?

  1. #1

    ViewPort demo C# code error?

    I'm trying to get the ViewPort demo working in my website just to play around with it.

    In the code behind file, I've included the Coolite.Ext.Web library and have pasted the code directly from the demo. However, the Add method for the west Accordion, center FitLayout, and viewport BorderLayout provide a compile error stating that a conversion from Coolite.Ext.Web.Accordion/FitLayout/BorderLayout to Coolite.Ext.Web.PanelBase is not possible.

    These three objects do not inherit from PanelBase. Is there something I'm doing wrong here? I presume the demo code works for the demo.

    Here's one example of the code snippets from the demo that have errors (underlined):
      ...
      // Make Accordion container
      Accordion acc = new Accordion();
      acc.Animate = true;
    
      // Add Navigation and Settings Panels to Accordion
      acc.Items.Add(pnlNavigation);
      acc.Items.Add(pnlSettings);
    
      // Add Accordion to West Panel
      west.Items.Add(acc);
      ...
  2. #2

    RE: ViewPort demo C# code error?

    Hi fazeli,

    I think there might have been an issue in the v0.5.0 build and adding controls to the Items Collection. Just this morning I published v0.5.1 and it appears to now work properly with the ViewPort/Code-behind sample. I ran the original sample and it rendered perfectly. Try the latest build and let me know if the problem continues.

    I'm attaching the ComplexLayout-Csharp.aspx source file to this post.

    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. Complete demo of desktop control with code
    By softlabsgroup.support in forum 1.x Help
    Replies: 4
    Last Post: May 02, 2012, 6:51 AM
  2. [CLOSED] Demo page error
    By bakardi in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 24, 2011, 3:43 PM
  3. Error in v0.8 ViewPort
    By Zuexx in forum 1.x Help
    Replies: 2
    Last Post: Jun 11, 2009, 3:09 PM
  4. How to add tab using code Behind using ViewPort
    By designworxz in forum 1.x Help
    Replies: 2
    Last Post: Jan 14, 2009, 4:47 PM
  5. Replies: 7
    Last Post: Jul 19, 2008, 6:59 AM

Posting Permissions