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

Error icon in RowHeader of the RadGrid

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 11 Apr 2011, 06:09 PM
Hi,

I need of the RowHeader so that I can place an exclamation or error icon in there to indicate any error or validation messages which may result from my loading of the grid's data source. I come from a windows forms world. Back there I could fulfill my requirement by setting the RowHeader.Visible = True on the GridView and it would show up. 

I notice there is a property: RowIndicatorColumn under MasterTableView. But when I try to set it's visiblility to True, it refuses to change; continues to remain False.

Also, if you can guide on how to display error icons in individual cells as well that would be great. Basically, we're trying to mimic the way error messages are displayed in SQL Server Mgmt. Studio. So if a user entered an invalid text or if the code failed to load a particulr cell's information corectly, then I'd like to display an error icon in there and then set my message in the tooltip property of the icon.

I am new to RadGrid and would appreciate any help that you can extend in this regard.

Thanks.
Rahul

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Apr 2011, 07:13 AM
Hello Rahul,

One option is adding validator to edit field to prevent the update operation if the user enters data in an edit field which is not in the correct format. The following documentation explains more on this.
Validation

Hope this helps,
Princy.
Tags
Grid
Asked by
Rahul
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or