Jump to content
uniGUI Discussion Forums
Sign in to follow this  
TuanHoang

Difference behavior when use custom TUniDBEdit control in grid vs in Fieldset

Recommended Posts

I create new control base on TUniDBEdit, it has trigger to show lookup dialog.

 

I use this control in grid column editor (name accountEdit1) and name accountEdit2 in other Fieldset (second TagSheet)

 

The first if I edit grid column, press trigger button, lookup dialog show before call field's onvalidation.

 

The second if I edit accountEdit2 control, press trigger button, field's onvalidation call before lookup dialog show.

 

I debugged, on the first  procedure DoSetRemoteValue don't call,  on the second procedure DoSetRemoteValue call before JSEventHandler.

 

Why has difference behavior of same control?

 

I use 1.0.0.1410 Trial

 

Sorry for my English.

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Do you have access to unigui source code?

 

Sent from my SM-N900 using Tapatalk

 

No, from call stack. Please help, I must show 2 or 3 forms of unigui to my boss before decide use unigui. 

Share this post


Link to post
Share on other sites

When editor is in a dbdrig it becomes a part of grid. It behaves differently. You should not use a dbedit for grid. Using a tuniedit is enough.

 

Sent from my SM-N900 using Tapatalk

Share this post


Link to post
Share on other sites

Thank for your support

 

I must use TUniDBEdit because from http://forums.unigui.com/index.php?/topic/9291-dbgrid-refresh-column-total-of-row-after-edit-column-qty/&do=findComment&comment=48017

If I use TUniDBEdit, value of column 4 from 200 will be update to 0 after I press tab (same value as I press enter).

 

But now problem is not edit in grid, Now my problem is new control base on TUniDBEdit which has trigger to show lookup dialog.

If field's onvalidation is called after call JSEventHandler (AEventName = 'Triggerclick'), I can disable onvalidation => show lookup => do something => re enable onvalidation at end.

But now field's onvalidation is called before call JSEventHandler.

Share this post


Link to post
Share on other sites

Thank for your support

 

I must use TUniDBEdit because from http://forums.unigui.com/index.php?/topic/9291-dbgrid-refresh-column-total-of-row-after-edit-column-qty/&do=findComment&comment=48017

If I use TUniDBEdit, value of column 4 from 200 will be update to 0 after I press tab (same value as I press enter).

 

But now problem is not edit in grid, Now my problem is new control base on TUniDBEdit which has trigger to show lookup dialog.

If field's onvalidation is called after call JSEventHandler (AEventName = 'Triggerclick'), I can disable onvalidation => show lookup => do something => re enable onvalidation at end.

But now field's onvalidation is called before call JSEventHandler.

 

If you are using uniGUI at this level then you need to get a license first.

 

Thanks

Share this post


Link to post
Share on other sites

If you are using uniGUI at this level then you need to get a license first.

 

Thanks

 

Dear Farshad

 

I will do it in next month.

Now I had some problem with Unigui.

The first is http://forums.unigui.com/index.php?/topic/9291-dbgrid-refresh-column-total-of-row-after-edit-column-qty/&do=findComment&comment=48017. Can I use UniEdit instead of UniDBEdit.

The second is DoSetRemoteValue is called before JSEventHandler. If I buy UniGui, Can I has solution to fix it?

 

Sorry for my English.

 

Tuan

Share this post


Link to post
Share on other sites

Hi,

 

uniDBGrid mimics a VCL grid in many ways, but it doesn't work well when you modify a db row dynamically when you jump from one cell to another.

I can not promise that we can resolve this. You need to find another workaround for time being.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×