jQuery UI Widgets Forums Grid Grid – copying data from excel

This topic contains 5 replies, has 3 voices, and was last updated by  hurricane 7 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Grid – copying data from excel #90245

    hurricane
    Participant

    Hi ,

    I want to copy data from excel to grid. One of my columns is an ID column and it is having property editable :false . When I copy and paste one single row over another single existing row, I have no way to control what happens to the destination row other than commit or reject the entire change. I don’t mind all the other values being updated (just not the id). I am finding difficult to find a way to restrict that one ID column being copied. Is there a way available to fix this problem ?

    Grid – copying data from excel #90254

    ivailo
    Participant

    Hi hurricane,

    There is no built-in option to restrict single cell.
    Instead, you can get the value of the cell and revert it when the process is finished.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Grid – copying data from excel #90261

    hurricane
    Participant

    I tried using cellvaluechanging event with each cell, but while copying data it is not getting triggered.Hence, I am not able to get the value to revert. Please guide if I am overlooking something.

    Grid – copying data from excel #90265

    Peter Stoev
    Keymaster

    Just an idea I wanted to share with you guys. clipboard property can be set to a Grid column, too. Set clipboard: false to disable clipboard operations of a given Grid column.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Grid – copying data from excel #90272

    hurricane
    Participant

    Thanks guys for your inputs!

    @Peter : I tried this option. But in my case, I am doing a row copy. I still not able to achieve what I wanted using clipboard property. Given solution works well if we do cell copying of the data. In my case, I am doing a row copy. It is still overwriting columns value in grid. Some other work around, do you think of ?

    Grid – copying data from excel #90277

    hurricane
    Participant

    Hi Peter,

    I have used clipboard property with grid columns by customizing event pasteselection. I have added restriction to copy field while copying if it sets to property as false.
    It did work for me. Though, Need your inputs if this logic could break anywhere else unknowingly.

    Appreciated your help!

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.