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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

chaining on multiple lines does not work

Thread ID:





130413 May 11,2017 02:10 PM UTC May 15,2017 12:49 PM UTC ASP.NET MVC 3
Tags: Button
lawrence greenberg
Asked On May 11, 2017 02:10 PM UTC

In the button control and LisView, if I use multiple lines to continue the control arguments, it doesn't render.  all I get is the remaining text.  If I use 1 line for the entire command it works fine.  Ina previous application I used the grid with no problem.

ex: (this works)
 @Html.EJ().Button("SearchHNumber").Text("SearchHNumber").ShowRoundedCorner(true).ContentType(ContentType.TextAndImage).PrefixIcon("e-icon e-search").Width("140px")

(wrapping is because of the textbox I am typing into.  this is one line.)

this does not work:
.Text("Search HNumber")
.PrefixIcon("e-icon e-search")

Deepa Loganathan [Syncfusion]
Replied On May 12, 2017 12:06 PM UTC

Hi Lawrence, 
Thanks for contacting Syncfusion support.  
To call the method of an instance in with a line break, you need to enclose the code in rounded braces as highlighted below.  
.Text("Search HNumber") 
.PrefixIcon("e-icon e-search") 

Please get back to if you need any further assistance.  
Deepa L. 

lawrence greenberg
Replied On May 12, 2017 01:24 PM UTC

Thank you, Deepa

Deepa Loganathan [Syncfusion]
Replied On May 15, 2017 12:49 PM UTC

Hi Lawrence, 
Thanks for the update.  
Deepa L 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon