Title: onExpandRow action onClose? Post by: kavvson on September 20, 2014, 07:40:52 AM I have such function
Code: onExpandRow: function(index,row){ Code: $('#jloading').html(d); Code: #jloading Do you have any tips? Title: Re: onExpandRow action onClose? Post by: stworthy on September 20, 2014, 08:38:40 AM When click the - icon, the 'onCollapseRow' event fires, in which you can write some code logic to do what you want.
Title: Re: onExpandRow action onClose? Post by: kavvson on September 20, 2014, 08:41:38 AM Code: .val('') Code: onCollapseRow: $('#jinner').html(''), Code: .val('') Title: Re: onExpandRow action onClose? Post by: kavvson on September 30, 2014, 07:23:50 AM Any ideas on this one?
Title: Re: onExpandRow action onClose? Post by: stworthy on September 30, 2014, 07:53:34 AM How do you define the '#jloading'? And what do you wish to do when collapse a row? Please describe your issue in more detail.
Title: Re: onExpandRow action onClose? Post by: kavvson on September 30, 2014, 10:03:09 AM It only loades a simple data into the div. Onclose I want it to clear the data (http://oi59.tinypic.com/dnj6z9.jpg) [http://oi59.tinypic.com/dnj6z9.jpg]
code : Container Code: <div class="easyui-tabs" id="accord" data-options="tabWidth:112" style="height:500px;"> and my event for onExpand Code: onExpandRow: function(index,row){ Hope its enough information to help me out. Whenever I expand I want be able to close it and remove the content ( seems like Code: onCollapseRow: $('#jinner').val(''), Title: Re: onExpandRow action onClose? Post by: stworthy on September 30, 2014, 05:06:38 PM If you only want to clear the '#jinner' container, call 'empty' or 'html' method after the row is collapsed.
Code: $('#dg').datagrid({ Title: Re: onExpandRow action onClose? Post by: kavvson on October 01, 2014, 02:08:31 AM Uncaught TypeError: undefined is not a function after adding the onCollapseRow VM696:8908 it is
Code: return $.fn.datagrid.methods[_64d](this,_64e); whole js. http://pastebin.com/9VBG7CaU |