Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
536 views
in Technique[技术] by (71.8m points)

angular7 - Header Row not Visible after binding ejs-grid in Angular

enter image description hereAm having an issue with ejs-grid in angular especially with header column which is not visible.Hav tested sorting the sorting allows are visible but not column names.

  <ejs-grid [dataSource]='empList' [allowPaging]="true" [allowSorting]="true" [toolbar]='toolbar'
   [pageSettings]="pageSettings" >
    <e-columns>
      <e-column field='EmpNumber' headerText='Number' textAlign='Left' width=90></e-column>
      <e-column field='FullName' headerText='Full Name' width=120></e-column>
      <e-column field='DOB' headerText='Date of Birth' textAlign='Right' width=90></e-column>
      <e-column field='Department' headerText='Department' textAlign='Right'  width=120></e-column>
   </e-columns>
 </ejs-grid>     

-- class
     export class employee {
       EmpNumber: string
       FullName: string
       DOB: any
       Department: string}       

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

We are tried to reproduce the reported behavior but it was unsuccessful at our end. The Column headers are shown properly with the headerText. Find the below sample for your reference.

Sample: https://stackblitz.com/edit/angular-sfq9xb-nhrwsz?file=app.component.html

Please share the below details to validate further with this.

  1. Did you used any custom CSS to customize the column header?
  2. Share the package.json file.
  3. Share the video demo & screenshot of reported behavior.
  4. If possible, share the simple issue reproducible sample or make the issue in the given sample.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...