We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

customize "No records to display" TD in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

130654 May 23,2017 10:49 PM May 24,2017 09:39 AM ASP.NET MVC 1
loading
Tags: Grid
Dongil Shin
Asked On May 23, 2017 10:49 PM

Hi, I'm trying to customize the 'No records to display' value and style when there's no data in the Grid.

When I try to access, it's undefined or some long objects.

Could you let me know how to change 'No records to display' text value and css style such as 'height' of the td?

Thank you.

Kind Regards,

Mani Sankar Durai [Syncfusion]
Replied On May 24, 2017 09:39 AM

Hi Dongil, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and based on your requirement we have prepared a sample that can be downloaded from the below link. 
In this sample we have customized the “No records to display” using Locale property in grid.  
Refer the code example. 
@(Html.EJ().Grid<object>("Localization") 
... 
 
        .Locale("de-DE") 
 
       .Columns(col => 
        { 
 
            ... 
 
        }) 
 
) 
<script type="text/javascript"> 
 
ej.Grid.Locale["de-DE"] = { 
    EmptyRecord: "Keine Aufzeichnungen angezeigt", 
    ... 
 }; 
 
 
</script> 

Also to change the height of particular td element we suggest you to use the cssClass in grid. 
Refer the code example. 
<style> 
   
    .rowchange .e-gridcontent td{ 
        height:30px; 
    } 
</style> 
@(Html.EJ().Grid<object>("Localization") 
... 
      .CssClass("rowchange") 
 
       ... 
        }) 
 
) 
 

Note: To use the Localization for the grid please refer the corresponding locale file in the script section under ej.web.all.min.js file 

Also we can get the corresponding culture file from the following location. 

 
Refer the documentation link. 
 
Please let us know if you need further assistance. 
 
Regards, 
Manisankar Durai 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;