FormTemplate Binding

5 posts, 0 answers
  1. Kyle Jones
    Kyle Jones avatar
    30 posts
    Member since:
    Jul 2009

    Posted 25 Aug 2009 Link to this post

    Hey,

    I am using a FormTemplate to create my edit form on a web app.  I am trying to DataBind a field in the form with Data from the text boxes inside that form. 

    This is the code I am trying to bind:

    ConfirmationText='<%# string.Format("tht{0}tn euattn{1}", Eval("YourOffer"), Eval("SecretOffer")) %>'

    YourOffer and SecretOffer are both text boxes on the form.  The confirmation text is part of a server control that my boss created and I am trying to bind the data from the text boxes into the confirm text to make sure that the user is sure they are doing what they want to do.  Any help trying to figure this out would be greatly appreciated.


    Thanks,


    Kyle



  2. Kyle Jones
    Kyle Jones avatar
    30 posts
    Member since:
    Jul 2009

    Posted 26 Aug 2009 Link to this post

    Hey,

    Little addition to my post.  basically what I am trying to have happen is have a confirmation box come up when someone trys to submit data to my site.  Can someone help me out with a way this can be done.

    Thanks,

    Kyle
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 28 Aug 2009 Link to this post

    Hello Kyle,

    One possible option is to simply assign client side handlers to the controls in the edit form - be it for a simple click, or onblur/textchange, and handle the confirmation there.
    Other than this, since I am not familiar with the control that you are using, you can open a formal support ticket, and send us a small project sample, which we can review locally, in order to advise you further.

    Kind regards,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Kyle Jones
    Kyle Jones avatar
    30 posts
    Member since:
    Jul 2009

    Posted 28 Aug 2009 Link to this post

    Hey,

    I am not concerned about using my custom control.  I just want to figure out a way to assign values to a confirmation box from a <FormTemplate> field on a RadGrid when I click on the submit button.  If you have any examples of something like this I would greatly appreciate it.

    Kyle
  6. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 07 Sep 2009 Link to this post

    Hello Kyle,

    When you click on the button, or any row in the grid, you can open the confirm, and show a custom value in it. You can get the value in any cell by using a method like this one:

    http://www.telerik.com/help/aspnet-ajax/grid_getcellbycolumnuniquename.html

    I hope this helps.

    Best wishes,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017