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

[Solved] Question about inline delete in grid

2 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
isabel cui
Top achievements
Rank 1
isabel cui asked on 15 Jul 2009, 09:24 AM
 <telerik:GridButtonColumn ConfirmText="<%#Eval("TOPICNAME")%>" 
ConfirmDialogType="RadWindow"  ConfirmTitle="BPM System" ButtonType="ImageButton" I
mageUrl
="../Images/Trash.gif"  CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"
</telerik:GridButtonColumn> 
 Above is my code, when debugging, error happens

Parser Error Message: Literal content ('" ConfirmDialogType="RadWindow"
                                   ConfirmTitle="BPM System" ButtonType="ImageButton" ImageUrl="../Images/Trash.gif"
                                   CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">') is not allowed within a 'Telerik.Web.UI.GridButtonColumn'.

All I want is to show topicname in the confirmtext, so anyone could help me ?
Thanks a lot!

2 Answers, 1 is accepted

Sort by
0
isabel cui
Top achievements
Rank 1
answered on 16 Jul 2009, 01:49 AM
I've corrected the parse error by using ' instead of "
but new issue occurs, GridButtonColumn do not support databind.....
so  what can I do next??
0
Iana Tsolova
Telerik team
answered on 17 Jul 2009, 03:29 PM
Hello isabel,

You can try handling the ItemDataBound event of RadGrid and set the ConfirmText for each item there.
Additional information on access grid elements is available here and a sample with similar scenario to your is available here.

Best wishes,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
isabel cui
Top achievements
Rank 1
Answers by
isabel cui
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or