DatePick Plugin - showTrigger

DatePick Plugin - showTrigger

Hi,

I started using the jQuery UI datepicker widget and soon found it too limiting, so I'm currently looking at the datepick plugin. My scenario is that I have a custom developed data grid and some of the columns have date values, previously I implemented a popup window containing a date picker which is fired when the user double clicks on a date cell in the data grid (the cells in most cases being a input element of type 'text').

The data grid itself allows the user to navigate the grid cells using the cursor keys, much like in Excel, and what I don't want is for the date picker to appear when a date cell gains focus. Otherwise if hold down the down arrow key in a date column, it's possible the picker could pop up and down for each row, but at the very least it slows down the navigation.

The jQuery UI datepicker only allows triggering onfocus or through a button (which I really don't want) and disabling the datepicker doesn't seem to make any difference so that's of no use. But the datepick plugin's "showOnFocus: false" does actually stop the picker from appearing when the textbox gains focus. The problem I have is that there doesn't seem to be a .show or .hide method like there is on the jQuery UI datepicker, but there is a showTrigger option.

How would I set up the showTrigger option to show the picker when the user double clicks on the relevant text input, considering I'm configuring all the date cells in one go? I.e.

$("input[format='date']").datepick({dateFormat: "dd-M-yyyy", showOnFocus: false});

I don't want to have to cycle through all the date cells and set the trigger individually. I wouldn't mind setting the ondblclick method of each date cell to .show the date picker, but as I say I couldn't find any .show or .hide methods for this plugin.

Any help on this would be gratefully received.