JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid Grid Placeholder Stays With Default Value

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #111772
    Matias Galante
    Participant

    Hello,

    I’m using the Grid with Angular and I want to change the default placeholder from “No Rows” to something else but when I set the placeholder property, the default message still shows.

    Here is an example where I am passing an empty array to the grid so the placeholder appears: https://stackblitz.com/edit/github-5qrt1d?file=src%2Fapp%2Fapp.component.ts

    Is this the intended way to change the default placeholder value?

    • This topic was modified 1 week, 1 day ago by Matias Galante. Reason: Changed the link
    #111774
    admin
    Keymaster

    Hi Matias,

    The current version of the product uses the ‘placeholder’ key from the ‘messages’ property as this is part of the localization process of the Grid. The placeholder property is used for backward compatibility only if the ‘placeholder’ key is not defined, but in the current version it is and its value is ‘No rows’ which means that the solution is to set a new value of the ‘placeholder’ in the ‘messages’ property.

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.