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

[Solved] Setting values on client side

1 Answer 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 22 Feb 2008, 02:30 AM
When I add or edit a row, I would like to set the values in the textboxes via a javascript on the client side (not only as "default values").

My business case is to enter first an amount and let the javascript calculated the others values.

Is there a way to access the controls and set the values?

Thanks
Eric

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 25 Feb 2008, 03:18 PM
Hello Eric,

Although the functionality you request is not built-in in our web grid, I think that the code snippets/examples from the code library entries linked below can become the basis for your custom implementation:

http://www.telerik.com/community/code-library/submission/b311D-kmbgg.aspx
http://www.telerik.com/community/code-library/submission/b311D-emhkh.aspx
http://www.telerik.com/community/code-library/submission/b311D-egdbd.aspx
http://www.telerik.com/community/code-library/submission/b311D-eetbt.aspx

Those samples demonstrate different approaches about how to reference server controls (column editors) in RadGrid client-side and track the changes made in them.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or