chaining on multiple lines does not work

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:
 @Html.EJ().Button("SearchHNumber")
.Text("Search HNumber")
.ShowRoundedCorner(true)
.ContentType(ContentType.TextAndImage)
.PrefixIcon("e-icon e-search")
.Width("140px")





3 Replies

DL Deepa Loganathan Syncfusion Team 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.  
[MVC] 
 
@(Html.EJ().Button("SearchHNumber") 
.Text("Search HNumber") 
.ShowRoundedCorner(true) 
.ContentType(ContentType.TextAndImage) 
.PrefixIcon("e-icon e-search") 
.Width("140px")) 
 

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



LG lawrence greenberg May 12, 2017 01:24 PM UTC

Thank you, Deepa


DL Deepa Loganathan Syncfusion Team May 15, 2017 12:49 PM UTC

Hi Lawrence, 
Thanks for the update.  
Regards,  
Deepa L 


Loader.
Up arrow icon