|
Title: How to remove the following error Post by: Alfred on April 30, 2019, 05:54:52 AM Though this error does not cause any unexpected behavior or change in my application, it always appear on the console. So I am looking for ways to remove the error, but could not find the solution.
Code: Uncaught TypeError: Cannot read property 'panel' of undefined I hope you can solve the problem. Thanks and regards, Alfred Title: Re: How to remove the following error Post by: jarry on May 02, 2019, 12:36:00 AM When calling the 'getPager' method before creating the datagrid, the error occurs. Please make sure to initialize the datagrid component before calling this method.
Title: Re: How to remove the following error Post by: Alfred on May 11, 2019, 07:44:25 PM Please show an example.
Thanks Alfred Title: Re: How to remove the following error Post by: jarry on May 13, 2019, 07:11:50 AM Look at this example:
Code: <table id="dg" class="easyui-datagrid" data-options="pagination:true" title="Custom DataGrid Pager"></table> The 'getPager' method is called when the page is loaded. It will raise errors because it is called before creating the datagrid. To solve this issue, use this code instead. Code: <table id="dg" class="easyui-datagrid" data-options="pagination:true" title="Custom DataGrid Pager"></table> Title: Re: How to remove the following error Post by: Alfred on May 13, 2019, 07:22:55 AM Thanks for the reply. How do I do it in the combogrid? This is the one that causes the error.
Code: <input name="feeinfo" id="ipBox" class="easyui-combogrid" I did try with the following but it does not work: Code: $(function(){Title: Re: How to remove the following error Post by: jarry on May 13, 2019, 06:53:07 PM This example is created from your code. No error occurs.
http://code.reloado.com/oluruy/edit#preview Title: Re: How to remove the following error Post by: Alfred on May 13, 2019, 07:29:27 PM Thanks Jarry. But my combogrid is inside a dialog. The problem is still there.
Title: Re: How to remove the following error Post by: jarry on May 15, 2019, 06:46:05 PM You should put all the script code into the <body> to be loaded from the dialog.
|