Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Client Side Click - UltragridColumn Button
posted

I am using Infragistics 8.3 and VS 2010 vb

I have a button defined like this:

 <igtbl:UltraGridColumn key="DLTCOLUMN" CellButtonDisplay="Always" 
                        Type="Button" Width="50px">
                         <Header>
                             <RowLayoutColumnInfo OriginX="5" />
                         </Header>
                         <Footer>
                             <RowLayoutColumnInfo OriginX="5" />
                         </Footer>
                    </igtbl:UltraGridColumn>
My previous code worked and looked like this:
<a onclick="if(confirm('Are you sure you want to delete order for customer AAF-MCQUAY CANADA EQ.?','Confirm Order Deletion')){}
else{return false};"
href="BLOCKED SCRIPT__doPostBack('_ctl2$_ctl6$grdPrevOrds$_ctl2$_ctl1','')">Delete</a>

My question is this:

What is the preferred/supported method to have a client-side confirmation dialog appear?  If cancel then cancel the event otherwise post and run server side ClickCellButton


  • 7570
    posted

    Hello LorenAtAAF,

    Please let me know if you have any questions.

  • 7570
    posted

    Hello LorenAtAAF,

    You may use the client side click event funstion of the CellButton. Within the client side event click, yo may include steps to handle / show a confirmation dialog.

    Please let me know if you have any questions.