editRowRenderer, add control buttons
See original GitHub issueHi,
I try to build a custom row renderer:
editRowRenderer: function(item, itemIndex) {
var fn = $("<input>").attr("type", "text").attr("name", "FirstName").val(item.FirstName);
var ln = $("<input>").attr("type", "text").attr("name", "LastName").val(item.LastName);
return $("<tr>").append($("<td>")).append(fn).append(ln);
},
But I can’t figure out how to add the jsGrid control buttons.
I have tried several thinks such as .append(new jsGrid.ControlField()
but it does not work.
Thanks for your help.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
JSGrid Custom Editing Row - JSFiddle - Code Playground
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Read more >Documentation - jsGrid
Control field renders delete and editing buttons in data row, search and add buttons in filter and inserting row accordingly. It also renders...
Read more >jsgrid multiple custom control buttons? - jquery - Stack Overflow
I would like to add multiple custom control buttons so I can add a custom click event to the buttons. The issue I...
Read more >JSGrid Custom Editing Row - CodePen
... .append($deleteButton);\\n },\\n\\n editRowRenderer: function(item, ... {\\n type: \\\"control\\\",\\n width: \\\"10%\\\"\\n }]\\n});\\n\" ...
Read more >Lightweight Client Side Data Grid Plugin with jQuery - jsgrid
Added more methods. v1.2.0 (2015-10-08). Add ability to cancel controller call in accordant -ing callback; Hide unavalable pager nav buttons.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You are welcome!
Thanks for the example ! It is now clear to me.