Jump to content

StringGrid edit mask and right justified


cid

Recommended Posts

Hi,

I need edit mask 9,999   integer value and right justified in cell stringrid

Thanks

 

 

function reconfigure(sender, store, columns, oldStore, the, eOpts)
{
  for (var i = 0; i < columns.length; i++) {
   columns.editor = {selectOnFocus: true};
   columns.setWidth(45);
   
  if (columns.getEditor()) {
  columns.getEditor().on('specialkey', function (field, e) {
   if (e.getKey() == 13) {
     e.keyCode = e.TAB;
     return e.keyCode;
    }
   })
  }
}
}

Link to comment
Share on other sites

6 hours ago, cid said:

function reconfigure(sender, store, columns, oldStore, the, eOpts)
{
  for (var i = 0; i < columns.length; i++) {
   columns.editor = {selectOnFocus: true};
   columns.setWidth(45);
   
  if (columns.getEditor()) {
  columns.getEditor().on('specialkey', function (field, e) {
   if (e.getKey() == 13) {
     e.keyCode = e.TAB;
     return e.keyCode;
    }
   })
  }
}
}

Hello,

This is the wrong code, and why do you provide this code here?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...