Title: Passing the combobox value to the datagrid validType function Post by: rezzonico on November 18, 2015, 09:49:50 AM Hi all,
I have a combobox and a datagrid. I need to pass the combobox value to the datagrid validType function. Here is my non-working code. Any help is appreciated. Regards. Miche Code: <script type="text/javascript"> Title: Re: Passing the combobox value to the datagrid validType function Post by: jarry on November 18, 2015, 06:25:32 PM The 'validType' property is not defined in datagrid plugin. What would you do with this property?
Title: Re: Passing the combobox value to the datagrid validType function Post by: rezzonico on November 19, 2015, 07:24:04 AM Hi jarry,
sorry ... I tryed to semplify my code but I removed too many lines. I have a combobox (for selecting the Year) and a datagrid. In my datagrid I have the field Col1. The editor type of Col1 is a combogrid. In the options I use "validType" with the remote program "dovalidate.cgi". The variable Year is passed to the validation program (dovalidate.cgi). All works perfectly. The only problem is that the program "dovalidate.cgi" always receive "Year=2010" also after selecting a new year in the combobox. In other words ... the value of the variable Year (passed to the program "dovalidate.cgi") is not updated with the current value of the combobox. Thanks for your help. Miche Code: <script type="text/javascript"> Title: Re: Passing the combobox value to the datagrid validType function Post by: StefaanEeckels on November 19, 2015, 08:44:21 AM The problem is that the function is evaluated when the handler is installed, not when it is called. You could try something lile this:
editor: { Title: Re: Passing the combobox value to the datagrid validType function Post by: rezzonico on November 20, 2015, 01:35:07 AM Thanks for your help !
|