Spark Datagrid - Show all rows using requestedRowCount & variableRowHeight=true

I have a Spark Datagrid that has variableRowHeight=true. I also have the requestedRowCount set to the length of the dataProvider. So, in theory the rows shown should be the same number in the dataprovider(Arraycollection). However, the problem is that due to having variableRowHeight=true and some rows being multiline,  in some instances, all of the rows are not getting shown. 
Suggestions on how I can fix this issue?
Thanks, in advance.

Does anyone have a solution for this? I have exactly the same problem.
Datagrid with requestedRowCount="-1" and variableRowHeight="true"
No issue with autoexpanding the grid - and no issue with autoexpanding the row height with word-wrapped text.
But when combined - a grid that has 5 elements in dataprovider will only show 3 - if one row has been expanded to handle the word-wrapped data.
Is it possible to count the rowheights and override the measure function with minheight or measuredminheight?
Or do I need to call something other than invalidateDisplayList after dataprovider changes?
Any suggestions or sample code would be welcomed.

Similar Messages

  • Report Region show all rows?

    Hi,
    I have a report region in which I want to show all rows. Setting the pagination scheme to No Pagination doesn't
    seem to do the trick. I have set Number of Rows and Maximum Row Count both to NULL. Nothing seems to work.
    Is there some trick to get all rows to be displayed?
    Thanks in advance!

    Hi,
    I have two report regions on different pages. On both I have set 'Number of Rows' and 'Maximum Row Count' to null. One report will return all the records in a query (~800), the other report will only return 500. I can't see any other differences in the reports that would cause this behaviour.
    I didn't really want to restrict my reports to a set number of rows, is this really the only option?
    Thanks,
    Rochelle.
    Edited by: Rochelle K on Nov 5, 2009 10:13 AM

  • Show all rows in interacive report

    Hi there,
    I built an interactive report, when I run the report it shows just 15 rows with the ability to see the next 15 rows -
    Iam asking how to show all rows as a default whenever the user runs the report.
    Regards,
    Abdul

    I saw in another thread that the trick is to log out as the developer and close the browser. I tried that and now it appears that my change to 100 rows as the default report rows seems to hold when I log in just to the application in another browser. When I tried it without logging out, it did not seem that the default became active--even when going in through another browser. Seems like a bug that should be fixed??
    Pat

  • Flex Spark DataGrid BUG skipping rows on refresh

    I have a small one file example that demonstrates this Flex DataGrid bug.
    I tried to report it to Flex bugs and the page timed out.
    I am filling a column in a spark datagrid with checkboxes to select that row.
    In the header of that column is a checkbox to select ALL the rows.
    However, the middle row is not getting refreshed so the display is wrong.
    The checkbox looks empty when the backing value is correct.
    I have added a print to the code that sets the values in the data and it is setting everyone.
    But when I print the isSelected code it is NOT being called on ONE (the middle) visible row.
    If I move away or scroll up and down the check box shows the check mark.
    So My only conclusion is that refresh has a bug.
    Here is the example that demonstrates the problem.
    Simply select the header checkbox and the 3rd checkbox does not get updated on refresh.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
                                  import mx.collections.ArrayCollection;
                                  private static var values:Array = [
                                            {selected: false, position: 1},
                                            {selected: false, position: 2},
                                            {selected: false, position: 3},
                                            {selected: false, position: 4},
                                            {selected: false, position: 5}
                                  [Bindable]
                                  public static var datalist:ArrayCollection = new ArrayCollection( values );
                                  public static function updateDataList( value:Boolean ):void
                                            for each( var item:Object in datalist ) {
                                                      trace( "updated: " + item.position );
                                                      item.selected = value;
                                            datalist.refresh();
                        ]]>
              </fx:Script>
              <s:DataGrid dataProvider="{datalist}">
                        <s:columns>
                                  <s:ArrayList>
                                            <s:GridColumn dataField="position" width="200"/>
                                            <s:GridColumn width="34" >
                                                      <s:itemRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer textAlign="center">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        private function changeSelection( data:Object, event:MouseEvent ):void
                                                                                                                  data.selected = ! data.selected;
                                                                                                        private function isSelected( data:Object ):Boolean
                                                                                                                  trace( "isSelected: " + data.position );
                                                                                                                  return data.selected;
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox id="selbox" label="" selected="{isSelected(data)}"
                                                                                                                  click="changeSelection(data, event)"/>
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:itemRenderer>
                                                      <s:headerRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer height="30">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        [Bindable]
                                                                                                        private static var selectAll:Boolean = false;
                                                                                                        private function changeAllSelection( event:MouseEvent ):void
                                                                                                                  selectAll = ! selectAll;
                                                                                                                  Main.updateDataList( selectAll );
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox label="" selected="{selectAll}"
                                                                                                                  click="changeAllSelection(event)"/ >
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:headerRenderer>
                                            </s:GridColumn>
                                  </s:ArrayList>
                        </s:columns>
              </s:DataGrid>
    </s:Application>
    Here is an image of the failed result... after selecting the top checkbox.
    Below is an image of the output produced by the two traces.
    Notice that the refresh has not called isSelected on the 3rd element.

    I have a small one file example that demonstrates this Flex DataGrid bug.
    I tried to report it to Flex bugs and the page timed out.
    I am filling a column in a spark datagrid with checkboxes to select that row.
    In the header of that column is a checkbox to select ALL the rows.
    However, the middle row is not getting refreshed so the display is wrong.
    The checkbox looks empty when the backing value is correct.
    I have added a print to the code that sets the values in the data and it is setting everyone.
    But when I print the isSelected code it is NOT being called on ONE (the middle) visible row.
    If I move away or scroll up and down the check box shows the check mark.
    So My only conclusion is that refresh has a bug.
    Here is the example that demonstrates the problem.
    Simply select the header checkbox and the 3rd checkbox does not get updated on refresh.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
                                  import mx.collections.ArrayCollection;
                                  private static var values:Array = [
                                            {selected: false, position: 1},
                                            {selected: false, position: 2},
                                            {selected: false, position: 3},
                                            {selected: false, position: 4},
                                            {selected: false, position: 5}
                                  [Bindable]
                                  public static var datalist:ArrayCollection = new ArrayCollection( values );
                                  public static function updateDataList( value:Boolean ):void
                                            for each( var item:Object in datalist ) {
                                                      trace( "updated: " + item.position );
                                                      item.selected = value;
                                            datalist.refresh();
                        ]]>
              </fx:Script>
              <s:DataGrid dataProvider="{datalist}">
                        <s:columns>
                                  <s:ArrayList>
                                            <s:GridColumn dataField="position" width="200"/>
                                            <s:GridColumn width="34" >
                                                      <s:itemRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer textAlign="center">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        private function changeSelection( data:Object, event:MouseEvent ):void
                                                                                                                  data.selected = ! data.selected;
                                                                                                        private function isSelected( data:Object ):Boolean
                                                                                                                  trace( "isSelected: " + data.position );
                                                                                                                  return data.selected;
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox id="selbox" label="" selected="{isSelected(data)}"
                                                                                                                  click="changeSelection(data, event)"/>
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:itemRenderer>
                                                      <s:headerRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer height="30">
                                                                                    <fx:Script>
                                                                                              <![CDATA[
                                                                                                        [Bindable]
                                                                                                        private static var selectAll:Boolean = false;
                                                                                                        private function changeAllSelection( event:MouseEvent ):void
                                                                                                                  selectAll = ! selectAll;
                                                                                                                  Main.updateDataList( selectAll );
                                                                                              ]]>
                                                                                    </fx:Script>
                                                                                    <s:layout>
                                                                                              <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/>
                                                                                    </s:layout>
                                                                                    <s:CheckBox label="" selected="{selectAll}"
                                                                                                                  click="changeAllSelection(event)"/ >
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:headerRenderer>
                                            </s:GridColumn>
                                  </s:ArrayList>
                        </s:columns>
              </s:DataGrid>
    </s:Application>
    Here is an image of the failed result... after selecting the top checkbox.
    Below is an image of the output produced by the two traces.
    Notice that the refresh has not called isSelected on the 3rd element.

  • Spark datagrid style by row

    I'm trying to change the style of spark datagrid rows based on data, I've found examples about itemrenderer and columns, but they doesn't fit in this case.
    I'm looking for a method to change font (weight, size, color) and background based on data value: if the data in column X is equal to Y, change all the row style to...

    So, are you saying you want to change the font of a particular row when its data object is a certain value?
    I would have a custom renderer with an overridden prepare method. In the prepare method, you can check the data and adjust the labelDisplay accordingly.

  • Javascript alert when showing all rows of a huge table ( 2000 rows)

    i've got this problem. I need to show all the rows of a table, i'm using ADF 10.1.3.4.
    What have i done so far?first of all i created a command link
    <af:commandLink shortDesc="Mostra Tutto" id="showAll"
    disabled="#{bindings.findAllVwEntePrmzRefrIter.estimatedRowCount == 0}"
    action="#{backing_editReferenza.onShowAll}"
    />
    In the backing bean i set the rangeSize of the table to -1
    public String onShowAll() {
    Object objShowAll = getSession().getAttribute("showAll");
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding vb = fc.getApplication().createValueBinding("#{bindings.findAllVwEntePrmzRefrIter}");
    DCIteratorBinding dc = (DCIteratorBinding)vb.getValue(fc);
    int oldRangeSize = dc.getRangeSize();
    dc.setRangeSize(-1);
    int rangeSize = dc.getAllRowsInRange().length;
    dc.setRangeSize(oldRangeSize);
    if ("Y".equals(objShowAll)) {
    getSession().removeAttribute("showAll");
    Integer oldRange =
    (Integer)getSession().getAttribute("oldRangeSize");
    getSession().removeAttribute("oldRangeSize");
    getTable1().setRows(oldRange);
    } else {
    getSession().setAttribute("showAll", "Y");
    getSession().setAttribute("oldRangeSize", oldRangeSize);
    getTable1().setRows(rangeSize);
    return "";
    // AdfFacesContext.getCurrentInstance().addPartialTarget(getTable1());
    Everything runs smoothly, but i have a problem if the table has lots of rows: i get a javascript warning that a script has been running for too long. (The alert goes: "Stop the execution of the script?" the usual javascript alert you get when a script runs for too long)
    What i want to achievt is that, if the table contains a lot of rows, the page takes a lot of time to load, but with no javascript involved (it's just a normal slow page).
    It seems that in some way the rows of the table are fetched by javascript and since the call is synchronous, it trigger the alert.
    This is how i declared the method iterator
    <methodIterator id="findAllVwEntePrmzRefrIter"
    Binds="findAllVwEntePrmzRefr.result"
    DataControl="FePrmzSLESSEJBLocal" RangeSize="10"
    BeanClass="it.ws.sma.prmz.ejb.model.VwEntePrmzRefr"
    Refresh="deferred"
    />
    and this is how i declared the table
    <af:table value="#{bindings.findAllVwEntePrmzRefr1.collectionModel}"
    var="row" styleClass="tableRefr #{backing_editReferenza.tableReferenzeStyleClass}"
    rows="#{bindings.findAllVwEntePrmzRefr1.rangeSize}"
    first="#{bindings.findAllVwEntePrmzRefr1.rangeStart}"
    emptyText="#{bindings.findAllVwEntePrmzRefr1.viewable ? 'Nessuna referenza trovata' : 'Accesso negato'}"
    binding="#{backing_editReferenza.table1}" id="table1"
    banding="row" bandingInterval="1"
    partialTriggers="btnEliminaRefr btnSvuotaPromo btnRemove btnAdd insVeloce">
    has anyone an idea onwhat could i do to have the table load all the rows from the server but withouth the alert?

    Sorry i haven't explain it well...
    the app is used to replicate entire databases, or agrupations of tables, from one database to another and it will have to be vendor independent... I'm trying with DB2, Oracle and MySQL. Later i will test it with more.
    Then I couldn't use vendor dependent SQL neither configuration parameters. Also I prefer to make the import logging the actions: for restoring purposes; maybe the user will have the option but defaults to the ohter.
    I'm thinking about some "strange" query SQL Stardard, like delete from table where (select .... using some kind of counter....

  • Export All rows using xml publisher.

    I have requirement to show search results using region style table and should be able to export all the rows into excel with additional columns that are not shown in table region. Search results could be million rows.
    I know that max results that are shown in the table region are based on value set in Profile option FND: View Object Max Fetch Size. In my case it is set as 5000. Since I need to show addition columns from different tables in excel that are not in table region, I have decided not to use export button but created a submit button to integrated xml publisher to launch excel. Now the problem is excel shows only 5000 rows. I do not want to increase FND: View Object Max Fetch Size as it may affect performance.
    My question is for my requirement what’s is the best solution performance wise and assuming user could search thousands of rows and exported to excel.
    If integrating xml publisher is the solution..how do I show all the rows?
    Thanks SC

    I tried to suggest in your other thread. Please check.

  • Show all rows in ALV

    Hi,
    i use an ALV and want to show all exsiting rows. Until now i can only see the first 10 rows. How can i do that?
    regards,
    Sharam

    Try This
    lr_table_settings ?= l_value
      data:
          lr_header type ref to cl_salv_wd_header.
      lr_header = lr_table_settings->get_header( ).
      lr_table_settings->set_visible_row_count( 2 ).
    You can pass the no of visible rows you want in  this  method set_visible_row_count. in this code its 2.
    Regards
    Naresh

  • Enterprise Manager Database Control not showing all rows

    Hello,
    I populated a DB through SQL Developer but when I access the DB control of EM and hit "view data" for the correspondant table, only few of the rows are shown.
    Any idea why and HOW I can get it to show all the data I inserted?
    Many thanks!

    There could be few reasons as follows.
    1. You could have filter set in Sql Developer - Try the same from a sqlplus.
    2. you can have a VPD policy on the table - Check for policies on that table using dba_policies.
    3. Also try to analyze the table and check for num_rows from dba_tables. That will tell you exactly how many rows you have irrespective of tool, policy, etc etc.
    Thanks,
    Ankit.

  • Showing all rows in updatable report

    Hi everyone,
    the users of my application have requested the option of showing all records, even though the updatable report has pagination turned on. How can this be achieved at run time?
    Thanks a lot,
    Henrik

    By specifying a select list - some static LOV for the number of rows you want to show. You can enter the name of that item in your report properties - Number of Rows Item.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Analysis does not show all rows returned by SQL

    Hi.
    OBIEE 11.1.1.7.0
    I have a strange problem.  I have a simple table that should return customer number and sales.  The report will show all of the sales, but it does not show all the customer numbers.  The SQL that OBIEE creates does return all of the customer numbers.  When I remove the sales and just include the customer number, the report only shows a couple of the customer numbers (it should show several hundred).
    I guess what I'm looking for is any advice for how to debug this.  I have spent about 3 days on this problem, so I have tried to look at it from every angle (data, RPD, report).
    Any suggestions are appreciated.
    Thank you.

    Thank you for your reply.
    New development.  The issue has to do with a descriptor ID column.  The customer number column is a varchar field and I set the descriptor ID column to the column_ID field.  When I remove the descriptor ID setting, I received all custom numbers.

  • JComboBox doesn't show all Rows in the View Object

    Hi,
    I've got a JComboBox which shows only 25 rows of the VO and I'm sure there are at least 50 or more rows.
    I'm also sure this is not JComboBox.maximuRowCount's fault, which just in case i've set to Integer.MAX_VALUE.
    Why is this happening? How could i change it?
    Thanks in advance. Pablo.

    set the RangeSize attribute of the iterator that is populating the
    list values to minus one (–1). This will ensure that all of the possible list
    items will appear in the list. Failure to do this will restrict your lists to a
    maximum of 25 entries, the default value of the RangeSize property.

  • Apex Flash Chart Not showing all rows

    I am using APEX 4.0.2 and have created a flash chart. I added a scroll bar, but don't get all of the rows that I expect. I ran the sql in a PL/SQL develoepr session and get all of the expected data. Where do I tell APEX to return all data found?
    Thanks!

    Thanks for the reply!
    This tool is so robust, its easy to overlook what is right in front of you.
    Second half of the question:
    I have about 1500 rows reporting in the horizontal chart. It seems that the chart has to be sized HUGE to keep the chart readable even though there is a scroll bar. Is there a way to force the hight of each horizontal bar rather than what it appears to be doing, which is shrinking each bar to the point it's not readable.
    Thanks!

  • Show all rows in a dataTable - XSD datasource

    Hi
    I have designed a report in CR2008 and my datasource for the report is an XSD file. There are 2 tables Table A and B.
    Table A is as follows:
    AID     Name     Reference     Period          Manager
    5       Name 1     Ref 1          July 2009     User Name 1
    8     Name 2     Ref 2          August 2009     User Name 2
    9     Name 3     Ref 3          March 2009     User Name 9
    45     Name 4     Ref 4          May 2008     User Name 4
    88     Name 5     Ref 5          June 2009     User Name 1
    There are other coloumns too in the datatable, but that shouldnt matter.
    Table B is as follows:
    ID     A_ID          DateKey        DateValue                     Name
    1       5          Date1        2009-09-29 00:00:00.000        Start Date
    2       5          Date2        2009-08-11 00:00:00.000        Fieldwork Complete
    3       5          Date3        2009-08-14 00:00:00.000        Report Issued
    4       5          Date4        2009-07-17 00:00:00.000        Report Finalised
    5       5          Date5        2009-07-10 00:00:00.000        Close Date
    6       8          Date1        2009-08-11 00:00:00.000        Start Date
    7       8          Date4        2009-09-29 00:00:00.000        Report Finalised
    My report is a joining of the 2 tables as appears as below
    ID   Name   Reference    Period     Manager      Start Date   Fieldwork    ReportIssued     ClosedDate
    My problem, is that I want to display the values in Table A (ID, Name, Reference, Period etc) in the report even if there are no corresponding dates in Table B. Where there are no dates, the cell should be blank. (as below.)
    ID     Name     Reference     Period     Manager            Start Date     Fieldwork     ReportIssued     ClosedDate
    5     Name1     Ref1          July 2009     UserName1     29/09/2009     11/08/2009     14/08/2009     10/07/2009
    8     Name2     Ref2          August2009  UserName9     11/08/2009     29/09/2009
    88     Name5     Ref5          June 2009     UserName1
    The report is grouped by AID, and I have written formulae to extract the dates. All the fields have been placed in the group footer and the dates are extracted as Max{@Start Date}
    The report works well, if there is alteast one date for each A_ID.. I have set "Convert Database Null values to Default" in Report Options.
    In the XML file that is passed, there can be cases where there are no rows in Table B. In this case, I still need the values of Table A to be extracted in the report.
    Does anyone have any idea why this is happening.
    Thanks
    Tanya

    Hi Tanya,
    Try once with changing 'Join'  for both tables.
    By default it will be "Inner join". Change that to "Left Outer" join.
    DatabaseExpert>Links tab>Right click on Table link>Link options>In Join Type Select "Lefet outer Join" radio baox-->OK
    Ragards,
    Salah

  • 9i; UIX  BC4J Tags; How to show all retrieved rows using bc4juix:Table .. ?

    seems <bc4juix:Table ....> tag by default shows the rows one by
    one. I just need to know any attribute/way to change the default
    to show all rows, or more than one row in each iteration.

    even <jbo:DataTable...> only shows one row. I'd to show all
    rows retrieved. Please advice.

Maybe you are looking for

  • Adobe Reader temp files build up and stop faxing.

    We use an eFax software developed by FaxBack. Recently we started faxing nightly invoices. These invoices run at approx 12:00am. There are anywhere from 100-400 faxes nightly. The fax program uses Adobe Reader 9.0 to process PDF documents through the

  • Pricing table - pronblem

    Hi Gurus When I am creating new pricing table and trying to genarate system asking me to select package. 1)what is the use of it 2)which package I have to choose 3)If I choose local object what it makes differ from choosing Pacakage? Please any help

  • Delete parked document still committed budget

    Dear SAP-ers, I do budget active checking with BCS, the problem is when i do deleted Parked Document using FBV0, the budget still committed. For display this, i am using the standard report painter 4FM (Budget Usage). Anyone can help me ?  Thanks Reg

  • Every time I try to download an app the tablet ask for billing info... Why

    Very time I try to download an app the tablet ask for billing info... Why

  • 4.1 Documentation pitfall "APEX_041000"  vs. "APEX_040100"

    Hello Apex Team, There is a very ugly bug in the install docs. There it refers to a APEX Schema name "APEX_041000" (also for sample script names!) the schema name created in the install process actuelly is "APEX_040100" This should be corrected very