Setting row height on spreadsheet

Having issues with trying to set the row height. Can't seem to get it to work at all. Is their documentation anywhere for it? 





2 Replies 1 reply marked as answer

GK Gayathri KarunaiAnandam Syncfusion Team July 1, 2021 12:22 PM UTC

Hi Jeff, 

We have checked your reported query. We can set Row height to spreadsheet by using the setRowHeight method.  In the setRowHeight method we have passed two arguments to the method. First is the value of height you need to set, and second argument is the rowIndex in which the value has to be set. Please check the below code snippet. 

<template> 
  <div> 
    <ejs-button id="customBtn" v-on:click.native="btnClick"> 
      Set Row Height</ejs-button 
    > 
    <ejs-spreadsheet ref="spreadsheet" id="spreadsheet"></ejs-spreadsheet> 
  </div> 
</template> 

<script> 
export default { 
  methods: { 
    btnClick: function () { 
      var spreadsheet = this.$refs.spreadsheet; 

     spreadsheet.setRowHeight(36 , 2); 

    }, 
  }, 
}; 
</script> 


For your reference, we have prepared a sample based on your requirement. Please check the below link. 


Please check the below link to know more details about setRowHeight method. 


Please check the above links and get back to us, if you need further assistance. 

Regards, 
Gayathri K 



JB Jeff Butterworth July 4, 2021 11:34 PM UTC

Works fine. Thank you. 


Marked as answer
Loader.
Up arrow icon