Hi,
we use the followed function to update DataGrid when data is change (a background thread run a loop to check if data is change and raises event and calls update Grid)
Application.Update(dataGrid, () =>
{
…
});
It works fine, but sometime it has exception. It looks like the javascript for DataGrid somehow was missing: reloadData, updateRows …
Could you please point out, what is the problem?
Thanks for your help,
Page
2021-06-12 10:21:46,175 ERROR Program on_ThreadException – System.ApplicationException: Unknown function: reloadData
at Wisej.Web.Application.ProcessCallbackWebEvent(WisejEventArgs e)
at Wisej.Web.Application.ProcessWebEvent(WisejEventArgs e)
at Wisej.Web.Application.OnWebEvent(WisejEventArgs e)
at Wisej.Web.Application.Wisej.Core.IWisejComponent.Event(WisejEventArgs e)
at Wisej.Core.ComponentManager.DispatchEvents(Session session, ICollection events)
at CallSite.Target(Closure , CallSite , ComponentManager , Session , Object )
at Wisej.Core.ResponseManager.<>c__DisplayClass25_0.<OnEvent>b__0()
at Wisej.Core.IWisejSynchronizedImplementation.Lock(IWisejSynchronized target, Action action)
at Wisej.Core.ResponseManager.OnEvent(Session session, Object message)
at CallSite.Target(Closure , CallSite , ResponseManager , Session , Object )
at Wisej.Core.ResponseManager.ProcessRequest(ServiceType service, Object message)
2021-06-12 10:21:46,383 ERROR Program on_ThreadException – System.ApplicationException: Unknown function: updateRows
at Wisej.Web.Application.ProcessCallbackWebEvent(WisejEventArgs e)
at Wisej.Web.Application.ProcessWebEvent(WisejEventArgs e)
at Wisej.Web.Application.OnWebEvent(WisejEventArgs e)
at Wisej.Web.Application.Wisej.Core.IWisejComponent.Event(WisejEventArgs e)
at Wisej.Core.ComponentManager.DispatchEvents(Session session, ICollection events)
at CallSite.Target(Closure , CallSite , ComponentManager , Session , Object )
at Wisej.Core.ResponseManager.<>c__DisplayClass25_0.<OnEvent>b__0()
at Wisej.Core.IWisejSynchronizedImplementation.Lock(IWisejSynchronized target, Action action)
at Wisej.Core.ResponseManager.OnEvent(Session session, Object message)
at CallSite.Target(Closure , CallSite , ResponseManager , Session , Object )
at Wisej.Core.ResponseManager.ProcessRequest(ServiceType service, Object message)
Javascript cannot be unloaded unless the page is reloaded completely. Try to use dev tools (F12) and enabled the exceptions in the browser to break and then attach the stack trace you get in the console.
Please login first to submit.