Accordion Height

Hello, 

How I can set the height of Accordion Item? Please let me know.

Thanks


1 Reply

KC Kasithangam C Syncfusion Team August 31, 2016 09:06 AM UTC

Hi Arun,   
  
Thanks for contacting Syncfusion support.   
  
We had a property called” HeightAdjustMode” which is used to adjust only the content panel height of Accordion control. Please find the below code snippet to specify the height adjust mode:   
<code> 
@{Html.EJ().Accordion("basicAccordion").Items(data => 
               { 
                   data.Add().Text("Essential Chart").ContentTemplate(@<div> 
                   Essential Chart for ASP.NET MVC  
               </div>); 
               }).HeightAdjustMode(HeightAdjustMode.Content).Render();}    
</code> 

We have prepared a sample based on this and it is available under the following link: 

Sample: Sample 

Also, we had showcased options to adjust the height of the content panel in the following API link: 

  
Please find the UG link for the same: 


Regards, 
Kasithangam 


Loader.
Up arrow icon