Viewing 1 replies (of 1 total)
  • https://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules

    https://www.trirand.com/jqgridwiki/doku.php?id=wiki:predefined_formatter

    these 2 pages should tell you all of the options available for jqgrid’s input types and format options

    here are some examples pay attention to the separators. Remove any you don’t need.
    db_name::field_name::options:{},rules:{},formats:{}|

    leave the pipe separator off the last line to parse.

    my_awesome_database::months::edittype:'select', editoptions:{value:{'Select':'Select','January':'January','February':'February','March':'March','April':'April','May':'May','June':'June','July':'July','August':'August','September':'September','October':'October','November':'November','December':'December'}}|
    my_awesome_database::Comments::edittype:'textarea',editoptions: {rows:"5",cols:"250"}|
    my_awesome_database::Amount::align:'right', formatter:'number', formatoptions: {decimalSeparator:',', thousandsSeparator: '.', decimalPlaces: 2, defaulValue: 0},editoptions:{title:'Hello I am hover text'}|
    my_awesome_database::Date::align:'center',formatter:'date',formatoptions:{srcformat:'Y-m-d H:i:s',newformat:'Y-m-d'},editrules: {required: true, date: true}

    These are just some examples of what you can do and how I have used it,
    I am still trying to figure out how to get Y-m-d to m/d/Y format myself.

    Good luck sir.

Viewing 1 replies (of 1 total)
  • The topic ‘custom fields formatting options?’ is closed to new replies.