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
170
cancelling a row select in javascript
posted

In a grid with a row selected, if a user clicks on another row, is there a way of

cancelling the selection in javascript ? Like in the BeforeRowActivateHandler ?

 

Thanks

Parents
  • 5118
    posted

    Hello,

    The UltraWebGrid has a BeforeRowActivateHandler and a BeforeSelectChangeHandler <both on the Client Side Events list> that you can handle and plug in the javascript necessary to accomplish this task... something like:

    var MyCondition = 0;

    function UltraWebGrid1_BeforeSelectChangeHandler(gridName, id){

        MyCondition += 1;

        if (MyCondition > 2) {

            return true;

        }

    }

Reply Children