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.
Unfortunately, activation email could not send to your email. Please try again.

chaining on multiple lines does not work

Thread ID:

Created:

Updated:

Platform:

Replies:

130413 May 11,2017 10:10 AM May 15,2017 08:49 AM ASP.NET MVC 3
loading
Tags: Button
lawrence greenberg
Asked On May 11, 2017 10:10 AM

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")





Deepa Loganathan [Syncfusion]
Replied On May 12, 2017 08:06 AM

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. 


lawrence greenberg
Replied On May 12, 2017 09:24 AM

Thank you, Deepa

Deepa Loganathan [Syncfusion]
Replied On May 15, 2017 08:49 AM

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


CONFIRMATION

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.

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.

;