Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
igGrid cellClick event gives the wrong ui.colIndex
posted

Hi, (using 2016.1)

I have an igGrid with 2 fixed columns.

Handling the cellClick event and checking the ui.colIndex I get a value that is -2 of the actual column index.

So I cannot do something like this:

$("#grid").igGridUpdating("startEdit", ui.rowKey, ui.colIndex);

This results in editing the cell 2 columns to the left.

I could not find an easy way to get the number of fixed columns so I can add it to ui.colIndex as a workaround.

The columnSettings of the igGridColumnFixing are not syncronized if the user un-freezes or freezes columns.

Can you please suggest a workaround or let me know what I am doing wrong/

Thanks

Parents
No Data
Reply
  • 18204
    Suggested Answer
    Offline posted

    Hello G,

    Thank you for posting in our forums!

    During the cellClick event, the ui.colKey property is available.  I would recommend passing this to the startEdit method instead of the ui.colIndex.

    Also why are you handling the cellClick event to trigger edit mode?  The igGrid will enter edit mode based on the startEditTriggers option you have set.

    If you need any further assistance with this, please let me know and I will be glad to help.

Children