ConfirmTextFields with client side binding

2 posts, 1 answers
  1. Marian
    Marian avatar
    49 posts
    Member since:
    Sep 2008

    Posted 02 Oct 2013 Link to this post

    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">

  2. Answer
    Angel Petrov
    Angel Petrov avatar
    1039 posts

    Posted 07 Oct 2013 Link to this post

    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.

    Angel Petrov
    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.
Back to Top