upgrade from WebGrid v6 to WebGrid v7. JavaScript code is broken

1 reply. Last post: March 23, 2010 11:48 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

We did upgrade from WebGrid v6 to WebGrid v7. Our custom js file used

'WGMenuEngine' variable which was declared in 'CommonLibrary\WebGrid\V6_0_7200

\WebGrid_Context.js'.
In v7 you have stoped to use 'WGMenuEngine' variable and as a result our

javascript code is broken (see code below). My question is, how in WebGrid v7 to

point to the WGMenuEngine object which supposedly is a ColumnContextmenu

 

Our broken code: //WGMenuEngine undefined

if (WGMenuEngine) {
        try {
            mnuFunc = WGMenuEngine.FilterMenuApplyAll;
            WGMenuEngine.FilterMenuApplyAll = fnFilterMnuClick;
            mnuClearFunc = WGMenuEngine.FilterMenuClearAll;
            WGMenuEngine.FilterMenuClearAll = fnFilterMenuClear;
            mnuClearThisFunc = WGMenuEngine.FilterMenuClearThis;
            WGMenuEngine.FilterMenuClearThis = fnFilterMenuClearThis;           
        } catch (err) {
        }
    }

 

All times are GMT -5. The time now is 11:33 PM.
Previous Next