Jump to content

separate 3 digits of a 3-digit number into a uniDbgrid


SayeyeZohor

Recommended Posts

Hello
I have a database in which there is a table.one of its fields is integer type.
Now when I display this field in Grid it shows  8546110069 while I want to display  in Dbgrid like 85,463,110,069
Please keep in mind I want   these 3 digit of the 3 are seprate from as client side and a code which written in Client event

Link to comment
Share on other sites

1 hour ago, SayeyeZohor said:

I dont want to change the data set.Any changes that need to be done will only be on Dbgrid and as client side

Maybe something like this?

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) 
{
    Ext.util.Format.thousandSeparator  = ",";
    
    //for example columnIndex=3
    columns[3].renderer = function(v) {
        return Ext.util.Format.number(v, "0,000")   
    };
}

 

  • Like 1
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...