Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Overriding icons for TreeGrid error messages

    Hi, we are developing an app that is using custom icons in dialogues that we display when there is a system error, user error, confirmation dialog, etc. While implementing a TreeGrid I noticed that SmartGWT assigns the caution (!) icon to all warnings when a user does something like assign a parent to a child or other errors. I can set the message using setCantDragIntoChildMessage() setCantDragIntoSelfMessage() etc but how do I change these icons? Should I use a custom CSS or is there an icon setter I'm not seeing? Thanks.

    #2
    The TreeGrid uses the system-wide "warn" dialog to show errors (the same one that appears if you call SC.warn()). You can modify the default "warn" icon and other icons used by Dialogs by using setDefaultProperties().

    Comment

    Working...
    X