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

FormTemplate Binding

4 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kyle Jones
Top achievements
Rank 1
Kyle Jones asked on 25 Aug 2009, 10:31 PM
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



4 Answers, 1 is accepted

Sort by
0
Kyle Jones
Top achievements
Rank 1
answered on 26 Aug 2009, 02:18 PM
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
0
Yavor
Telerik team
answered on 28 Aug 2009, 09:01 AM
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.
0
Kyle Jones
Top achievements
Rank 1
answered on 28 Aug 2009, 02:50 PM
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
0
Yavor
Telerik team
answered on 07 Sep 2009, 06:03 AM
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.
Tags
Grid
Asked by
Kyle Jones
Top achievements
Rank 1
Answers by
Kyle Jones
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or