EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 29, 2024, 11:42:31 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
Datagrid markup out of initial <table> tag
Pages: [
1
]
« previous
next »
Print
Author
Topic: Datagrid markup out of initial <table> tag (Read 5783 times)
romach
Newbie
Posts: 6
Datagrid markup out of initial <table> tag
«
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.
Logged
jarry
Administrator
Hero Member
Posts: 2262
Re: Datagrid markup out of initial <table> tag
«
Reply #1 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(...)
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...