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
3475
JavaScript not accepting parameters in 8.2
posted

We just updated our system to use Visual Studio 2008 and Infragistic NetAdvantage 8.2.  Clientsideevents that use to work are now causing us problems.  We have some cases where we are using clientsideevents on grids and passing parameters to the JS function.  We are getting errors that it can’t find the method.  It appears the events only want you to pass the name of the method, not any parameters. 

For example, several other pages are using common functions in a common js file to handle checking and unchecking checkboxes for expandable bands and making sure the ExpandAll checkbox is checked/unchecked in synch.  We are setting an event handler like this: ugrdCreditScores.DisplayLayout.ClientSideEvents.AfterRowCollapsedHandler = "infragGridAfterRowCollapsed('" & ugrdCreditScores.ClientID & "', '" & chkExpandAll.ClientID & "')"

When this line is changed to the following it will not get the error but it does not do what was requested.  Is there a work around for this?

ugrdCreditScores.DisplayLayout.ClientSideEvents.AfterRowCollapsedHandler = "infragGridAfterRowCollapsed"                                            

Parents Reply Children
No Data