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

AdvancedFormTemplate to DB?

15 Answers 187 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rubihno
Top achievements
Rank 1
Rubihno asked on 06 Aug 2008, 02:03 PM
I show the example advancedformtemplate, but is maked to xml, if i want to create a advancedformtemplate to db?because i want to keep the default structure and add another control..

The examples existing can't modify a schedulerdefaultform..-> More details: Room DropDown, checkbox user -> ....the are not a user-control to modify a default structure for add new control...there is a solution?

AdvanceformTemplate is good but isn't database...It is a great problem..

Hi

15 Answers, 1 is accepted

Sort by
0
Rubihno
Top achievements
Rank 1
answered on 07 Aug 2008, 11:26 AM
Who help me?
0
T. Tsonev
Telerik team
answered on 07 Aug 2008, 01:23 PM
Hi Rubihno,

I am attaching you the online example, but reworked to use SqlDataSource. I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 07 Aug 2008, 03:33 PM
Thanks!!!!!!!! Now I can add for example a textbox control into a resource Control and insert appointment with a texbox?is correct?
0
Rubihno
Top achievements
Rank 1
answered on 20 Aug 2008, 09:03 AM
I tried this customAdvancedTemplate that works with sqldatasource, but i can insert another control asp.net into this example?, example textbox?

my table example

ID
Subject
Start
End
RecurrenceRule
RecurrenceParentID
Description
Notes  -> textbox
Name   -> textbo
Tel       -> textbox

I would like insert into schedulerdefaultform this textbox and inset into db, is possible?


0
Rubihno
Top achievements
Rank 1
answered on 20 Aug 2008, 09:30 AM
I have insert a textbox -> colum table -> Note
And I have develop the code how a Description textbox
All is correct but when i run..

 DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'Note'. 
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.Web.HttpException: DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'Note'. 
 
Source Error: 
 
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL: 
 
1. Add a "Debug=true" directive at the top of the file that generated the error. Example: 
 
  <%@ Page Language="C#" Debug="true" %> 
 
or: 
 
2) Add the following section to the configuration file of your application: 
 
<configuration> 
   <system.web> 
       <compilation debug="true"/> 
   </system.web> 
</configuration> 
 
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode. 
 
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. 
 

0
Rubihno
Top achievements
Rank 1
answered on 20 Aug 2008, 10:40 AM
Is possible attach my example?i must develop a web application, and i cant' continue..Thanks
0
Paul
Telerik team
answered on 20 Aug 2008, 10:53 AM
Hello Rubihno,

Attachments are not allowed in the forums due to security reasons. Still, if you need to send us a file you can open a support ticket and attach the file(s) to it.

All the best,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 20 Aug 2008, 11:35 AM
Thanks, but what is the problem of code?
0
Peter
Telerik team
answered on 20 Aug 2008, 02:21 PM
Hi Rubihno,

Have you followed closely the steps from this help topic?


Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 21 Aug 2008, 06:11 AM
hi, 

yes
0
Peter
Telerik team
answered on 21 Aug 2008, 04:09 PM
Hello Rubihno,

In that case, can you open a support ticket and send us your project. We will test it locally and try to find what is causing the problem.


Cheers,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 22 Sep 2008, 05:04 PM
Hi,  there is a customadvancedtemplate that works with sqldatasource in VisualBasic. Net language?because my project is in vb language...

I have tried to convert all customAdvancedTemplate  in vb code but there are many error...


0
Peter
Telerik team
answered on 23 Sep 2008, 08:28 AM
Hi Rubihno,

Even though your project is in VB.NET you can still use the advanced form user controls as they are - in C#. There shouldn't be a conflict with this and we recommend that you don't convert them to VB.NET. Attached is a sample project for reference.  

Let us know if you have further questions.

Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rubihno
Top achievements
Rank 1
answered on 23 Sep 2008, 11:38 AM
There are not problem if i use a usercontrol for scheduler in C# and the page programming in vb, but i musto to realize a project in vb and is not normally use two different language, when i realize a document i indicate that the customadvancedform is possibile to use only in vb..

but is impossible to convert the customadvancedtemplate to vb???why?
0
Peter
Telerik team
answered on 23 Sep 2008, 01:26 PM

Certainly, it is possible to convert the C# advanced template user controls to VB.NET. The implementation logic is independent of the programming language you use. For your convenience, I have attached the VB.NET version of the user controls.

Let us know how it goes.


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Rubihno
Top achievements
Rank 1
Answers by
Rubihno
Top achievements
Rank 1
T. Tsonev
Telerik team
Paul
Telerik team
Peter
Telerik team
Share this question
or