Cell render in data grid

Lets say you have two columns one that renders as an image
the other text. Why is it that the image gets distorted when there
is more text. Is there anyway to fix this?

"realtime158" <[email protected]> wrote in
message
news:g6b692$ksh$[email protected]..
> Lets say you have two columns one that renders as an
image the other text.
> Why is it that the image gets distorted when there is
more text. Is there
> anyway to fix this?
Try setting maintainAspectRatio to true on the image control.
HTH;
Amy

Similar Messages

  • How to edit cell in a Data Grid

    Hai
        I have pasted the mxml below.
       I need how to edit a cell in a datagrid.
      1. Run the mxml, enter the values in the textbox and click add button.
      2. then click AND button, now u can see the values displayed in the grid.
    3. Then again change the second combobox and enter the values in the textbox and click add
    4. Now i need to edit the values for a particular cell in the datagrid.
    In the below code u can see the Value column,
    i need to edit oly that cell of a particular row .
    Can anyone help me.
    Thanks in Advance
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    // ActionScript fileimport  
    mx.rpc.events.FaultEvent;
    import  
    mx.controls.Alert; 
    import mx.managers.CursorManager;
    import  
    mx.collections.ArrayCollection;[
    Bindable] 
    public var adhoc:ArrayCollection = new ArrayCollection();[
    Bindable] 
    public var serverString = "" ; 
    private function initImage(event:MouseEvent):void { 
    if(adhoc.length > 0){CursorManager.setBusyCursor();
    private function onChange():void{ 
    if(comboBox.selectedIndex == 0){ 
    else{ 
    private function onChange1():void{ 
    if(combo2.selectedItem == "DATEDEPLOYED" || combo2.selectedItem == "DATEUPLOADED"){datepick.visible =
    truetxt.visible =
    false}
    else{txt.visible =
    truedatepick.visible =
    false}
    private function add():void

    You can enable editing in a DG to the whole DG or only to certain columns
    http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/
    If you want to enable editing to a very specific cell then you use the event itemEditBegin to prevent editing a cell that doesn't meet your criteria
    http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_7.html

  • BUG in data grid and run script (V1 1467)

    Hi,
    I found a weird bug in data grid when displaying data defined as NUMBER(10,0).
    We have a table with a column defined as NUMBER(10,0). Whenever this column contains data >5000000000 the data in the row shows up as null (empty cell) in the data grid.
    I played around a bit and found that running a scrip like select * from testtab where a > 5000000000; with F5 it stops at the first number >5000000000. Running the script with F9 shows all rows correct.
    I'm running on WIN2000 using SQL Developer V1 (Build 1467).
    The error was not present in Build 1422.

    I tried the SQL you supplied (by the way, the table name helps in the INSERT statement) and then went to the DATA tab to view the data.
    Interesting results.
    Even though all of the insert statements executed successfully, only 2 of the rows had any data displaying in columns A and C. All rows had data in column B.
    Now for the real fun: by selecting one of the empty cells the "missing" data would appear. Try a commit (yeah, I know nothing has been updated, but SQL Developer doesn't know this) and check out the UPDATE statements that are generated in the log. The cells I selected are being updated with the "missing" data. Refresh the display and the data goes into hiding again.
    I don't even want to get into the dangers of a tool updating data when all you've done is to get focus on a field. I've already seen it wipe out the time portion of date/time stamps simply because the default setting for the date/time format does not include the time.
    Good start on a tool guys, but it's not quite ready for Prime Time.
    BTW...I'm using Oracle 9.i running SQL Developer on Windows 2000.

  • Data grid headers

    I can align text in the body cells of a data grid (using cell
    renderer ) but not the headers( tried to use header Renderer). I
    can format the styles of all cells incuding headers. Any
    ideas?

    Everything you need to know about styling components:
    http://www.flashgods.org/forums/viewtopic.php?f=20&t=76

  • How to make specific cell(s) read-only in a data-grid

    Hi there!
    Is there a way to make an specific cell read-only in a data-grid?
    Best regards,
    Ciro

    Hi !
    After some months... here is the solution:
    Private WithEvents _gridTaste As DataGrid
    Private Sub MyScreen_Created()
    AddHandler FindControl("GridTaste").ControlAvailable,
    Sub(s, e)
    _gridTaste = CType(e.Control, DataGrid)
    End Sub
    End Sub
    Private Sub _gridTaste_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs) Handles _gridTaste.BeginningEdit
    ' I want do set the cell (2,0) as read only:
    If e.Row.GetIndex = 2 AndAlso e.Column.DisplayIndex = 0 Then
    e.Cancel = True
    End If
    End Sub
    I hope this post help you too!
    Best regards,
    Ciro

  • Data Grid Dynamic Cell Colors

    I would like to create a Data Grid where the individual cell
    colors change based on the number in the cell.
    For example, numbers between 0 and 1 would be green, between
    1 and 2 would be yellow, and between 3 and 4 would be red.
    I am wondering if this is even possible, or if I am going to
    have to find another solution other than the data grid component.
    Not looking for a complete answer (but I'd be happy to have
    one!) but any pointing in the right direction would be great.
    I have a lot of data and coloring the cells by hand is not an
    option. I don't even know if I can change individual cell colors in
    the data grid- if it isn't possible I'd be willing to change the
    text color instead.
    Any suggestions?
    Thanks!

    Example query:
    select cust.*
    , case when credit_limit > 5000 then 'red' else 'green' end as bg_color
    from (
    select
    CUSTOMER_ID,
    CUST_FIRST_NAME,
    round(dbms_random.value(1000,9000)) as CREDIT_LIMIT
    from #OWNER#.DEMO_CUSTOMERS
    ) custIn the Column Definition of CREDIT_LIMIT, set the HTML-Expression to &lt;div style="background-color:#BG_COLOR#">#CREDIT_LIMIT#&lt;/div>
    See result : http://apex.oracle.com/pls/apex/f?p=41715:3
    You could also construct the whole html in the SQL but I like to divide logic (SQL) and UI.
    Another option could be to create a Dynamic Action (After Refresh of the report region) and create a combination of a nifty selector and piece of JavaScript, but I guess this is easier.

  • Validation Error Message of a data grid cell

    Hi,
    The validation error message of a cell of data grid does not
    appear around that cell but far away. How can I force the error
    message to be around the cell as it should be?
    Best regards
    Dr. Khaled

    Hi,
    You have to use OADailogue region to achieve this. Please follow below code units to create a dialogue page and display an error message.
    OADialogPage dialogPage = new OADialogPage(OAException.WARNING, message, null, "", "");
    String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
    String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
    dialogPage.setOkButtonItemName("DeleteYesButton");
    dialogPage.setNoButtonItemName("DeleteNoButton");
    dialogPage.setOkButtonToPost(true);
    dialogPage.setNoButtonToPost(true);
    dialogPage.setRetainAMValue(true);
    dialogPage.setPostToCallingPage(true);
    dialogPage.setOkButtonLabel(yes);
    dialogPage.setNoButtonLabel(no);
    java.util.Hashtable formParams = new java.util.Hashtable(1);
    formParams.put("foo","value");
    dialogPage.setFormParameters(formParams);
    pageContext.redirectToDialogPage(dialogPage);
    Thanks
    Bharat

  • SQL Developer 1.1.0.21: Issues with Data Grid and SQL syntax checking

    In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion.
    Is there any option to change this behavior?
    Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check.
    I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql.
    Manish

    "In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion."
    In the "Results" tab, Click Ctrl & Tab keys (at the same time) or with mouse click on any cell other than the first column (a sequence or rownum), you will be able to navigate using the arrow keys.
    "Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check."
    The 0.0134 seconds could be the result of the most recently executed successful statement. Check the Script Output tab for errors. Use F5 (Run Script option) instead of F9.
    "I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql."
    On the SQL statement (or code), Right Click -> Format SQL (or press Ctrl & B), proper formatting would help.
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • Problem in cell content of alv grid ...

    hi all,
         i want to get the cell content of alv grid in the handle method of event data_changed of cl_gui_alv_grid,
    i using the following code ...
    METHOD on_data_changed.
    DATA : lv_value(30) TYPE c.
    CALL METHOD ER_DATA_CHANGED->GET_CELL_VALUE
      EXPORTING
        I_ROW_ID    = 3
       I_TABIX     =
        I_FIELDNAME = 'cname'                                                                                "" my column table
      IMPORTING
        E_VALUE     = lv_value.
    MESSAGE lv_value TYPE 'I'.
        ENDMETHOD.
    endclass.           
    but i cant get the value of cell content
    Edited by: parashuram on Oct 21, 2011 3:49 PM

    Try this way
        method handle_data_changed.
          perform handle_data_changed using er_data_changed.
        endmethod.
    form handle_data_changed using p_data_changed type ref to
                                   cl_alv_changed_data_protocol.
      data: ls_mod_cell  type lvc_s_modi,
              lv_value_dni type lvc_value.
      loop at p_data_changed->mt_mod_cells into ls_mod_cell.
        call method p_data_changed->get_cell_value
          exporting
            i_row_id    = ls_mod_cell-row_id
            i_fieldname = 'FINI_SUST' <== Your field
          importing
            e_value     = lv_value_dni .
      endloop.
    endform.

  • Select various entire lines in data grid doesn't work

    SQL Dev 2.1.1.64 on WinXP.
    I can select entire line in data grid (or query result) by clicking on leftmost column with row number. I expect to select various lines by clicking and dragging, but it won't work. It worked in v1.5.
    Thanks,
    MVr.

    Still 3 other ways that I see:
    * click on the row number of the first row, then shift-click on the row number of the last row
    * click on the first cell of the first row, then drag to the last cell of the last row
    * click on the row number of the second row, then click on the first cell of the first row and drag to the last row (most like what you want)
    Have fun,
    K.

  • How to show tooltip in data grid

    I have a data grid .in that for showing toolti i have make showDataTips =true, it shows tooltip at every cell, but i need to hide the tooltip if cell is blank 

    This is very easy.  IN your status field in your internal table, you simply write the icon to it.  Make sure that the status field is defined as a character field with a length of 4.  Then write the icon to it.
    Type-pools: icon.
        write icon_green_light as icon to itab-status.
    Then when filling the field catalog, set the ICON flag.  This puts the icon in the center of the cell in ALV.
      xfc-icon     = 'X'.
      append xfc to ifc.
    Regards,
    Rich Heilman

  • Data grid and copy/paste

    I am using windows and the latest build of SQL Developer. Click on a Table name > Data tab to see the data grid representing data in the table. OR....run any SQL returning a result set. Either case, select a cell. CTRL + C now works as expected, good. But the copy operation copies a TAB too for somereason. A real pain when I paste into a manual SQL block or something.
    Also, any way we can change the data grid when browsing a tables data to require a double-click to edit a cell? This would be a Good Thing(tm)
    DK

    The tab in the copy is good IF you are selecting multiple cells - if you only select a single cell, it is a painAgree completely, copying a single cell should have no additional characters at all.
    Also agree on the double click, although I would like something similar to TOAD whereby to edit a cell that already has focus only requires a single click. I like to move the selected field around using the cursor keys (I find this quicker) and then hitting either Enter or single clicking or just start typing to begin editing. Double click would still work (for those who like to double click).

  • How to change enter key behavior in data grid view?

    Greetings community
    I have a simple problem. I have a table of several columns, and I want it to be editable without using a mouse. I want user to enter value in the first column, press enter key on keyboard, enter value in second column, press enter key,
    and so on. I want data grid view to open another row only when all columns in the working row are populated. However, pressing the enter key causes opening new row whenever user presses the enter key.
    I tried to set current cell of data grid view in CellValueChanged event , but it didn’t work. Actually, it really moves current cell where I want, but after that it moves it one row down.
    I traced the execution of code, and counted CurrentCellChanged events to see what happens.
    Does anyone know if there’s any way to suppress this behavior?
    Thanks in advance

    Greetings community
    I have a simple problem. I have a table of several columns, and I want it to be editable without using a mouse. I want user to enter value in the first column, press enter key on keyboard, enter value in second column, press enter key,
    and so on. I want data grid view to open another row only when all columns in the working row are populated. However, pressing the enter key causes opening new row whenever user presses the enter key.
    I tried to set current cell of data grid view in CellValueChanged event , but it didn’t work. Actually, it really moves current cell where I want, but after that it moves it one row down.
    I traced the execution of code, and counted CurrentCellChanged events to see what happens.
    Does anyone know if there’s any way to suppress this behavior?
    Thanks in advance
    Hello,
    It perhaps be better using Tab key which is exactly used for switch focus to the next cell instead of dealing with enter key.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Advice on rendering multiple data grids based on 1 array

    What is the best way to render the following screen ?
    There is 1 array collection that is sorted (in this example) by category. The screen lists by category and then prints a datagrid (perhaps) of the items within the category. Each time the category changes, a new header and data grid is rendered.
    Hot Dogs (Category Description... the could be n number of categories)
    Item Product           Brand      Grade      Price
    1      mini hot dogs   mayer     supreme   8.00
    (there could be n number of lines)
    Beef
    Item Product           Brand      Grade      Price
    1      mini beef        mayer     supreme   8.00
    (there could be n number of lines)

    Use XML data and then you can use e4x syntax to extract the data you need by filtering by category in e4x syntax.
    See these LiveDocs links:
    http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_03.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_01.html

  • Reporting Studio - Cell reference from saved grid object

    Hi!
    Is it possible to use cell references in one grid ("GridA") that reference data in another grid ("GridB") on the same report, where the second grid is a linked grid object? I have inserted a formula row in GridA and am using the equation GridB.[1,A] and the report is returning #ERROR.
    I have tested the following cases:
    - Creating a new grid ("GridC") that is not a linked grid, and referencing a cell from there with the GridC.[1,A] formula - Returned value successfully
    - Creating a text row on GridA and using GetCell to pull the data - Returned value successfully
    - Deleting and re-inserting the GridB linked grid object - Did not return value
    I am using HFR Studio version 11.1.2.362 reporting off of HFM 11.1.2.2.300. I believe that it was possible to do this this type of cell referencing in past versions of HFR/HFM.
    Thank you for your help! Please let me know if there is any additional information I can provide.
    Mariko

    Hi,
    then I would implement sth like the following:
    dim myBO as businessobject
    dim i as integer, sValue as string
    for i = aMyAnchor.bcol.count to 1 step -1
      sValue = aMyAnchor.bcol.GetAttribute(i, "myProperty")
      if sValue = "" then
        aMyAnchor.bcol.item(i).delete
      end if
    next
    Please note that the deletion needs to be done bottom-up because of a refresh of the
    indexing after deleting of objects in the collection.
    The refresh of the grid is done automatically because of the data binding.
    Regards,
    Wolfhard

Maybe you are looking for

  • Deleted CDMA USB Modem from Port Configurations... Can't get it back!

    A while back, I was trying out a wireless USB CDMA modem. I didn't really like it and was mainly just using it for testing purposes, and after I was done with it I deleted the port configuration out of my Network Config, thinking A) I'd never need it

  • How to create the change document functionality for a dependent objects?

    May I please know how to create the change document functionality for a dependent objects? I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER"

  • Java.lang.ClassCastException: examples.ejb.basic.statefulSession.TraderBeanHomeImpl_ServiceStub

    I am using the example from the XML/HTTP which uses a client, servlet and request handler. The Servlet calls the StatefulSession TraderHome Bean. I am getting the following: java.lang.ClassCastException: examples.ejb.basic.statefulSession.TraderBeanH

  • Ix2 web interface not responding

    I have the EMC IX2 200. I can no longer connect to the web interface. I recently had to replace a failed drive, I used the same  model and size. Afterwards the mirror repaired itself but I could never manage the storage. Some message about the drives

  • Photo Stream on MacBook Pro won't work

    I have a MacBook Pro and when I turn on Photo Stream in iCloud system preferences it comes up with a box that says "Photos in the iCloud account can't be accesses.  Please review your preferences." How do I fix it?