CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Min and Max

by mjq » 16 Sep 2014 10:00

Hello!

Because I wanted to restrict the numerical value input dynamically,
I put IWCGJQSpinEdit at my app's MainForm and set Min and Max properties of JQSpinOptions
by program code.

If these values were different, then worked expectedly.
But if same, the SpinEdit were able to change to less than Min value.

For example,
if Min was 1 and Max was 10, SpinEdit couldn't change by the button
to less than 1 or more than 10.
But when both Min and Max equal 11, could change less than 11.

What do you think this?

Best Regards.
mjq
 
Posts: 58
Joined: 20 Aug 2014 02:46

by Jorge Sousa » 16 Sep 2014 12:07

Hello

Ok, we will take a look

#Ticket:SRC00040364
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Alexander Bulei » 17 Sep 2014 11:10

Hi,

Fixed in v2.3.0.44:

Code: Select all
IWCGJQSpinEdit:
- Fixed: issue with Max & Min properties in jquery plugin, when they are changed in ajax
- Fixed: json generation of Max & Min properties


Thanks.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by mjq » 18 Sep 2014 01:34

Thank you for immediate action.
I confirm it soon after released that version.
mjq
 
Posts: 58
Joined: 20 Aug 2014 02:46

by Jorge Sousa » 18 Sep 2014 10:07

That version: 2.3.0.44, was released a few minutes ago
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by mjq » 19 Sep 2014 02:41

Hi,

Now I reinstalled V2.3.0.44 and confirmed updates.

But unfortunately the "Min" constraint did not function yet.

SpinEdit could still change to less than "Min"...


BTW, what I want to do is that changing the range of input
in the case of Inserting, and the case of Updating.

So I assigned "BeforeInsert" event of the Query, like:

delphi code
procedure TMyFrame.Query1BeforeInsert(DataSet: TDataSet);
begin
//this is for exapmle.
//actually '11' is changed case by case...
JQSpinEdit1.JQSpinOptions.Min := 11;
JQSpinEdit1.JQSpinOptions.Max := 11;
end;

and I executed it, then SpinEdit was able to change less than 11
even if this event passed.
mjq
 
Posts: 58
Joined: 20 Aug 2014 02:46

by Alexander Bulei » 19 Sep 2014 09:37

Hi mjq,

Can you send us the simple testcase? t.i.a

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by mjq » 22 Sep 2014 03:35

Hi,

Now I reinstalled not V2.3.0.44 but V2.3.0.46,
then my app worked as I intended.

Thank you for your support.
mjq
 
Posts: 58
Joined: 20 Aug 2014 02:46


Return to JQSpinEdit

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.