Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1115
Updating: applying template OR placeholder to cell in editMode: cell|row
posted

Hello,

is there a chance to apply a template (or at least a placeholder) to a column/cell during "inline" editing? 

select2 has this feature. http://ivaynberg.github.io/select2/#templating

Parents
No Data
Reply
  • 29417
    Offline posted

    Hello max ,

     

    Thank you for posting in our forum.

     

    In order to achieve this you would need to add a mask editor for the specific column and set for the inputMask of the editor the format you would like the data to be inputted in.

    For example:

    columnSettings: [                       

                            {

                                columnKey: "Title",

                                editorType: "mask",

                                    editorOptions: {

                                    type:"mask",

                                    inputMask : "CCCCCC h\\a"

                                                                                                                     

                                                                    }

                            }]

    I’ve attached an example for your reference where for the “Title” column an input mask is set. In the upper example 6 literal flags are set that will allow you to input  any keyboard character and the entry of them optional. Also at the end some literal characters are added (“ha”). That part of the input field cannot be modified and will always appear for the cells to which this editor is applied.

     

    For details on what type of filter flags you can set in the mask you can check the following link from our API documentation:

    http://help.infragistics.com/jQuery/2014.1/ui.igmaskeditor#options:inputMask

     

    Let me know if you have any questions or concerns regarding this.

     

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

    maskeditor.zip
Children