Issue with print render

Discuss issues related to v3.x
User avatar
mats
Premium Member
Premium Member
Posts: 15621
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Issue with print render

Post by mats » Sat Jun 04, 2016 12:02 pm

Did you try to debug it and see why your styles are not correctly applied?
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
VincentOP
Posts: 26
Joined: Mon May 09, 2016 2:35 pm

Re: Issue with print render

Post by VincentOP » Mon Jun 06, 2016 9:36 am

Hi Mats,

With the help of a developper in the corp, we are checking the code.

We suppose that a "js-code" overwrite the event-style; the printing process does not run this "js-code", so that should the reason that the event-style is "incomplete".

(the original developper of our projet is no more present).

User avatar
VincentOP
Posts: 26
Joined: Mon May 09, 2016 2:35 pm

Re: Issue with print render

Post by VincentOP » Wed Jun 08, 2016 6:36 pm

Hi,

I get progress on my work.

Now the result is fine.

I would like if it is possible to hide "milestone" on print.

Code: Select all

printRenderer : function (ev, res, tplData, row) {
						if(ev.getId().indexOf('c')==-1 && ev.getId().indexOf('p')==-1 && ev.getId().indexOf('t')==-1){
							
							if(ev.getEndDate().toString==ev.getStartDate().toString){
								console.log('milestone');
								????????? I would like to hide milestone on print
							}
							
							if(typeof(ev.get('color')) != 'undefined')
							{
								if(ev.get('surSite'))
									tplData.style = tplData.style+';color: ' + ev.get('color').text + '; background-color: ' + ev.get('color').surSite + ';';
								else
									tplData.style = tplData.style+';color: ' + ev.get('color').text + '; background-color: ' + ev.get('color').background + ';';
							}
							
							//retrait du nom 'XXX'
							var taskName = ev.get("ClientName").replace("XXX","") + ev.getName();
							taskName = taskName.replace("YYYY","");
							
							if(!isNaN(ev.getId())){
								//return e.get("ClientName") + " " + e.getName();
								return taskName;
							}else{
								return ev.getName();
							}
						};

Post Reply