Hi,
I am looking at ways to disable the dhtmlxDataView to prevent users from clicking inside while an operation is ongoing on the server. I cannot find anything like the form lock or enable/disable calls.
Anyone knows what is the recommended way to lock/disable this control?
If you use dataview in layout cell, you can use onXLS and onXLE event handlers to call
view.attachEvent(“onXLS”, function (){
dhxLayout.cells(“a”).progressOn();
});
view.attachEvent(“onXLE”, function (){
dhxLayout.cells(“a”).progressOff();
});
It will show cover mask to disable cell area i.e. dataview from clicking: dhtmlx.com/docs/products/dht … gress.html
thanks, but I don’t want to display a progress image in the data view cause it’s not the one doing the search, i just want to disable it while i am getting the current clicked item in the list into another another form to prevent users from changing selection while the information is loaded. workflow is as follow:
1- request server for a list of items - fill into the dataview
2- user click in the dataview to select 1 item
3- item clicked is loaded into a form using a different datastore
4- while the other store load the data, i want to prevent user from clicking in the list of dataview
the form on which I load the data already display a progress using those suggested function, it will be weird to have both the progress in the data view and the form.
In the same application, and in the same window, I want to sometimes show the image, and sometimes not show the image. CSS won’t allow me to do this right?