This is a migrated thread and some comments may be shown as answers.

Customizing GridStatusBarItem does not work

2 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 28 Sep 2008, 07:15 PM

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.

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 01 Oct 2008, 08:52 AM
Hello Carl,

Attached to this message, is a small application, which would allow you to always set the status, on the client.
I will also investigate the issue with the server side approach.
I hope this helps.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Carl
Top achievements
Rank 1
answered on 02 Oct 2008, 03:21 AM
Thanks for your help.
Tags
Grid
Asked by
Carl
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Carl
Top achievements
Rank 1
Share this question
or