question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

editRowRenderer, add control buttons

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tabalinascommented, Jan 24, 2017

You are welcome!

0reactions
tbellemboiscommented, Jan 24, 2017

Thanks for the example ! It is now clear to me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found