Premmerce Documentation > Table or Grid > Change the Placeholder in the Search Input Box

About Premmerce

Introduction

Full Features

Installation

Prerequisite

Setup & Installation

Table or Grid

Basic Usage

Disable Column Sorting

Disable Column Export

Change Search Placeholder

Custom Column Template

Add Buttons to Action Column

Hyperlink Column Text

Specific Roles to View Column

Add or remove column

Filter column

CSS and JS

Edit Color

File validation

General

Password Validation

Bulk Import

Other

It’s easy. Let’s go! The steps:

  1. By default, the placeholder is “Search…”. Let’s say you want to be more specific like "Seach Name and Description...”, you can do the following.

  2. Open the view page that loads the table

  3. Change the code for _TableLengthAndSearch to include custom search placeholder

    @await Html.PartialAsync("_TableLengthAndSearch"
    	**,new TableLengthViewModel { SearchPlaceholder = "Seach Name and Description..." }**
    )
    

Before:

image.png

After:

image.png