Developer forum

Forum » Development » Form object

Reply

Hi,




 




is it possible somehow to get and use the Form object needed to insert the Telerik Calendar control. I have tried in diffrent ways of using this.Form.Controls.Add(object), but I get a null referance.




 




How can I access the Form object?




 




Regards




Gunnar


Replies

 
Nicolai Høeg Pedersen
Reply

Where from?


 


If you try it in the frontend its not possible since it does not have a form that you can attach to.


 


If its somewhere in the backend it should be possible.


 


I've made a solution that will enable you to insert a usercontrol (*.ascx) as a template tag in the page. In that way you can have the telerik calendar control as part of the page layout (Not as a module on a paragraph yet).


 


Let me know your mission and I'll see what I can do.

 
Reply
NP wrote:


Where from?




 




If you try it in the frontend its not possible since it does not have a form that you can attach to.




 




If its somewhere in the backend it should be possible.




 




I've made a solution that will enable you to insert a usercontrol (*.ascx) as a template tag in the page. In that way you can have the telerik calendar control as part of the page layout (Not as a module on a paragraph yet).




 




Let me know your mission and I'll see what I can do.





My mission is to insert the Telerik calendar control from a module on a paragraph. I have tried in different ways, and have in some way got it working, but only when AutoPostBack is set to false, if I set AutoPostBack to true. This is by creating a new Page object and Form object, and prerender this page and retrun this to DW output.


 


But as said before, the mission is to insert the calendar control as a module on a paragraph.

 
Reply
 .

 

You must be logged in to post in the forum