Customize the "Loading" message for new Module

Subhajit Biswas asked on January 29, 2016 09:25

I have created a new module which calls a process which takes about 1.5 minutes to run! By that time Kentico default "Loading" message is being displayed. I want to display my own message there so that the user will know what actually is happening there.

Is there any way I can customize the default "Loading" message?

I need it urgently. Thanks in advance!

Recent Answers


Roman Hutnyk answered on January 29, 2016 16:07

I'd recommend you using scheduled task for a process that takes minute or more, if it is suitable in your case. Regarding message: do you want to change it for this particular case, or you're fine to change it for entire administration?

0 votesVote for this answer Mark as a Correct answer

Subhajit Biswas answered on February 1, 2016 07:08

We already have a scheduled Task for the above, but we still need this for some time.

We actually need it for the specific module, but it will be fine to know how it can be done for entire administration?

0 votesVote for this answer Mark as a Correct answer

Martin Hejtmanek answered on February 1, 2016 08:42

It is not a good idea to make this in a synchronous way. If the process takes 1.5 minutes, it may likely timeout and it will also hold a slot for open requests on server.

You should initiate this action as asynchronous in a new thread, and display async log while this action executes. You can see some examples how this is done in Kentico UI code, e.g. \CMSModules\Content\CMSDesk\Delete.aspx, look for AsyncLog control (AsyncLogDialog) and actions bound to it. For further details, contact support or consulting.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.