[CLOSED] Customize SummaryRenderer view

  1. #1

    [CLOSED] Customize SummaryRenderer view

    Hi
    Is that possible to design Summary like attached image?Is not ,then how to do this?please give some idea.Currently I do my summarycolumn like

    Html.X().SummaryColumn()
                        .Width(75)
                        .Text("Population")
                        .DataIndex("population")
                        .SummaryType(SummaryType.Sum)
                        .Renderer("return  value ;")
                        //.SummaryRenderer("return ' hours' + value ;")
                        .SummaryRenderer("return ' total ' + value ;")
                        .Editor(
                            Html.X().NumberField().AllowBlank(false).MinValue(0).StyleSpec("text-align:left").Listeners(l=>{l.Change.Fn="calculation";})
                            
                        )

    Attached Thumbnails Click image for larger version. 

Name:	summaryrender.png 
Views:	63 
Size:	1.9 KB 
ID:	13511  
    Last edited by Daniil; Jul 23, 2014 at 12:56 PM. Reason: [CLOSED]
  2. #2
    Hi @matrixwebtech,

    I think you can try to return an HTML string from a Renderer. With, for example, two paragraph <p> elements for each type of total.
  3. #3
    hi daniil
    thanks for reply.I see SummaryRenderer accept 2 type of parameter one is String which I use here and another Type is Renderer,can you please provide an example of SummaryRenderer with Renderer type parameter.

    Is there any technique to show summary out side gridpanel.

    Like attached image bellow


    Click image for larger version. 

Name:	functionalityrequired.png 
Views:	38 
Size:	28.8 KB 
ID:	13521
    Last edited by matrixwebtech; Jul 12, 2014 at 4:21 PM.
  4. #4
    I see SummaryRenderer accept 2 type of parameter one is String which I use here and another Type is Renderer,can you please provide an example of SummaryRenderer with Renderer type parameter.
    Here is an example.
    .SummaryRenderer(new Renderer { Fn = "mySummaryRendererJavaScriptFunction"  })
    Is there any technique to show summary out side gridpanel.
    Like attached image bellow
    It is not possible with a SummaryColumn, but you can achieve it manually. You could put some components under the GridPanel and hold the summary information there.
  5. #5
    can you please show me an example ..
  6. #6
    I think this WebForms example is quite close.
    https://examples2.ext.net/#/GridPane...Grid_TotalRow/

Similar Threads

  1. [CLOSED] Razor - SummaryRenderer
    By OriCoder in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Feb 15, 2013, 2:17 PM
  2. Replies: 13
    Last Post: Jan 17, 2013, 5:27 AM
  3. SummaryRenderer with null values
    By PetrSnobelt in forum 2.x Help
    Replies: 0
    Last Post: Oct 19, 2012, 1:18 PM
  4. [CLOSED] SummaryRenderer Fn in 2.0
    By gets_gui in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 12, 2012, 2:46 PM
  5. Replies: 1
    Last Post: May 05, 2011, 3:47 PM

Tags for this Thread

Posting Permissions