Jump to content

UniDBGrid with hiddenpanel column editor


SIRE Software

Recommended Posts

Hello.

I have an issue with a DBGrid that uses a hiddenpanel with some controls (TUniEdit) bound it to the Editor property of the columns.

When i execute the append instruction of my table, the Grid enable the controls (UniEdit) of each cell where i set the focus

After that when i execute the cancel of my table, some times (not all the time), an error shows up "Ajax Error" Cannot set property 'readOnly' of null

After searching into the javascript files using chrome developer tools, i foun that the columns into the property InputEl has null assigned to the dom property so thats why the error.

Could you pleas help me here?

Thanks in advance

Link to comment
Share on other sites

Hi. Thanks

My build is 1.90.0.1547

My Grid has the next settings

- Hidden panel linked with 11 TUniEdit controls (each by column of the grid). The UniEdit controls has one trigger linked each

- Height := 28

- ClicksToEdit := 1

- LayoutConfig

  * DockWhenAligned := False

  * IgnorePosition := False

- Options [dgEditing, dgColLines, dgRowLines, dgAutoRefreshRow]

- StripeRows := False

- TrackOver := False

- WebOptions

   * KeyNavigation := knDisable

   * Paged := False

 

The sequence is:

- Execute append of the source

- Set focus (click into one of the cells) the change the focus to another and another then back focus to the first one i mean, is just selecting cells 4 or 5 times

- Execute the cancel of the source

- Start again. The error occurs sometimes when i do this sequence 3 or 4 times constantly. Some times when i execute append and some times when execute cancel.

Worth mentioning that when i execute the append and cancel event, i set by code the property readonly to true or false to some of the columns.

 

Thanks.

 

 

Link to comment
Share on other sites

  • 3 weeks later...

Hi there

I figured out that the problem was caused because i was setting up on runtime the readonly property of the editor control (TUniEdit) related to the grid column.

I disabled the function that set this property and just use the readonly property of the grid column and the problem was gone.

Besides i upgraded to the last version  but it was after i found the issue.
thanks.

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