jQuery UI Widgets › Forums › Grid › Everpresentrow widgets and changing grid datasource
Tagged: #jqwidgets-grid, grid, javascript grid, jquery grid
This topic contains 9 replies, has 4 voices, and was last updated by Hristo 7 years, 8 months ago.
-
Author
-
I’ve discovered that createEverPresentRowWidget is being called whenever the grid’s source changes. Is there a reason for this? I would expect createEverPresentRowWidget to be called only once. I believe this is also the source of another post you’ve left unanswered :
http://www.jqwidgets.com/community/topic/grid-and-createeverpresentrowwidget/
It’s very common behavior to have custom widgets in a grid’s ever present row. Having them overridden, hidden, or dirtied through multiple object creations through the event being called more than once in the grid’s lifecycle is undesirable at best. Can you guys fix this in a future update?
Hello Pfhoenix,
It is expected behavior if you set the data and if you use the
updatebounddata
method to do that.
This method updates the bound data and refreshes the Grid.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comI do not call updatebounddata though. The ever present row is being recreated without me calling anything other than $(‘#grid’).jqxGrid({ source: newsource }).
Hello Pfhoenix,
Could you provide us an example (if it is possible) that demonstrates this issue?
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comI met the same problem.
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/everpresentrowcustomwidgets.htm?
The grid work well at the first time when it loaded into the web. After I used “$(‘#jqxgrid’).jqxGrid(‘updateboundata’);” , the top row that use in adding new rows can’t work.Hello Tang,
I would like to say the used name is incorrect “updateboundata” it should be
updatebounddata
.
Could you clarify it?
Did you implementaddrow
callback andupdaterow
?Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHello Hristo,
Yeath, I made a spelling mistake in reply.
I hope you can give it a try – update the data in demo “http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/everpresentrowcustomwidgets.htm?” by console with “$(‘#jqxgrid’).jqxGrid(‘updatebounddata’);” and then click the dropdownlist or the “add” button.
You may find my problem.Thanks a lot.
Hello Tang,
I created the example again and I got it.
Thank you for the feedback.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi Hristo,
Is there any workaround for this problem ? Whenever I change the datasource, everpresentrow is not working properly and I am not able to add any new row to the grid.
Thanks,
BhargavHello Bhargav,
The “Ever Present Row” functionality works fine except mentioned (custom – widget) option and I would suggest you use the simple functionality of the “Ever Present Row”.
I would like to suggest you look at our “Release History” page from time to time, it is renewed with every new release:
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/releasehistory/releasehistory.htm?search=Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.