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
486
WebCombo causing postback
posted

Hi,

I am using a Ultrawebgrid with one of the column as webcombo. I want to display value of last column of grid on selection of webcombo so I have attached SelectedRowChanged ate server side causing postback. 

Whenever I click on webcmbo in any row it is causing postback, but I want to restrict postback only if I change value in webcombo of that particular row is changed

Please help on this

Parents
  • 7694
    posted

     Hello,
    You can use the event AfterCloseUp of  ClientSideEvents tag and force post back with JS code.


    ASXP of templated column:
    <Columns>
                            <igtbl:TemplatedColumn Width="100">
                                <CellTemplate>
                                    <igcmbo:WebCombo ID="WebCombo1" DataSourceID="SqlDataSource1" runat="server" Width="100">
                                        <ClientSideEvents AfterCloseUp="ACU" />
                                    </igcmbo:WebCombo>
                                </CellTemplate>
                            </igtbl:TemplatedColumn>

    JS cede:


     <script type="text/javascript">

       function ACU(cmboID) {

                var combo = igcmbo_getComboById(cmboID);
                __doPostBack(combo,"");
                //debugger;
            }

    </script >

    I hope this helps.

Reply Children
No Data