Two infragistics controls on the same line

My ASPX code:

<span>                        
  <igsch:WebDateChooser ID="ContractPeriod2Start" runat="server" 
     NullDateLabel="" Editable="True" EnableAppStyling="True">
  </igsch:WebDateChooser>
  <igsch:WebDateChooser ID="ContractPeriod2End" runat="server" 
     NullDateLabel="" Editable="True" EnableAppStyling="True">
  </igsch:WebDateChooser>
  <span><a href="#">Remove</a></span>
</span>

      

I want it to display the entire top level range on one line / line. However infragistics does it in a bunch of tables and divs, some greyed in firebug

<span>

    <input ... />
    <input ... />
    <table ... >...</table>
    <div>...</div>

    <input ... />
    <input ... />
    <table ... ></table>
    <div ... ></div>

    <span><a href="#">Remove</a></span>
</span>

      

which is output to 3 lines (one for each of the two IG controls, one for my delete range)

How do I make all this generated HTML into one line?

+2


source to share


1 answer


Assuming the third party control has no way to control the output, the fastest idea I can think of is to wrap everything in a table. You still won't control the output of each individual control, but you will be forcing three controls onto a single line.

So, not really, but:



<table>
    <tr>
        <td><!-- First igsch control here --></td>
        <td><!-- Second igsch control here --></td>
        <td><span><a href="#">Remove</a></span></td>
    </tr>
</table>

      

There might be a way to write an adapter to generate other html like CSS Friendly Control Adapters , but that will take much more effort.

+2


source







All Articles