EasyUI Forum

General Category => General Discussion => Topic started by: contestant on March 12, 2015, 02:11:35 AM



Title: How can get current datagrid options?
Post by: contestant on March 12, 2015, 02:11:35 AM
Hi
I want to get current datagrid options on editing inline to get some attributes like url and etc...
Thank you for correct replies.


Title: Re: How can get current datagrid options?
Post by: stworthy on March 12, 2015, 02:21:12 AM
Call 'options' method to get the datagrid's options.
Code:
$('#dg').datagrid({
  onBeginEdit:function(){
    var opts = $(this).datagrid('options');
    //...
  }
});