Ticket #835 (defect)
Opened 3 months ago
Last modified 3 months ago
TValidationSummary, works different when it's showing Javascript Validation than Server Validation.
Status: new
| Reported by: | sebathi | Assigned to: | xue |
|---|---|---|---|
| Priority: | low | Milestone: | 3.1.3 |
| Component: | Prado Framework v3 | Version: | 3.1 |
| Severity: | minor | Keywords: | |
| Cc: |
TValidationSummary, works different when it's showing Javascript Validation than Server Validation.
It renders different style. (with bullets or without).
<com:TValidationSummary CssClass="err_panel" DisplayMode="SimpleList" Display="Dynamic" ValidationGroup="bb_signup_grp"/>
Forum post: http://www.pradosoft.com/forum/index.php/topic,10029.0/prev_next,prev.html

You can fix the TValidationSummary just changing this line:
System.Web.Javascripts.source.prado.validator.validation3.js - Line: 504 from:
formats : function(type) { switch(type) { case "List": return { header : "<br />", first : "", pre : "", post : "<br />", last : ""}; case "SingleParagraph": return { header : " ", first : "", pre : "", post : " ", last : "<br />"}; case "BulletList": default: return { header : "", first : "<ul>", pre : "<li>", post : "</li>", last : "</ul>"}; } },To this:
formats : function(type) { switch(type) { case "SimpleList": return { header : "<br />", first : "", pre : "", post : "<br />", last : ""}; case "SingleParagraph": return { header : " ", first : "", pre : "", post : " ", last : "<br />"}; case "BulletList": default: return { header : "", first : "<ul>", pre : "<li>", post : "</li>", last : "</ul>"}; } },