Jan 31, 2012, 3:23 PM
[CLOSED] Error when da DataSource of GridPanel.Store is empty (datareader datasource)
I am trying to do a generic search control...
For this, I follow two examples:
Grid and Store reconfigure
https://examples2.ext.net/#/GridPane...e_Reconfigure/
and
System.Data DataReader
https://examples2.ext.net/#/GridPane...ta/DataReader/
It's working beautifully if the datareader contains records... but if datareader returns empty, a error occurs.
Attachment 3790
The result.script contains this text:
So I'd like a hint of what I could do when it comes dataReader empty ... some value that I can set to Store.DataSource or something
Thanks for any help.
For this, I follow two examples:
Grid and Store reconfigure
https://examples2.ext.net/#/GridPane...e_Reconfigure/
and
System.Data DataReader
https://examples2.ext.net/#/GridPane...ta/DataReader/
It's working beautifully if the datareader contains records... but if datareader returns empty, a error occurs.
Attachment 3790
The result.script contains this text:
SuperaWeb.SGAC.Dividas.wndDividasDetail_wndEmpresasSGE_sdtCidade_storeSearchData.proxy.data = ;SuperaWeb.SGAC.Dividas.wndDividasDetail_wndEmpresasSGE_sdtCidade_storeSearchData.load();
The search control code is very complex. It's a little hard for me to have a working example...So I'd like a hint of what I could do when it comes dataReader empty ... some value that I can set to Store.DataSource or something
Thanks for any help.
Last edited by Daniil; Feb 01, 2012 at 11:59 AM.
Reason: [CLOSED]