• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[SOLVED] Examples Helpdesk grouping problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] Examples Helpdesk grouping problem

    In the VALENCE32 Examples, the Helpdesk Ticket Manager (MVC) TicketGrid.js, groupHeaderTpl does not render the priority description in the group header or on the individual row (see attached). I haven't done this before, so the code looks correct to me.

    Any ideas?
    Attached Files

  • #2
    BMDUSA,

    What is the value of the PRIORITY field for your records? Looking at the source it will show if the value is 1,2,3...

    Code:
    if (priority == 1) {
    		return '<span style="color:red;">High</span>';
    	}
    	if (priority == 2) {
    		return '<span style="color:#FFCC00;">Medium</span>';
    	}
    	if (priority == 3) {
    		return '<span style="color:green;">Low</span>';
    	}
        return priority;
    Just ran the example on our development server and priority displays just fine.

    Screen Shot 2013-12-06 at 4.43.10 PM.png

    Thanks

    Comment


    • #3
      The values are correct (1,2, or 3).

      Comment


      • #4
        However, your code is different. I copied yours and it now works.

        Comment

        Working...
        X