Datagrid and percentage formatting
I am having some difficulty rendering percentages in the
DataGrid. I have the following JSON file structure:
{"n":"Zimbabwe",
"o":"63%",
"m":"38%",
"g":"1,900"
When I import these values into the DataGrid, there is a
problem when I try to sort the percentage columns. The percentages
are not sorted in the correct order, resulting in something like
this:
0%
100%
14%
17%
etc..
Instead of:
0%
14%
17%
100%
So, I tried changing the JSON file to:
{"n":"Zimbabwe",
"o":"63",
"m":"38",
"g":"1900"
However, now I am having problems getting Flex to display a
percentage symbol next to the numbers in the DataGrid. Any idea
what I need to do to get this working? What is the right approach
to take when working with number formatting in the DataGrid? Should
I be formatting the numbers inside the data source before feeding
into Flex, or should I be storing the raw numbers in the JSON file
and then formatting them with Flex?
Great if someone can point me in the right direction, because
I really can't find any information about it anywhere on the
Internet.
Many thanks!
My advice is not to pass strings where you actually want to
pass a integer/float.
So best is to pass this :
{"n":"Zimbabwe",
"o":"63",
"m":"38",
"g":"1900"
Then use a item renderer to render the values as percentage
values.
Ries
Here is my ProcentualRenfderer.mxml
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
implements="mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComp onent">
<mx:Script>
<![CDATA[
import mx.controls.listClasses.ListData;
import mx.controls.dataGridClasses.DataGridListData;
import mx.controls.listClasses.BaseListData;
import mx.controls.dataGridClasses.DataGridItemRenderer
import mx.events.FlexEvent;
private var _listData:DataGridListData;
// Implement the drawFocus() method for the VBox.
override public function drawFocus(draw:Boolean):void {
followUpCB.setFocus();
[Bindable] private var _numDigits:Number = 2;
[Bindable]
override public function set data(value:Object):void{
super.data = value;
followUpCB.text=Math.round(data[_listData.dataField] *
(Math.pow(10,_numDigits)) ) / (Math.pow(10,_numDigits)) + '%';
override public function get data():Object {
return super.data;
public function get listData():BaseListData
return _listData;
public function set listData(value:BaseListData):void
_listData = DataGridListData(value);
public function set numDigits(value:Number):void {
_numDigits = value;
public function get numDigits():Number {
return _numDigits;
]]>
</mx:Script>
<mx:Label id="followUpCB" textAlign="right"
width="100%"/>
</mx:VBox>
Similar Messages
-
How to use custom label formats to display currency and percentage
Hi There,
I need a pie chart to display both currency and percentage. I have the cell format editor open for custom cell formats (from the pie chart label format menu) but am not sure how to write the expression.
I've tried something like this but get an error:
$ #,### - % #,###
How can I display both currency and percentage for the same label?
Any pointers in the right direction would be much appreciated.
Cheers
Benlabels built into Keynote can be displayed as percentage or value, not both
The choice is made in: Inspector > chart > series > data point settings
the work around is to manually add text boxes with the currancy value entered in each box, as in $2.00 -
Forms, Calculations and Percentages
I am using Acrobat XI Pro. I am trying to calculate some items for an order form. It will be the (Quantity * Unit Price)*(Discount*-1). The discount it a percentage. However, the form keeps turning the percentage from 20% to 2000%. Then when it does the calculation in the Savings field it comes out as a negative number in the hundreds. How would you do this type of thing? I have tried both simplified and custom script. Neither have worked. The TOTAL field will be (Quantity*UnitPrice)+(Savings)
So it should read across Quantity=2 UnitPrice=$50.00 Discount=20% and Savings=$10.00
Thank you in advance for any help
EllenPercentages are entered in as decimal values and the formatting of a field makes the adjustment of the decimal place and adding the "%" symbol. If you want to try and do the math yourself, you will be doing a non-standard operation and need to write more scripts and more debugging to handle your code.
-
Hi experts,
Plz send me the BAI 1 and 2 text file formates .
Regards,
Srinivasa rao.VBAI and BAI2 formats differ in their level of information detail. BAI does not separate out the incoming check line items by invoice subtotal reference. Conversely, BAI2 splits the check total into separate invoice references and associated payment amounts. As a result, your hit rate percentage of payment-invoice matching from each transmission is likely to be higher when using BAI2 rather than BAI formats
-
Unable to load wsdl. if currently online please verify the uri and or format of the wsdl
Hi,
i have one aspx page in which i have embeded an swf object,
which calls webservice to load data,
it works fine on localhost,
but when uploaded it gives the error no 2032 stream error ,
i added the crossdomain.xml in the root project then that error was gone and found the following error,
"unable to load wsdl. if currently online please verify the uri and or format of the wsdl"
Can anybody help me with this?
Any elp or suggestion will be appriciated.
Thank You.
BhavikaI had the same error message and I believe I added the -use-network=true to the additional compiler arguments to fix the problem. The default value for this should be true.
Sorry if this doesn't help...It's just a guess. -
Converting from PDF directly to Java Objects/XML (and PDF format questions)
Hi,
I posted this originally in the Acrobat Windows forums but was told I might have more luck here, so here goes:
I am desperately trying to find a tool (preferably open source but commercial is fine also) that will sit on top of a PDF and allow me to query it's text for content and formatting (I don't care about images). I have found some tools that get me part of the way there, but nothing that seems to provide an end-to-end solution but is quite lightweight. My main question is WHY are there so many tools that go from PDF to RTF, and many tools that go from RTF to XML, but NONE that I can find that go PDF to XML.
To clarify, by formatting I simply mean whether a line/block of text is bold/italic, and its font size. I am not concerned with exact position on the page. The background is that I will be searching PDFs and assigning importance to whether text is a heading/bodytext etc. We already have a search tool in place so implementing a pure PDF search engine is not an option. I need a lightweight tool that simply allows me to either make calls directly to the PDF OR converts to XML which I can parse.
Some tools I have tried:
1) PDFBox (Java Library) - Allows the extraction of text content easily, but doesn't seem to have good support for formatting.
2) JPedal (Java Library) - Allows extraction of text content easily, and supports formatting IF XML structured data is in the PDF (not the case for my data).
3) Nitro PDF (Tool) + RTF to XML (script) - This works quite nicely and shows that PDF to XML is possible, but why do I have to use 2 tools? Also, these are not libraries I can integrate into my app.
4) iText (Java Library) - Seems great at creating PDFs but poor at extracting content.
I don't really expect someone to give me a perfect solution (although that would be nice!).
Instead, what I'd like to know is WHY tools support PDF to RTF/Word/whatever retaining formatting, and other tools support RTF to XML with the formatting information retained. What is it about PDF and RTF/Word that makes it feasible to convert that way, but not to XML. Also, as I found in 3) above, it is perfectly feasible to end up as XML from PDF, so why do no tools support this reliably!
Many thanks for any advice from PDF gurus.XML doesn't mean anything - it's just a generic concept for structuring
information. You need a specific GRAMMAR of XML to mean anything. So what
grammar would you use? Something standard? Make up your own?
However, there are a number of commercial and open source products that can
convert PDF to various XML grammars - SVG, ABW, and various custom grammars.
But the other thing you need to understand is that most PDF files do not
have any structure associated with them (as you saw when using JPEDAL). As
such, any concepts of paragraphs/sections/tables/etc. Are WILD GUESSES by
the software in question. -
Exporting report as PDF and CSV formats same time with out executing DB query twice
Post Author: cpriyanka
CA Forum: Exporting
I am using Crystal Report 9.0 version and Java.
I am getting "PrintOutputController" from "ReportClientDocument"
And then by calling export(ReportExportFormat.PDF) generating PDF format report.
Now I need to generate both PDF and CSV format files same time. How can it be done?
My understanding is when we call "export" it does the DB query execution and other functionality.
In that case, if I call "export" two times with two different formats, then DB query will be executed twice and that takes lot of time.
To avoid, is there a way I can all some API so DB query executed once, but I can export report in to multiple formats?
I appreciate your help.
Thanks.Post Author: cjmorris1201
CA Forum: Exporting
Hello,
Are you using the "pull" or "push" method for your crystal reports? If you are using the "pull" method (the report itself executes the sql) then I believe there is no way around having the query execute twice since it is fired off each time you open and export the report.
If you use the "push" method, however, then you can just create the recordset/dataset and then set the datasouce once for the report.
Here's a broad overview of push and pull though the Crystal Report Viewer is used. The viewer may or may not be applicable in your case:
http://aspalliance.com/265_Crystal_Report_for_Visual_Studio_NET#Page5
Regards, Carl -
With Reports 10G can you customize you message and stop formatting?
Oracle, states to come here for answer. they said, OTN should be able to help.
If any one knows how this can be done can you please help me out?
thanks,
We were told this was fixed with 10G so we upgraded to 10G. We have a
report and we want it to execute if it's less than 10 records if not we want a
message to come up that the report needs to be scheduled.
Well we run the report and it displays exceeded record count but the format
still runs so no time saved on the web.
If the record count was exceeded we want to HALT the system and not go any
farther.
Now if we could modify the system message 1825 we would be o.k. But we don't
know if that is going to work. If we could change the message we would be
o.k. with that. that would mean changing the system codes though.
### How is the Report being called (Command line, URL or via Oracle Forms): ###
If false comes back in the beginning then we don't want any report formatting
to be done. Right now the format is done it seems but no data is displayed
because criteria isn't met.
So we dont wnat the formatting to be run when criteria isn't met. But for
some
reason it still runs and takes time.
See we have some reports on the web that can only be ran by date range right
now the clients can only run the reports for a 6 months range.. Well some
clients have a lot smaller record count. So we want to change the way the
reports are ran to a records count. If the count is large than said amount
then a message comes up that states the report has to be scheduled. If the
amount is under said amount then the report runs.
So at this time in the report we do a count then we move onto will the report
run or not if over the amount we want to abort the process but we don't want
the client to see the abort. We definately don't want the client to sit and
wait for the format to run when NO Data is to be returned.
### Error messages and error scenario: ###
So what we want is too see a message "Schedule the report count exceeded" and
NO formatting done. If under amount we want the report to run.
### Provide a detailed step-by-step description of your problem or question: ###
Or is there a way to customize the messages the client / users will see. And
no formatting time for no records returned.
Contact me via : E-mail -> [email protected]
Text continued in next action...
20-SEP-04 18:39:53 GMT
Text continued from previous action...
20-SEP-04 19:18:51 GMT
New info : Is there a way if the error messages have to come up that we can
hide the message or have another screen cover that error message something to
cover the message so that the user doesn't see the error message.
20-SEP-04 19:30:23 GMT
Hi Darlene,
Thank you for using MetaLink. Iam currently working on a very critical issue.I shall review/research your issue at the earliest opportunity and w
ill update the SR / call you as soon as we have relevant information. Thank you
for your patience.
Best Regards,
Seema,
Oracle Support Services
STATUS
=======
@WIP -- Work In Progress
20-SEP-04 19:30:30 GMT
Email Update button has been pressed: Sending email to [email protected]
21-SEP-04 00:32:18 GMT
Hi Darlene!
If you are calling the report from a form, try using the EXIT_FORM line in your code.
Thanks and Regards,
Seema
21-SEP-04 00:33:01 GMT
Email Update button has been pressed: Sending email to [email protected]
21-SEP-04 14:09:20 GMT
New info : We will try it and let you know.
21-SEP-04 14:19:04 GMT
New info : We are not calling the report from a form so this won't work. Any
other way. We are needing to do this badly.
21-SEP-04 14:39:06 GMT
New info : Can I get detailed steps about how to customize the system message
or hide the message when we abort the report?
21-SEP-04 15:38:39 GMT
Hi Darlene!!
As talked to you on phone, here are the steps for you to try.
The below has been run as a test case using emp table in scott schema of a database
1) create a summary coloumn say cs_1 in the data model.
2) point the function to count.
3) Point the source to what ever's count you want it to be pointed to(say empno of emp table of
scott schema)
4) create a user parameter say NO_ROWS
5) in its property palette make its data type number and initial value as 1
6) I had teh following query for my report:
select empno, ename from emp
where rownum <= :no_rows
This means that the report that will be generated will consist of a total no of NO_ROWS(that we
shall be specifying at run time). The before report trigger(mentioned in 7 below) shall assure
that whenever we specify NO_ROWS greater than 5 then the report will display a customized pop up
message.
7) create a before report trigger as:
function BeforeReport return boolean is
user_excp EXCEPTION;
begin
if :cs_1 >5 then
raise user_excp;
return (false);
else
return true;
end if;
EXCEPTION
WHEN user_excp then
SRW.MESSAGE(30, 'Data is more please schedule this report:');
raise SRW.PROGRAM_ABORT;
return (false);
end;
This way when u run a report, an argument is asked whether how many rows do you want to be
displayed as in the parameter NO_ROWS. then you specify the number. If that number is greater
than 5(in this case, due to if :cs_1 > 5 then....) then it will pop up a message saying "Data is
more please schedule this report:"
In case you do not want to specify NO_ROWS..then you need not put that and modify the report
query as "select empno, empname from emp;" i.e. without where clause.
21-SEP-04 16:49:30 GMT
New info : we will try this then update the TAR.
21-SEP-04 16:58:09 GMT
ok you update the tar when you try the above steps.
STATUS:
@CUS
23-SEP-04 02:16:00 GMT
New info : Information from the person that did this suggestion step by step.
I tried this step by step, but unfortunately, it doesn't work the way we want.
First with this suggestion, the user needs to choose how many records they
want
to get, or we default a number of records, in order to run the report. The most
important thing is, whenever you specify the statement return false or raise
SRW.PROGRAM_ABORT in the before report trigger, the system message will pop up.
I really hope that people from Oracle would let us know how to customize the
system message or hide it.
23-SEP-04 14:23:04 GMT
New info : I just thought that we have some sort of message, which I guess is
from the database, when we do claim search on client inquiry. I am just
wondering if we could try the same thing to the report.
The some sort of message looks like this on dev box:
Your search exceeded 5000 records and will surpass the capabilities of this
connection. Please narrow the search criteria and resubmit.
It's just a thought, not sure if it's going to work.
When could we have the DBA Make this change. The servlet.properties???
23-SEP-04 17:30:55 GMT
REQUESTED INFORMATION PROVIDED
===============================
Hi Darlene,
Thank you for providing the requested information. I am currently reviewing/resea
rching the situation and will update the TAR / call you as soon as I have additi
onal information. Thank you for your patience.
Best regards,
Ajit
STATUS
=======
@WIP -- Work In Progress
23-SEP-04 18:04:31 GMT
UPDATE
=======
Hi Darlene,
We cannot modify the system messages nor do I think there is a method to hide the system message. The message that was coming is
due to the raise srw.program_abort command, which is the element through which
we can abort the program.
Thanks
Best Regards
Ajit
@CUS
23-SEP-04 18:29:26 GMT
New info : Can you please look into a way that we can get something to work?
23-SEP-04 18:49:28 GMT
Hi Darlene,
I am sorry to say that but I don't think there is any any workaround to this because the system message is what is generated by the oracle reports i
nternally. Still if you wish you may refer to the otn discussion forum which is
maintained by teh product management group and post a new thread on it. the link
to the forum is Reports
Also since nothing can be done on our side I don't see any reason to keep this TAR open an
d if you wish we can soft close this.
Thanks
Regards
Ajit.
New info : Shouldn't there always be a way to do something? I don't understand
why we were told in 10G that this could be done and now we are told it can't.K T wrote:
Yep - not nice...unless you do a TE 'Get Info' in the Finder and √ the 'Open in 32-bit mode' box and try again...then, all seems well in snow leopard land.
Really? I figure since I have a Core Duo chip, everything always opens in 32-bit mode. In any case, I did file a bug report and will give your suggestion a try later today. -
How can I embed files of word, excel, and pdf format in a pdf document
I have a word document of the product, which I am updating for next product release. However, there are some excel, word, and pdf files embedded within a word document. When I double click these embedded files in word, these files open in a new window. However, we deliver documentation to the customer in the pdf format. Therefore, when I am converting the word document in the pdf format, only an icon of the embedded file is displayed and the files do not open in a new window. Can someone let me know how can I embed these files (in word, excel, and pdf format) in a pdf document?
You must attach them to the PDF file after it is created. You cannot embed file attachments onto a page as you can with Word.
-
How to calculate difference and percentage in matrix report dynamic columns in SSRS 2008
Hi Friends,
I need to calculate Difference and Percentage In matrix report SSRS 2008
1) Row grouping based On Product
2) Column Grouping Week and Fiscal Year Current week and Previous Year same Weeks
3)Data Invnetory(Value fileld)
Example:
If value1 and Value2 Available we need to calculate Percentage and Difference.Otherwise Not required NA I need to Show.
For example If Particular week,Current year data is available,Previous year week data is not available No
need to cal Diff and Percentage we need to show Empty.
Below Code is working for If two values is available.
If any one of the fiscal year week data is not there it's taking some garbage values.
I tries with If condition in GetPCT() and GetDiff() It's not working.
Can some one please help me on this.
I am using the custom code
Public Shared Value1 as String
Public Shared Value2 as String
Public Shared previous as string
Public Shared previousweek as string
Public Shared Function GetValue(Value as String,partner as String,Week as String) as String
If partner =previous and Week =previousweek Then
Value2=Value
Else
previous=partner
previousweek=Week
Value1=Value
End If
return Value
End Function
Public Shared Function GetDiff()
return Value2-Value1
End Function
Public Shared Function GetPct()
return (Value2-Value1)/Value1
End Function
How to handle this.
Thank You, Manasa.VHi veerapaneni,
According to your description, if one of the fiscal year week doesn’t have data, the custom code returns false results.
For your requirement, if NULL value exists in the database, we should replace it as zero then perform calculate. So within the code, we should judge whether the value is NULL. To achieve your goal, please refer to the steps below:
1. Create a table like below.
create table dif4
([Product Group] varchar(50),
[Week] varchar(50),
[Fiscalyearweek] varchar(50),
value int
insert into dif4 values
('Desktops','W01','FY14W01',0),
('Desktops','W01','FY15W01',45),
('Desktops','W02','FY14W02',null),
('Desktops','W02','FY15W02',30),
('Desktops','W03','FY14W03',12),
('Desktops','W03','FY15W03',50),
('Notebooks','W01','FY14W01',35),
('Notebooks','W01','FY15W01',56),
('Notebooks','W02','FY14W02',45),
('Notebooks','W02','FY15W02',87),
('Notebooks','W03','FY14W03',75),
('Notebooks','W03','FY15W03',105),
('Tablets','W01','FY14W01',34),
('Tablets','W01','FY15W01',46),
('Tablets','W02','FY14W02',49),
('Tablets','W02','FY15W02',96),
('Tablets','W03','FY14W03',42),
('Tablets','W03','FY15W03',113)
2. Add the custom code in the Report Properties.
Public Shared Value1 as Integer
Public Shared Value2 as Integer
Public Shared previous as string
Public Shared previousweek as string
Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
If Value=Nothing Then
Value=0
End If
If product =previous and Week =previousweek Then
Value2=Value
Else
previous=product
previousweek=Week
Value1=Value
End If
return Value
End Function
Public Shared Function GetPct()
If Value1=0 Then
return 0
Else
return (Value2-Value1)/Value1
End If
End Function
Public Shared Function GetDiff()
return Value2-Value1
End Function
3. Design the matrix like below.
4. Then get the expected results.<o:p></o:p>
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
I synced my firefox and made format to my computer. I was hoping I can sync formated computer with my user. I even saved "firefox sync key". But now I can only make new sync and can' get my old passwords and bookmarks back. Is there any way i could get my passwords and bookmarks back?
Add that computer to the Sync service as a new device.
-
Is it possible to hook a USB external hard drive to an iPad?.....the HD has video on it that I wanna watch on my iPad but don't wanna store it on iPad or iTunes....and way format does the video need to be in to watch on iPad?
There are some wireless external hard drives that can be used with the iPad.
The Kingston Wi-Drive, which costs $50 for the 16 Gigabyte, and then $30 more for every 16 gigs more. It works by you turning it on and then accessing the files on it from an app that you download on your iDevice. You can access music, movies, and other stuff. No connections or anything, it works like a WiFi connection, you connect to it from the setting on the iPad under wireless networks.
Then there is the Seagate GoFlex, which some would recommend over the Wi-Drive. But this one costs $199 and had 500 Gigabytes of storage. It works the sameway as the Kingston: no wires, runs over its wireless connection. You can actually fit up to 300 HD movies on it.
Another option:
Expand your iPad's storage capacity with HyperDrive
http://www.macworld.com/article/1153935/hyperdrive.html
On the road with a camera, an iPad, and a Hyperdrive
http://www.macworld.com/article/1160231/ipadhyperdrive.html
Pad2, the new iPad Supported Video Formats & Movie Formats
H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
Cheers, Tom -
I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to sync data in my iphone back to itune on my lap top. how can I perform this task with out loosing data in my i phone.
Hey floridiansue,
Do you have an installed email program such as Microsoft Outlook? If your email is through an online login, such as Gmail, etc, then one will have to create an email association with a program such as Microsoft Outlook on the PC for this Scan to Email system to function.
-------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
I am not an HP employee. -
How to delete a selected row from datagrid and how to create a datagrid popup
hi friends,
I am new to flex.i am doing a flex4 application,i need help for this.
i am having a data grid with columns.i have two questions.
Ques 1: when i selected a partiuclar row from a datagrid and click delete button means that record will delete from the datagrid and DTO from the cloud tables also.
Ques 2: when i save the data grid values using save button means that data will store in respective cloud DTO which is related to the datagrid,
My requirement is i am using a search button when i click the search button it will show a datagrid that datagrid will contain the previous datagrid datas which is saved in the cloud.
REQUIREMENT example: first screen: i am using with data grid 3 columns (Student Roll number ,Student Name,Student pecentage)---->save--->data will store in cloud DTO.
Second screen: search button ----> it need show datagrid popup.it will have data which we saved in the first screen with same columns(Student Roll number ,Student Name,Student pecentage).
This is my requirement.
Any suggession welcome.
Thanks in advance.
B.VenkatesanLets break the problem statement in multiple steps
1. We need a way to know the selection on all rows.
2. We need the association of the checkBox with the data
The solution is to use a arrayCollection/array that holds all the instances created for checkbox.This collection should be a property of component containing the datagrid. We need to use a custom component implementation or inline ItemRenderer. The way you have used is called dropinItemRenderer. Preferaly use custom component implementation and add the instance to the arrayCollection at CreationComplete. Make sure you use addItemAt so that you add the instance in the same row as the data. To get rowIndex the custom Checkbox should implement IDropInListItemRenderer. You could iterate this collection to check all the instances that are checked.
Note: This is the approach considering your dataprovider doesnt have a selection field.
Nishant -
How to delete a Selected row from datagrid and how to create a datagrid popup with saved values
hi friends,
I am new to flex.i am doing a flex4 application,i need help for this.
i am having a data grid with columns.i have two questions.
Ques 1: when i selected a partiuclar row from a datagrid and click delete button means that record will delete from the datagrid and DTO from the cloud tables also.
Ques 2: when i save the data grid values using save button means that data will store in respective cloud DTO which is related to the datagrid,
My requirement is i am using a search button when i click the search button it will show a datagrid that datagrid will contain the previous datagrid datas which is saved in the cloud.
REQUIREMENT example: first screen: i am using with data grid 3 columns (Student Roll number ,Student Name,Student pecentage)---->save--->data will store in cloud DTO.
Second screen: search button ----> it need show datagrid popup.it will have data which we saved in the first screen with same columns(Student Roll number ,Student Name,Student pecentage).
This is my requirement.
Any suggession welcome.
Thanks in advance.
B.VenkatesanLets break the problem statement in multiple steps
1. We need a way to know the selection on all rows.
2. We need the association of the checkBox with the data
The solution is to use a arrayCollection/array that holds all the instances created for checkbox.This collection should be a property of component containing the datagrid. We need to use a custom component implementation or inline ItemRenderer. The way you have used is called dropinItemRenderer. Preferaly use custom component implementation and add the instance to the arrayCollection at CreationComplete. Make sure you use addItemAt so that you add the instance in the same row as the data. To get rowIndex the custom Checkbox should implement IDropInListItemRenderer. You could iterate this collection to check all the instances that are checked.
Note: This is the approach considering your dataprovider doesnt have a selection field.
Nishant
Maybe you are looking for
-
How do I change colors on a Summary Report? I would like them to be red on the left, yellow in the middle and green on the right.
-
AE CS 5.5 & Hyperdeck Shuttle DNxHD MOV files
AE CS5.5 (Win x64) will not read Avid DNxHD MOV files produced by the BlackMagic Design Hyperdeck Shuttle 2. All other software, including Bridge and Premiere Pro CS5.5 read the files fine. If I re-wrap the file with ffmbc and the only change is to r
-
hi experts, how to print date as 21/feb/2008 in smartforms. thanks in advance
-
IPhoto running slow - how to improve?
I currently am running iphoto with MacBook Pro - all are currently updated and running on the most recent versions. I have over 13,000 photos loaded and continue to upload weekly. My question is - my iPhoto program is very slow and I'm wondering if I
-
MS Silverlight Causing Screen Colour Changes
Specs: MacBook Pro (15-inch, Late 2011) OSX Yosemite 10.10 2.2 GHz Intel Core i7 8 GB 1333 MHz DDR3 AMD Radeon HD 6750M 512 MB Browser: (tested on) Firefox, Safari Websites: Amazon Prime Instant, Netflix I am recently having a problem since using Yos