2 Replies Latest reply on Aug 4, 2011 4:05 AM by Venkatesan Balasubramanian

    without data in textfield and datagrid if i click add or delete button it should through msgbox

    Venkatesan Balasubramanian Level 1

      hi friends ,,

       

       

                       i am new to flex i am doing a application in flex4,i need help from this, i have two text inputs and one datagrid, and one add button and delete button.

       

       

      my requirement is without data if i click add or delete it should through error box how to do that,

       

      In 3 condtition it should  thorugh error or msg box;

       

      conditions are,

       

                        1.both textinputs and datagrid----> click (add or delete)--->error or msg box

                         2.both textinputs dont have value and datagrid have values----> click (add or delete)--->error or msg box

       

                         3..both textinputs  have value and datagrid  dont have values----> click (add or delete)--->error or msg box

       

       

      any suggession or snippet code are welcome

       

      Thanks in advance,

       

       

      B.venkatesan.