[CLOSED] Can't find Format in Ext.Net.GroupingSummaryColumn

  1. #1

    [CLOSED] Can't find Format in Ext.Net.GroupingSummaryColumn

    Can't find Format in Ext.Net.GroupingSummaryColumn
    not SummaryRenderer.Fn, Renderer.Fn and not Format AS Ext.Net.RendererFormat

    i want Ext.Net.GroupingSummaryColumn.Format AS String

    Renderer.Fn is a very slow
    Last edited by Daniil; Jun 24, 2011 at 10:26 AM. Reason: [CLOSED]
  2. #2
    Hi,

    As string? Not sure what you mean.

    How can use set .Format "as string" for a common Column?

    I should say also that internally .Format is converted to a JavaScript function and it's the same with Renderer.Fn in speed aspect.
  3. #3
    I want write
    Ext.Net.GroupingSummaryColumn sc = new Ext.Net.GroupingSummaryColumn();
    sc.SummaryRenderer.Format = sc.Renderer.Format = "0";
  4. #4
    What do you expect from that "0"?

    .Format just is a function name from:
    http://dev.sencha.com/deploy/ext-3.3...xt.util.Format
  5. #5
    examples (123456.789):
    0 - (123456) show only digits, no precision
    0.00 - (123456.78) show only digits, 2 precision
    0.0000 - (123456.7890) show only digits, 4 precision
    0,000 - (123,456) show comma and digits, no precision
    0,000.00 - (123,456.78) show comma and digits, 2 precision
    0,0.00 - (123,456.78) shortcut method, show comma and digits, 2 precision
    To reverse the grouping (,) and decimal (.) for international numbers, add /i to the end. For example: 0.000,00/i

    It works
    Ext.Net.NumberColumn nc = new NumberColumn();
    nc.Format = "0";
    It not works
    Ext.Net.GroupingSummaryColumn sc = new Ext.Net.GroupingSummaryColumn();
    sc.SummaryRenderer.Format = sc.Renderer.Format = "0";
    Format have Ext.Net.RendererFormat type.
  6. #6
    Please use .FormatArgs.
  7. #7
    ok
    Then I need to use:
    Ext.Net.GroupingSummaryColumn sc = new Ext.Net.GroupingSummaryColumn();
    sc.SummaryRenderer.Fn = sc.Renderer.Fn = "Ext.util.Format.numberRenderer('0')";

Similar Threads

  1. [CLOSED] GroupingSummaryColumn expand
    By borja_cic in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 21, 2011, 9:55 AM
  2. [CLOSED] Format in a groupingsummarycolumn
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 10, 2010, 10:38 AM
  3. [CLOSED] [1.0] GroupingSummaryColumn, GroupingView issue (undefined)
    By miguelon in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 28, 2010, 5:12 PM
  4. [CLOSED] Cell Command and GroupingSummaryColumn
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 08, 2009, 9:38 PM
  5. GroupingSummaryColumn error
    By jortega in forum 1.x Help
    Replies: 0
    Last Post: Apr 24, 2009, 7:15 AM

Tags for this Thread

Posting Permissions