Skip to Content
avatar image
Former Member

RE: getSelectedCellColumn()

hi

if i use the getSelectedCellColumn() method its always return some negative value can you anyone tell me what is the reason.what is the solution for this one

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 07, 2007 at 08:05 AM

    Hi Deva,

    In display templates, General Tab, there will be check box with name allow cell selection. That should be enabled. Then only you can use <b>getSelectedCellColumn</b> method.

    It is clearly stated in help,

    <b>int getSelectedCellColumn()</b>

    This method returns the column number for the currently selected cell. It only applies if AllowCellSelection is enabled.

    regards

    Muzammil P.T

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06, 2007 at 01:45 PM

    Is there a selected row in your grid?

    getSelectedCellColumn() on a grid that does not have a selected row may return a -1?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06, 2007 at 04:54 PM

    Is "allow cell selection" enabled in the iGrid query template? This must be enabled in order for getSelectedCellColumn to return a value.

    If you only need to capture a "column" click (not a cell click), use the getSelectedColumn() method instead.

    - Rick

    Add comment
    10|10000 characters needed characters exceeded