BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Jesus, Thanks for using Syncfusion Products. We would like to let you know that we do not have support for "AutoWrap grid content". Since this feature isn’t available in our product, we have logged this as feature. This feature can be tracked through our Features Management System: http://www.syncfusion.com/support/directtrac/features/JS-2299 But we can achieve this requirement using the following workaround.
For your convenience, we have created a simple sample and the same can be downloaded from the following location. Sample Location: http://www.syncfusion.com/downloads/support/directtrac/125045/SyncfusionMvcApplication31994021126.zip Please let us know if you have any queries. Regards, Alan Sangeeth S |
.e-grid .e-rowcell {
white-space:normal
}
</style>
Hi Jesus,
Thanks for your update.
We suggest you to use AllowAutoWrap property to resolve your
issue. Please refer the below code snippet to achieve your requirement.
[CSHTML]
@(Html.Syncfusion().Grid<autowrap.Models.Student>("GenericListGrid")
.Datasource(Model)
…..
.AllowAutoWrap(true)
.Column(cols
=>
{
cols.Add(c
=> c.UniversityCode).HeaderText("University
Code").TextAlign(Syncfusion.Mvc.Grid.TextAlignment.Right);
cols.Add("Template").TemplateColumn(true).TemplateName("WrapText").HeaderText("Title");
cols.Add(c
=> c.Duration).HeaderText("Duration").TextAlign(Syncfusion.Mvc.Grid.TextAlignment.Right);
cols.Add(c
=> c.CourseFees).HeaderText("Course
Fees").TextAlign(Syncfusion.Mvc.Grid.TextAlignment.Right).Format("{0:C}").Width(150);
cols.Add(c
=> c.CGPA).HeaderText("CGPA").TextAlign(Syncfusion.Mvc.Grid.TextAlignment.Right).Width(180).Format("{0:P}");
}))
For your convenience, we have created simple sample with you requirement
and the same can be downloaded from the following link.
Please let us know if you need further assistance.
Regards,
Shanmugaraja K
Thanks!!!!!
Now It Works!!! nice!!!
Hi Jesus,
Thanks for your update.
We are glad to know that your issue has been resolved. Please let us know if you have any other concerns so that we will be happy to help you out.
Regards,
Shanmugaraja K
Hi Jesus,
We are glad to announce that our Essential Studio Vol 3,
2014 is rolled out and is available for download under the following link:
http://www.syncfusion.com/forums/117495/essential-studio-2014-volume-3-final-release-v12-3-0-36-available-for-download
ASP.Net MVC Grid feature "AutoWrap grid content" is included in the above provided link.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Alan Sangeeth S