Hi,
I am trying to implement an example with igGrid (JS) and i can not clear all data in my selection with "DEL" button that on my keyboard.
In Excel we can clear all selected cells and i am wondering what will be happen in igGrid?
Hello Burcu,
Currently clearing a selection in igGrid is possible only through Ctrl+clicking the selected row/cell. If you want to use other keys to perform this operation, I would suggest you to submit a product idea at: http://ideas.infragistics.com
Steps to create your idea: 1. Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)3. Add your product idea and be sure to be specific and provide as much detail as possible. • Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!• [CASE: “Reference case [case number], FORUMS: “Include a link to this thread”] in your idea so product management will be able to look back at this case.
Please let me know if I may be of further assistance for you regarding this matter.
Regards,
Tsanna
Sorry i think there is a misunderstanding. I dont mention about clearing selection. It was deleting cell datas. Can it possible with igGrid?
I may write delete key event below but i can not find removing cell data example.
$("#grid").igGrid({ width: "100%", autoGenerateColumns: false})
.on('keydown', function (evnt) {
//handle grid's keydown event var ctrl = evnt.ctrlKey, key = evnt.keyCode; if (ctrl && key == 86 || evnt.shiftKey && key == 45) // Ctrl-V || Shift-Ins { //on paste (Ctrl+V) move focus to textarea $("#pasteHelper").focus(); } else if (key == 46) {
// Keyboard DEL button alert("all selected cell datas removed");
} });
I mean when I press the DELETE button on my keyboard this grid can be 1 to 2 as I added below. I dont understand why these main features of any kind of grid dont supported.
1.
2.
Please let me know if you need further assistance regarding this matter.
Thanks for your response.
Apologies for the misunderstanding.
By default you may delete records from grid using Delete key when Updating feature is enabled. However you may delete one selected, not a multiple selected records at once. Therefore to achieve this, you may bind to the keydown event of the grid, retrieve the currently selected cells with selectedCells API method of the grid and use setCellValue API method of grid Updating API in order to set empty cell value to your cells as shown on the screenshot above. Attached is a sample with similar scenario for your reference.
Please let me know if this works for you.