Jump to content

Recommended Posts

Posted
36 minutes ago, Alr1976 said:

When i use Multiselect, first line is always checked. I tried to use dgdontshowselect but doesn' t works.

Hello,

I wasn’t able to reproduce your case.
Could you please let us know which uniGUI build/version you are using?

Also, are you sure you're correctly assigning the dgDontShowSelect option?

  • 2 weeks later...
  • 1 month later...
Posted
2 minutes ago, Stemon63 said:

there are news on this problem?
(First row is always checked on select column)

Hello,

Which build? Can you make a simple testcase to check?

Posted
2 minutes ago, Stemon63 said:

But this is a problem already present from Years 🙂

 

On 5/27/2025 at 7:41 PM, Sherzod said:
On 5/27/2025 at 7:04 PM, Alr1976 said:

When i use Multiselect, first line is always checked. I tried to use dgdontshowselect but doesn' t works.

Hello,

I wasn’t able to reproduce your case.
Could you please let us know which uniGUI build/version you are using?

Also, are you sure you're correctly assigning the dgDontShowSelect option?

 

Posted

Hi Sherzod,
I tried it and it actually works with dgDontShowSelect=true.
You were right! 😃

I take this opportunity to make my request:
But how can I clear the selection list at runtime?
(Or even assign the selection at runtime)?
Thanks a lot.

Posted
21 minutes ago, Stemon63 said:

But how can I clear the selection list at runtime?
(Or even assign the selection at runtime)?

This post may help you:

 

Posted

after open the table connected to the dbgrid and only once try :
  UniSession.AddJS(XXXXXGrid.JSName + '.getSelectionModel().deselectAll()');

 

  • Like 1
Posted

BTW,

if u have more the one grid u let the user select from then create global onload event for the dbgrid and set :

procedure TIturSearchFrame.ClearGridSelectedAfterLoad(Sender: TUniCustomDBGrid);
var
  DBGridJSName: string;
begin
  DBGridJSName := (Sender as TUniCustomDBGrid).JSName;
  UniSession.AddJS('setTimeout(function(){'+ DBGridJSName +'.getSelectionModel().deselectAll()}, 50)');
end;

 

and dont do it after open.  so every time the grid id reloaded u clean the select rec sign

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...