On Thu, Jan 1, 2009 at 3:29 PM, blissweb <[email protected]> wrote:
> Is there any quick way to run a function after someone hits enter > after editing a datagrid cell. > > Ideally I want it to move to the next field if tabbed and insert a > new row if they hit enter. > > I see there is a enter=<func> for TextInput... but how do I get this > into the Datagrid editing cell ? > > I would also be interested in being able to click on a row with no > data to add a new row. So, if anyone knows how to do that it would > be useful too ? I seem to be able to capture a click on a row, but > not sure how to detect click on "rows" with no data. Actually I think the best way to do this may be to insert additional rows into the data provider beforehand. So there will be empty rows to begin with -- when the clicks on a cell in these rows, they become editable, and the user can enter data. You'll have to deal with the issues of sorting (you want the empty rows to always be at the bottom), scrolling, and post-processing (discard the empty rows afterwards). Manish -- http://manishjethani.com/

