Question

Photo of Jared Piro

0

Rock:Grid delete options

Hello all,


Im wondering if its possible to change the text that appears on the delete confirmation dialog when you delete a row from a Rock:Grid?

Currently the dialog  says "Are you sure you want to delete this object type". It would be nice if I could change that message, so that a column name could be in the message so that you could be certain which row it is you are deleting.


Is there currently any way to do that?

  • Photo of Nick Airdo

    0

    The delete confirm dialog currently uses the grid's RockItemText property.  If you look at the GroupMemberList block you'll see an example where it uses the group and group member "term" for the name.  But you would have to get creative to set the value for each row upon delete click since rock doesn't exactly support that.

    gGroupMembers.RowItemText = _group.GroupType.GroupTerm + " " + _group.GroupType.GroupMemberTerm;