jQWidgets Forums

jQuery UI Widgets Forums Grid Removing timestamp from list

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 8 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Removing timestamp from list #87174

    walker1234
    Participant

    1) I have following JSFiddle and I would like to remove the timestamp part from the dates that are getting displayed from the dropdown list. Is it possible to do so in jQXGrid?

    2) Since C, D, E have only one dates associated with them, is it possible to show an asterisk with in the name column so that a user would know that there aren’t multiple dates associated with C,D and E respectively.

    Removing timestamp from list #87244

    Hristo
    Participant

    Hello walker1234,

    About first question – could use renderer of the ComboBox.

    Unfortunately, it is not possible with this settings on way that to work normally.
    If you would like to do this could use cellsrenderer:

    cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) { 
    	if(...) {
    		return '*';
    	} 
    }

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Removing timestamp from list #87261

    walker1234
    Participant

    I was actually using dropdownlist for this working JSFiddle and I tried using renderer property like this in the JSFiddle which is not working. Is there something wrong I am doing? Thanks

    Removing timestamp from list #87271

    Hristo
    Participant

    Hello walker1234,

    I include one more property to the ComboBox in the example below – renderSelectedItem.
    Please, take a look at this example:
    https://jsfiddle.net/9h6vswn5/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.