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

Need Error Text Ideas

2 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 06 Apr 2010, 03:46 PM
I have a requirement to display an error message within the grid below each row where an error has occurred (see attached file for screen shot example). I was attempting to accomplish this by having a column at the end of my grid that would be visible cell if an error occurred and I was hoping to get the cell to wrap onto a new line but within the same row of the grid but not having a header for this column. I cannot figure out how to do this.

Does anyone else have any idea of how I can display an error message within a grid row like this?

Thanks,
Dan

2 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 07 Apr 2010, 12:57 PM
Hello Daniel,

You may take advantage of the global item template feature of RadGrid for ASP.NET AJAX for this purpose. Thus you can model the grid rows in par with your preferences and display error message at the bottom of the row that match certain criterion. The actual error text can be either bound to a data source field or populated programmatically intercepting the ItemDataBound event of the grid.

Kind regards,
Sebastian
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel
Top achievements
Rank 1
answered on 07 Apr 2010, 07:04 PM
It certainly took a lot of trial and error to get this working but I finally got it. I was only able to get it to work if I had the "<Columns>" section in addition to the "<ItemTemplate>" section otherwise I was getting a weird Microsoft JavaScript error. Thanks for the help.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or