Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Question about Tab and ImageButton...

Last post 09-08-2008 10:58 by [Infragistics] Viktor Snezhko. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-04-2008 9:30

    • carmen30
    • Not Ranked
    • Joined on 06-23-2008
    • Points 65

    Question about Tab and ImageButton...

    Does anyone know if its possible add a Server Control ImageButton to a tab's little header portion? 

     J

    • Post Points: 20
  • 09-08-2008 10:58 In reply to

    Re: Question about Tab and ImageButton...

    Hi,

    Tab labels do not support templates, however, you may set their Text which "contains" templates. For example, you may insert a button by something like

    <Tabs>
     
    <igtab:Tab Text="New Tab <input type='button' value='but' onclick='myClick()' />"></igtab:Tab>
     
     ...
    </Tabs>

    You may process that click event by following 

    function myClick()
    {
     
    var tb = document.getElementById('TextBox1');
      if(tb)
        tb +=
    'x'; //tb.value = 'postback by tab';
      __doPostBack('TextBox1');
    }

    So, now on server you at least will get postback. If you have somewhere on page TextBox1 and you process its TextChange event, then that handler also should be hit.

    Note: if you do similar, then there is no support in case of misbehavior or any side efffects.

    Regards,
    Viktor
    Infragistics web team
    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems