Flex -AdvancedDatagrid summaryFunction

I have an advanceddatagrid where i have to have custom summary function should return string data type. By default return type of summary function is Number.

Pleae provide hint display string or empty string on summary header.

Below are the code sample i used

private function rmSummaryFunction(iterator:IViewCursor, dataField:String, operation:String):Object {
      return "";

<mx:SummaryRow summaryPlacement="group"  >
      <mx:fields >
            <mx:SummaryField dataField="fac1"/>
            <mx:SummaryField dataField="fac7" />
            <mx:SummaryField dataField="fac8"/>
            <mx:SummaryField dataField="fac10" />
            <mx:SummaryField dataField="fac13" />
            <mx:SummaryField dataField="facilityTotal" summaryFunction="rmSummaryFunction"/>
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zzynxSoftware engineerCommented:
>>... summary function should return string data type.
Why is that?
How would you define the sum of a couple of string fields?
tamilselvanmaniAuthor Commented:

I know that summary should return numeric data type.
But i have a situation, where i have to have empty string display on the summary row for a partiuclar grouping.
 How do i do that?
zzynxSoftware engineerCommented:
You could make your summary function return -999 or whatever special value.
And then a (custom) renderer should take care of rendering that value as an empty string instead of the string representation of the number value

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tamilselvanmaniAuthor Commented:
got it
zzynxSoftware engineerCommented:
Thanx 4 axxepting

PS. What answer would have deserved an A grade?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Flex

From novice to tech pro — start learning today.