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

Problem with opening RadWindow when the Grid is in Edit mode using WebUserControl as EditFormType

2 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 21 Nov 2008, 04:03 AM
Hi everyone,

I am wondering if anyone have the same problem as mine...

I have a Grid and set the EditFormSettings to use WebUserControl as its EditFormType. In the user controls ascx file I have a button (or a hyperlink) which opens a radwindow to allow user to select something from the window then assign the value back to a label defined in the user control.

However when the row is in edit mode, it seems ignoring my javascript in the ascx file and my java script functions (used to open the window and handle the client callback) become undefined (Internet Explorer says Object expected).

Does anyone have any ideas?? Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Nov 2008, 07:15 AM
Hello Dennis,

If the grid is ajaxified you can user RadScriptBlock to wrap your JavaScript  blocks in the UserControl. RadAjaxManager will find and register these scripts automatically.

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dennis
Top achievements
Rank 1
answered on 23 Nov 2008, 10:29 PM
Thanks Vlad,

No wonder it did not work before as I used the RadCodeBlock not the RedScriptBlock. Thanks for your quick reply and I have also figured it out with another solution as well. :)
Tags
Grid
Asked by
Dennis
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Dennis
Top achievements
Rank 1
Share this question
or