Disable editing of column in advanceddatagrid

I'm having problems disabling editing in the advanced
datagrid The code for the column is below. It is using an
itemRender. I wouldn't think this would be the problem, but perhaps
I need to disable it at the item renderer level and not the
datagrid. Any ideas?
<mx:AdvancedDataGridColumn width="10" id="DGColumn_X"
editable="false" visible="true" sortable="false" headerText="X"
dataField="hasPermission" itemRenderer="mx.controls.CheckBox"
/>

It looks like the class you are losing doesn't support what you are trying to do; you can only toggle whether columns are sortable on a global basis. At least, that's my impression after looking at the first API which Google coughed up for that class.
I guess you could turn the sorting on/off depending upon which column is clicked, though I'm not sure how well that will work.
The columnMoved should be called when columns are moved from one index to another. The event will have a 'from' and a 'to' index on it.
I think you may want to try using a mouse listener on the TableHeader, figure out the column that we clicked on, and then act accordingly:
        JTableHeader tableHeader = table.getTableHeader();
        tableHeader.addMouseListener(new MouseAdapter() {
            public void mousePressed(MouseEvent event) {
                JTableHeader header = (JTableHeader) (event.getSource());
                int index = header.columnAtPoint(event.getPoint());
                // do stuff based on index
        });You may want to play with that, as I'm not sure how it will work with that class, particularly as I assume it toggles sorting through ascending, descending, no sorting.

Similar Messages

  • ADF DI : Need to disable edit on a column in excel spread sheet

    Hi,
    I need to make a column disable for edit in ADF table in excel.I tried making read only property to true but , user can still edit that column but will get update failed error.I want my column to be completely disabled even for editing.Is there any way to disable edit on the column and makes it grey out??
    Thanks in Advance,
    Alekhya

    I have enabled worksheet protection, with only the Column i need to be
    made read only. Accodring to the ADF DI Dev guide, "The end user can insert a
    full row or column. However, once inserted, they cannot be deleted.". But
    even full row insert shows up disabled. Its not allowing me to insert a new row at all.

  • How to disable edit link in interactive report

    Hi,
    How to disable edit(e3.gif image) link interactive report.
    Thanks,
    nr

    Hi Jari,
    Apex Version:3.2
    I created on Interactive report on emp table I have created edit link on empno using Icon5 image.
    Report Attributes>Column Attributes>Column Link.
    I can Hide the Icon5 using following script but I need to disable only. I did not get any disable() method in Jquery.
    Region Id:R812581842900385833
    $(document).ready(function() {
    var viewOnly=document.getElementById('P1_ITEM1').value;
    if(viewOnly == "0")
    $("#R812581842900385833 img").hide();
    thanks,
    Nr
    Edited by: pnr on Mar 13, 2012 6:09 AM

  • Remove Enable, Disable and Delete columns from searchUser.do

    Hello,
    What jsp form do I need to modify to remove the enable, disable and delete columns from the searchUser.do page? I edited tjspSearchUserResultsTiles.jsp but that didn't seem to do it.
    Thanks

    Hi,
    TableGenerator.jsp is the general jsp so you shouldn't modify it.You need to extend tcSearchUserAction.java class aand create a custom class.You need to over ride populateColumnHeadings and populateTableData.
    I won't suggest this approach until you are very much familiar with struts development and oim classes.
    Regards
    Nitesh

  • Disable Editing in GL a/c in VKOA

    Hi experts,
    My PRD Server in transaction code vkoa have privilege to edit GL accounts.
    but client setting is disable.
    How can i disable edit GL accounts in VKOA.
    Regards,

    Actually the settings will be controlled by BASIS team
    It is not suggested to keep the VKOA settings in EDITABLE mode, which will impact a lot if something goes wrong.
    Ask your BASIS team to disable, if chages required do it through DEV - QAS - PROD
    Thanks

  • Form report with both edit and column link

    hi experts,
    How can we create form report with both edit and column link. Ie, the form should have both the Edit link and column link. When we click on the edit link(in page1) it should go for the page2 and the page2 should display the corresponding row fields which should be editable. but when i click the column link it should bring me to the next page but the corresponding values of the column should not be editable.
    Regars,
    KK

    hi,
    Here i have achieved this by making the column link and page navigation.

  • Disable EDIT AUTHORIZATIONS in PI 7.1

    Hi all,
    In PI 7.1 we can define and edit authorizations for access to objects in the Enterprise Services Repository.
    Is there any way that i can disable EDIT AUTHORIZATIONS  option of the context menu at the Software component level.
    regards
    Gangaprasad

    Sebastian,
    I found these Actions in Identity-Managements, where I can do settings for a virtual Provider.
         jms.default          topic.all.all
         jms.default          temp.topic.all.all
         jms.default          administration.all.all     
         jms.default          queue.all.all
         jms.default          temp.queue.all.all
    So I will create a new Virtual Provider "myProvider" assing my JMS-Queue to this provider and play around with the parameter settings "jms.myProvider" and assign these actions to a test user.
    Furthermore I found these actions in Identy Management. I think in the first step I won't change anything at these parameters.
         jms_provider          topic.all.all
         jms_provider          temp.topic.all.all
         jms_provider          administration.all.all
         jms_provider          queue.all.all
         jms_provider          temp.queue.all.all
    I let you know the result of my tests.
    regards
    Barbara

  • Disable editing PDF before email to others

    How can I sign a PDF document or disable editing feature of PDF document before sending to my customer?

    With Reader...  you can't. You'd need Acrobat or CreatePDF to restrict editing.

  • While editing the columns in ADo net source not refresh the columns

    Hi,
    When i am editing the columns in the adonetsource can't able to edit it.
    EG:
    id       name     sal are the available columns
    select id, 'name' as ename,sal from emp.
    I Edited this query as :
    select  id, 'empname' as ename,sal from emp
    It won't affect in the source. & how to change the query using expression. in adonetsource there is no data access mode as from varible.   pls help on it.
    Thanks

    Hi Sai,
    Let me know what you are trying to Edit in columns. You want to alias the column name or you want to edit the string of column.
    Column Aliasing : 
    select id, name as EmpName, sal from emp
    Check with this and let me know if you still facing issues.
    Regards,
    Vaishu

  • Siebel Analytics: Disabling a Drill column

    I am trying to disable a drill column in my hierarchy
    I have the following hierarchy set-up:
    Resource Hierarchy
    --- Total Resource (top most level)
    ------ Department (1st level)
    ------ Department Key
    ------ Department Name
    --- Resource (2nd level)
    ------ Resource Key
    ------ Resource Name
    I have the following for my presentation layer:
    Resource
    --- Resource Name
    --- Department Name
    --- Department Description
    From Department I can drill into Resource
    I have a report where I want to display Department Name, Department Description and a measure.
    I noticed that both the Department Name and Department Description are enabled so that I can drill on it to the Resource. I would like to have just Department Name enabled (and not Department Description) so that I only have one way to drill into the Resource.
    Does anyone know how I can do this?
    Thanks,
    Mary

    Mary,
    Before you disable the drill down capability you need to make sure if no other reports get impacted by disableing the dept hierarchy.
    2 ways
    1. Build new dept hierarchy for only one lvl that you want.
    2. Go to the hierarchy lvl you want to disable ->click on property->click on Keys tab-> double click on the col you want to disable for drill down -> you will see a check box "use for drilldown" uncheck that, save it restart the server.
    Thanks
    Girish

  • Assigning Dynamic Columns to advanceddatagrid not showing value

    Hi all,
    Iam trying to assign the header and data columns in AdvancedDataGrid on runtime.
    This is the code. The data is correctly displayed in the console.But after assigning the columns array to dgShipmentSearch datagrid nothing is shown in the screen.What could be the problem? 

    Hi Sorry for that.
    Here is the code:
    var headerArray:Array = flightList.getItemAt(0) as Array;
    for(var headerArrayIndex:int=0;headerArrayIndex<headerArray.length; headerArrayIndex++){
    dataGridColumns = new AdvancedDataGridColumn();   
    var strHeaderName:String = headerArray[headerArrayIndex]as String;
    var strHeaderNameArray:Object = strHeaderName.split(",") as Array;
      var headerName:String = strHeaderNameArray[0];
    trace("strHeaderName"+headerName);
    if(headerName != ""){
      dataGridColumns.headerText=headerName;
      dataGridColumns.resizable=true;
      columns.push(dataGridColumns);
      var flightDataList:Object = flightList.removeItemAt(0) as Object;
      trace("flightList="+flightList);
    dgShipmentSearch.dataProvider=flightList;
    dgShipmentSearch.columns = columns; // setting columns to dataGrid.
    dgShipmentSearch.setActualSize(400,500);
    Ur valuable suggestions would be helpful.

  • Do editable a column of a ALV (object oriented programming)

    Hello,
    How I can do editable a column of a ALV (object oriented programming) ??
    What field of a fieldcatalog let it ??
    Thanks.
      wa_fieldcatalog-fieldname = 'NUM_KGS'.
      wa_fieldcatalog-seltext = 'Kg'.
      wa_fieldcatalog-coltext = 'Kg'.
      wa_fieldcatalog-just = 'L'.
      wa_fieldcatalog-tabname = 'IT_DATOS'.
       wa_fieldcatalog- ?????????

    In the program add the following field
    wa_fieldcatalog-EDIT = 'X'.
    append wa_fieldcatalog.
    you will get the column editable

  • How to Disable edit option in Logon pad

    Hi,
    How to disable edit option in logon pad
    thanks

    Actually if you are looking to disable the "Edit" option so end users cannot change or modify the existing  Logon Pad options systems, you can.
    What version are you using for SAP GUI?
    7.10 has icons to the right which allow changes. (New, edit, etc)
    7.20 has icons across the toolbar at the top. (pencil, paper, trashcan)
    For both versions, Navigate to C:\Program Files\SAP\FrontEnd\SAPgui (Default location)
    In there you will find 2 executeables:
    saplgpad.exe
    saplogon.exe
    If you run the saplogon.exe it will allow edit, delete and modify
    If you run the saplgpad.exe:
    On the 7.10 version the buttons are gone.
    On the 7.20 version, the buttons are grayed out.
    Hope this is what you are looking for.
    Regards,
    Zecher

  • Editing a Column in Hirerachial ALV

    Hi,
    I have ALV Report which had been displayed using CL_SALV_HIERSEQ_TABLE.
    Now I got a Requirement To add a column at Item level to add Comments.
    Is it possible to Edit a Column in Hirarichal ALV? Is any other way to add comments to the List in a column?
    your suggestions are valuable...Please reply..
    Thanks,
    J.

    Hi sekhar,
    the HIER_SEQ class is for classical LIST output, here (as in all SALV applications) you have no input possibility.
    You could add a COMMENT column to your table and program a (double-click?) event. This could issue a popup and ask for the commentary. Then you could modify and refresh the list.
    See program SALV_DEMO_HIERSEQ_EVENTS for catching the event. I hope, you can do the rest.
    Kind regards,
    Clemens

  • JTable- how can i disable editing

    hi
    could anyone please lemme know if there is any way to disable editing in a jtable. i tried disabling it, but ;) hehe, well that diables selecting a row also then. One more thing, is there any simpler method to add scroll bars to a panel or frame without having to place the panel itself into a jscrlolpane, 'cos im having too many other problems when i make a nested panel. if anyone has a solution , please do tell me
    thankyou

    u can do it when u use model for the table.
    use AbstractTable model and over ride isCellEditable method returning false..
    Check sun demo examples how to use AbstractTableModel...
    very simple right....hihihi..

Maybe you are looking for