EasyUI Forum

General Category => General Discussion => Topic started by: romach on April 11, 2016, 03:48:37 PM



Title: Datagrid markup out of initial <table> tag
Post by: romach on April 11, 2016, 03:48:37 PM
I create several datagrid with unuque id via javascript from <table id="dg"></table>.  All datagrid markup is placed out of initial table tags. I cannot use $("#dg").find() to locate any html element inside datagrid. ???


Title: Re: Datagrid markup out of initial <table> tag
Post by: jarry on April 12, 2016, 06:48:04 PM
You need to call 'getPanel' method to get the datagrid panel before selecting elements in it.
Code:
var p = $('#dg').datagrid('getPanel');
p.find(...)