Hello All.
I have the following problem. The following code is not working. Everything that I want is to add RadButton control to FooterTemplate of the Calendar in RadDatePicker.
As far as I know there should not be any problems with adding IScriptControl (web server controls with client side support) to template of any control (if this template is proper instantiated and created).
The error which I received:
Script control 'RadButton1' is not a registered script
control. Script controls must be registered using
RegisterScriptControl() before calling RegisterScriptDescriptors().
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.ArgumentException: Script control 'RadButton1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
Source Error:
Stack Trace:
Please let me know if I can put IScriptControl controls to the Footer Template of the calendar control. And if not, then can you please explain why i can't do such things.
Thank you in advance.
I have the following problem. The following code is not working. Everything that I want is to add RadButton control to FooterTemplate of the Calendar in RadDatePicker.
<
telerik:RadDatePicker
runat
=
"server"
ID
=
"TestPicker"
>
<
Calendar
>
<
FooterTemplate
>
<
telerik:RadButton
runat
=
"server"
ID
=
"RadButton1"
Text
=
"TestButton"
></
telerik:RadButton
>
</
FooterTemplate
>
</
Calendar
>
</
telerik:RadDatePicker
>
As far as I know there should not be any problems with adding IScriptControl (web server controls with client side support) to template of any control (if this template is proper instantiated and created).
The error which I received:
Script control 'RadButton1' is not a registered script
control. Script controls must be registered using
RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.ArgumentException: Script control 'RadButton1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
Stack Trace:
|
Please let me know if I can put IScriptControl controls to the Footer Template of the calendar control. And if not, then can you please explain why i can't do such things.
Thank you in advance.