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
565
in edit mode how to get column key
posted

hey Angel

in cell existed edit mode client event of webdatagrid how to get column key in edit mode .

i am getting column key in new mode by this way var colKey = eventArgs._cell._column._key

but not getting in edit mode.

plz tell me how to do

Parents
No Data
Reply
  • 17590
    Offline posted

    Hello Resha,

    Thank you for contacting Infragistics.

    What I can suggest for achieving your requirement is using the public functions instead of private ones to get the column and rescpectively the column key. I strongly recommend you using the public functions because the private once could be changed without any notice.

    In your scenario what I can suggest is handling the ExitedEditMode client side event of WebDataGrid Cell Editing. In this event via the public functions get_column() and get_key() the key for the column that edited cell belongs to could be retrieved as such:

    function WebDataGrid1_CellEditing_ExitedEditMode(sender, eventArgs)

    {

       var columnKey = eventArgs.getCell().get_column().get_key();

    }

    I hope you find this information helpful.

    Please let me know if you have any additional questions regarding this matter.

     

Children