Jump to content

Displaying a message inside the Tunidbgrid


Roberto Nicchi

Recommended Posts

I would like to display a message inside the Tunidbgrid component.

The situation is: the user open a form and see the grid. The grid is empty. The user should see a message in the middle of the grid that tell what to do: click some button o press a key to find the data.

Any idea ?

thanks

Link to comment
Share on other sites

49 minutes ago, Roberto Nicchi said:

I would like to display a message inside the Tunidbgrid component.

The situation is: the user open a form and see the grid. The grid is empty. The user should see a message in the middle of the grid that tell what to do: click some button o press a key to find the data.

Any idea ?

Hello,

Use UniDBGrid -> EmptyText property.

Link to comment
Share on other sites

22 minutes ago, Roberto Nicchi said:

I have seen it and would be perfect but text is displayed only when the dataset has been opened.

Can you try this approach?

UniDBGrid -> ClientEvents -> ExtEvents ->

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
    if (sender.getStore().count() == 0) {
        sender.getView().refresh()
    }
}

 

  • Like 1
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...