I have been trying to display error handling messages in the GridStatusBarItem following the instructions on page 239 of Section 13.2.1 of RadGrid documentation. But I cannot get it to work.
Using Trace.Write and debugging, I can prove that I can find the GridStatusBarItem in the ItemCreated event, and then with that item use
lblStatusBar = itmStatusBar.FindControl("StatusLabel")
to find the label control. Then I can prove that I set the lblStatusBar.Text to the error message I want to display. But some other event later on is apparently overwriting or rewriting the text so that the final appearance always goes back to the "Ready" message.
I have temporarily solved the problem by also simultaneously writing the error message to an additional literal control like this
RadGrid1.Controls.Add(
New LiteralControl(String.Format("<span>{0}</span>", theMessage)))
but no matter what I've tried ... I've been unable to display any message in the GridStatusBarItem.
So could you please provide a full complete detailed example demonstrating how to use the GridStatusBarItem for display of error handling messages??? Please do not just write
// Set label properties here
as done in the RadGrid documentation because something is NOT working somewhere. And RadGrid must be overwriting the message somewhere later in the event sequence with the template default message "Ready".
Thanks for your help.