Jump to content

Unidbgrid selection


MOGSY

Recommended Posts

Hi

How is possible to dynamically disable or enable selection. Following code disables selection how is possible to do this dynamically from the code.

function beforeInit(sender, config)
{
  sender.disableSelection = true;
}

 

regards

Link to comment
Share on other sites

Hi Sherzod

I have a result grid that shows the result of a search, it is confusing when a row is highlighted while the grid has no focus, I need to highlight the selected row when the grid has focus, otherwise it gives the impression that the grid has focus.

Regards

Link to comment
Share on other sites

36 minutes ago, MOGSY said:

I have a result grid that shows the result of a search, it is confusing when a row is highlighted while the grid has no focus, I need to highlight the selected row when the grid has focus, otherwise it gives the impression that the grid has focus.

Not very clear to me. But try:

UniDBGrid1.JSInterface.JSCall('getSelectionModel().setLocked', [True]);

 

Link to comment
Share on other sites

Hi Sherzod

Thank you for your reply, unfortunately the effect of this is that up arrow stops working and one can't press up arrow to move back up the records. 

I have tried using dgRowSelect of the Unidbgrid options property, however the same issue occurs with disabling and enabling of this property, up arrow stops working and it appears that it changes the focus from the unidbgrid.

regards

Link to comment
Share on other sites

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...