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
265
attach ClientSideEvent programatically on client-side
posted

Hi -

Is there a way to attach certain client side events programatically at client side?

Thanks for you answers!

Parents
No Data
Reply
  • 12679
    Suggested Answer
    posted
    Hello epimienta,
    Here is one way to do that: 
     <script type="text/javascript">
    function UltraWebGrid1_AfterCellUpdateHandler(gridName, cellId){
             //Add code to handle your event here.
       var grid = igtbl_getGridById(gridName);    grid.Events.AfterEnterEditMode[0] ="AfterEnterEditModeHandler";
              debugger;
            }

        function AfterEnterEditModeHandler(gridName,cellId) {
                alert('Hi From  dynamic added handler');    
    }

    </script>

    Hope this helps

Children
No Data