Hi,
When I enable adding row, is there a way to put the add row at the bottom at the grid instead of on top? I want to put it in the footer instead of header
Thanks,
Jeffrey
Hi Jeffrey,Although it's possible with some javaScript trickery (appendChild), it's neither safe, nor easy.Why you may ask?Well, the Add Row is a part of the igGrid's <THEAD>, so if the grid is re-rendered for some reason, the Add Row will be added to that <THEAD>, no matter where you placed it using appendChild for example. Also, as a member of <THEAD>, there are certain calculations (about height for example) and event hooks that rely on the Add Row being inside the <THEAD>, so placing it somewhere else in the DOM may result in erratic behavior.The safest route I can recommend to you at this moment is to submit a new feature request about a new option that will allow the Add Row to be rendered below the data records instead of only above them.Hope this helps,Borislav
Thanks for the explanation. That helps.
Hello Jeffery,
Thank you for the update and glad to hear this resolves this issue for you. I have created the feature request for you the id is PI12080078.
Please let me know if you have any questions concerning this matter.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Thanks Mike.
Just want to follow up on this issue of adding a row to the bottom of the grid instead of on top. We also have same request from our users to have new rows added at bottom. Has there been any resolutions to this question?
Appreciate any help, thanks!
Shien
Hi Shien,I'm afraid that our developers are working on requests with higher priority at the moment.Unfortunately I cannot give you an ETA on the mentioned feature request.Thank you for understanding the matter.
Hello
Did you provide this feature?
Hi Borislav. If we can't put add row button at the bottom, how do I select and show the most recent added row? At least this way users can see the new row in case we have many rows in the grid. Thank you.
While we didn't get any official support for this feature, we did manage this workaround:
$(document).on("iggridrendered", function (e, ui) { $("#" + e.target.id + "_footer_container").show();
$.each($("#" + e.target.id + "_headers thead tr").splice(-2), function () { $("#" + e.target.id + "_footers tfoot").append($(this).detach()); });});
We do not show Done or Cancel buttons so I didn't bother to implement a clean fix for that. Let me know if you have any questions.
Hi Alex,Unfortunately the backlog item about this improvement to the Updating feature (to position the Add Row at the bottom) wasn't on the top priority list of our RnD team.With this in mind, they do know about such improvement requests, but unfortunately, they (the team) need to go through the list taking into account backlog item priority.In order to make customer-requested improvements and new features more likely to receive a high backlog priority, we have introduced the new customer feedback system:http://ideas.infragistics.com/It's User Voice-powered and allows us to have a greater visibility of the multitude of ideas coming from customer feedback.As you can see, Ignite UI shares the 3rd place for most feedback-ed product along with NucliOS so there are other people like you out there and we're listening to you. Hope this helps,Bobby