title: With the Ajax Control Toolkit, how would I go about programmatically creating an accordion control that is resizeable and drag/droppable at runtime?
body: <p>I was trying to generate a resizable and drag/droppable ajax control toolkit accordion control programmatically, but am running into some problems.</p>
  
  <p>First, can it be done?</p>
  
  <p>Second, my approach is not exactly working.
  I have a button that, OnClick, is supposed to create the accordion. So I create the accordion.  Add an accordion pane to it.  Add a combo button to the accordion pane.  Then add the entire accordion to the Ajax Panel.  My event handler follows.</p>
  
  <pre><code>    protected void btnTest_Clicked(object sender, EventArgs e)
      {
          //Generate the accordion
          AjaxControlToolkit.Accordion acc = new AjaxControlToolkit.Accordion();
  
          //Generate a single accordion pane
          AjaxControlToolkit.AccordionPane itm = new AccordionPane();
  
          //Create and add a control to the pane
          AjaxControlToolkit.ComboBoxButton cbbtn = new ComboBoxButton();
          itm.Controls.Add(cbbtn);   
          acc.Panes.Add(itm);
  
          //Add resizable extender to the accordion.  Only did resizable for now.
          //One step at a time.
          AjaxControlToolkit.ResizableControlExtender extResizeLocation = new AjaxControlToolkit.ResizableControlExtender();
          extResizeLocation.TargetControlID = acc.ID;
          extResizeLocation.Enabled = true;
  
          //Add accordion to update panel and update.
          UpdatePanel1.Controls.Add(acc);
          UpdatePanel1.Update();
      }
  </code></pre>
  
  <p>What I get when I press the test button is what appears to be a minimized button without text generated under the test button.  I have no clue what to do.</p>
  
  <p>Appreciate the help</p>