jQuery UI Widgets › Forums › TreeGrid › treegrid.refresh method issue
Tagged: treegrid widget
This topic contains 6 replies, has 2 voices, and was last updated by Peter Stoev 10 years, 7 months ago.
-
Author
-
Is this method actually working?
I tested API through link http://jsfiddle.net/jqwidgets/eCwAX/
I don’t see any difference.
I need to have treegrid to be refreshed after I update values of multiple rows at the same time.
Hi jzhong,
The refresh method redraws the widget. Yes, it works and we use it internally as well. In general, you don’t need it. For updating values, my suggestion is – look at the samples which show how this should be done and also the API Docs.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hey Peter,
Thanks for the quick response.
I am aware of updating value for a single row. Let me rephrase my situation.
Right now I am implementing a correlated update. When I update one column’s value of a row, I have its children’s values on the same column to be updated as well. I need to have treegrid to be refreshed to show the updated values for the row and its children. I don’t want to reload the whole page to have that effect. Would you give me some help on this? Thanks.
Hello Peter,
Is there anyway to keep grid uncollapsed? I didn’t find it in api.
Hi jzhong,
There’s no API for expanding all rows with 1 method call or a property that will disable collapsing of rows.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hey Peter,
Thanks for the quick response.
I am aware of updating value for a single row. Let me rephrase my situation.
Right now I am implementing a correlated update. When I update one column’s value of a row, I have its children’s values on the same column to be updated as well. I need to have treegrid to be refreshed to show the updated values for the row and its children. I don’t want to reload the whole page to have that effect. Would you give me some help on this? Thanks.
Hi jzhong,
You will have to implement some custom solution using the widget’s available API. The setCellValue can update the value of a given cell, the updateRow method can update all row values.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.