I am databinding a RadGrid using the NeedDataSource event and my grid has a column configured as such:
<telerik:GridButtonColumn ButtonType="PushButton" CommandName="Delete" Text="Delete" ItemStyle-Width="20px" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you wish to remove this item?<br /><br /><strong>This action is not reversible.</strong>" ConfirmTitle="Confirm Removal" />
There is a RadWindow on the page so the confirmation dialog looks better than the default one. The issue I have is wanting to set the ConfirmText on ItemDataBound (or a similar method) so I can do something like "Are you sure you wish to remove this item which will also remove 35 child items?" where 35 is a count done on the DataItem being used. I've tried searching the forums here and also reading through the API and, while plenty of things give me TableCell access or access to the button being generated, I see nowhere that I can modify this text on a row-by-row basis.
Any suggestions?
<telerik:GridButtonColumn ButtonType="PushButton" CommandName="Delete" Text="Delete" ItemStyle-Width="20px" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you wish to remove this item?<br /><br /><strong>This action is not reversible.</strong>" ConfirmTitle="Confirm Removal" />
There is a RadWindow on the page so the confirmation dialog looks better than the default one. The issue I have is wanting to set the ConfirmText on ItemDataBound (or a similar method) so I can do something like "Are you sure you wish to remove this item which will also remove 35 child items?" where 35 is a count done on the DataItem being used. I've tried searching the forums here and also reading through the API and, while plenty of things give me TableCell access or access to the button being generated, I see nowhere that I can modify this text on a row-by-row basis.
Any suggestions?