Title: How to Add a Method to edatagrid Post by: alex_wijoyo on March 25, 2013, 03:38:30 AM Dear All,
I am trying to implement a method for refreshing edatagrid row contents display without changing its state. Does the method below will achieve my intent? How do I implement it in edatagrid. TIA. Code: updateRowDisplay: function(target, rowIndex) { Regards, Alex Wijoyo Title: Re: How to Add a Method to edatagrid Post by: stworthy on March 25, 2013, 04:03:04 PM Call 'refreshRow' or 'updateRow' methods to refresh a row'
s content. Title: Re: How to Add a Method to edatagrid Post by: alex_wijoyo on March 28, 2013, 07:41:42 PM Dear Stworthy,
Thanks for your response. I want to achieve master detail cached modifications. So every master detail modifications are made at easyui and post at once to web application. The problem is sometimes there are values resulted from lookup. For example address and city of a customer. Using refreshRow or updateRow will cause detail contents reset. Do you have other suggestions for this? Thanks. Title: Re: How to Add a Method to edatagrid Post by: stworthy on March 29, 2013, 06:53:27 PM The simple way to extend the 'updateRowDisplay' method can be defined as:
Code: <script> Now call 'updateRowDisplay' method to do this action. Code: $('#dg').datagrid('updateRowDisplay', rowIndex); Title: Re: How to Add a Method to edatagrid Post by: alex_wijoyo on March 31, 2013, 12:14:52 AM Dear Stworthy,
Thank you very much for your kind help. |