util formats for Ext.util.Format.fileSize

  1. #1

    util formats for Ext.util.Format.fileSize

    Hi All,

    There is a JS function on Ext its Ext.util.Format.fileSize. How is this command on Ext.NET?

    Ext.Net.Utilities.?

    Or how can i do preparedata in gridpanel?

    I wanna format file sizes on grid panel.
    Thanks.
  2. #2
    Hi,

    Accessing to Ext.util.Format.fileSize() in Ext.Net is the same as it's in ExtJS.

    To customize data's view in a grid, you can use Renderer.

    Here is an example how to use Renderer.
    https://examples1.ext.net/#/GridPanel/ArrayGrid/Simple/
  3. #3
    Its wonderful ...

    <ext:Column DataIndex="boyut" Header="Boyut">
    <Renderer Fn="RendererData" />
    </ext:Column>
      
    var RendererData = function (data)
    {
    return String.format(Ext.util.Format.fileSize(data));
    }
    Thanks for all.

Similar Threads

  1. [CLOSED] Ext.util.Format.brMoney
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 27, 2012, 5:09 PM
  2. Replies: 1
    Last Post: Nov 29, 2011, 5:11 PM
  3. [CLOSED] Error in the Ext.util.Format.date
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 16, 2011, 11:42 AM
  4. [CLOSED] Dynamic Created HtmlEditor With Ext.util.Format.htmlEncode
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 12, 2011, 12:59 PM
  5. Ext.util.Format.brMoney()
    By joao.msdn in forum 1.x Help
    Replies: 0
    Last Post: Dec 30, 2010, 12:40 PM

Tags for this Thread

Posting Permissions