SelChanged Event - Pulldown List within a Grid

Started by vosey, March 04, 2014, 02:27:52 AM

Previous topic - Next topic

vosey

I'm attempting to trigger an event from a Pull-Down list within a Grid (within a modeless dialog), but the 'SelChanged' event seems to fire on initial selection of the PullDown cell before I've chosen a value, and I can't seem to get the Item I subsequently select from the PullDown returned during this action.  I've tried both synchronous and asynchronous modes.  I guess I'm missing something here (as usual)!, but would appreciate a pointer in the right direction.

owenwengerd

SelChanged for the grid fires when the grid's current cell selection changes. What you want is the OnEndLabelEdit event.
Owen Wengerd (Outside The Box) / ManuSoft

vosey

Thanks for the reply Owen,  That worked fine, but it appears necessary to manually click on another control or cell after picking an item from the drop down list before the 'OnEndLabelEdit' event fires, I guess that's what defines the 'End of the Label Edit' .  What I'd like to do, which I accept may not be possible, is to trigger an event at the point when I actually click on an item from the drop down list in order to update some related cells at that time.  I'm pretty new at this so please be patient!

owenwengerd

You're doing fine, no patience needed.

Which version of OpenDCL are you using, and what is the grid cell style? I think the behavior was changed in one of the recent builds so that the editing is considered to have ended as soon as you select from the dropdown, but only in the case of "simple list" combo styles (that is, combo styles where you can select from a list AND type in the edit box still do not fire immediately.)
Owen Wengerd (Outside The Box) / ManuSoft

vosey

Thanks for the vote of confidence!! - I'm using OpenDCL Studio 6.0.2.5,  The cell style is '18 - Drop Down List' with Four values entered at design time using the 'Set Drop List' button.  I'll upgrade and report back.  Thanks again.

vosey

Now running with Version 7.0.1.4 and the event 'OnEndLabelEdit' appears unchanged.. It Fires when another cell or control is picked after choosing a value from the dropdown list.

owenwengerd

I just checked, and is changed in OpenDCL 8.0. Sorry, it looks like you're out of luck unless you move to OpenDCL 8.
Owen Wengerd (Outside The Box) / ManuSoft

vosey

Upgraded to V.8 and it works perfectly!! - Thanks for the great support.