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

ConfirmTextFields with client side binding

1 Answer 171 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marian
Top achievements
Rank 1
Marian asked on 02 Oct 2013, 11:54 AM
Hi to all,
I have a grid where I use GridClientDeleteColumn (or GridButtonColumn). I would like to use confirmation dialog with the parameters relating to the row data. ConfirmTextFields property works well with server bindings for me. Unfortunately, when binding the grid on the client side using WCF service, the required row data (Shortcut and Text in my example) are blank in the confirmation dialog. What should be done to show the fields of ConfirmTextFields property if I use the web service bindings?
<telerik:GridClientDeleteColumn Reorderable="false" ButtonType="ImageButton" CommandName="Delete"
    UniqueName="DeleteColumn" ConfirmDialogType="RadWindow"
    ConfirmTitle="Question" ConfirmTextFields="Shortcut,Text" ConfirmTextFormatString="Country {0} - {1} will be removed">
</telerik:GridClientDeleteColumn>

Thanks
-Marian

1 Answer, 1 is accepted

Sort by
0
Accepted
Angel Petrov
Telerik team
answered on 07 Oct 2013, 08:28 AM
Hi Marian,

I have to say that the behavior experience is expected as the ConfirmTextFields are assigned on the server. Note that data-editing is not supported when client-side data-binding is used and the behavior experienced is expected. What I would recommend is to manually call a confirm dialog using JavaScript logic and use an external form for editing the content as suggested here.

Regards,
Angel Petrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Marian
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or