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

Adding Color Picker

4 Answers 104 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 20 Feb 2012, 10:57 AM
hi

I am using the default advanced Insert form and i have 2 custom attributes. Hyperlink and Color

I would like to add a radcolorpicker to the Color attribute. How should i go about it?

I have attach a screenshot for you reference. Thanks

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 20 Feb 2012, 05:43 PM
Hello,

 
This functionality is not supported in the default insert form of RadScheduler. I recommend you to refer to the Advanced Form Template demo where a similar functionality is implemented.

Hope this will be helpful.

Regards,

Plamen Zdravkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
L
Top achievements
Rank 1
answered on 21 Feb 2012, 11:12 AM
hi

Thanks for the link.

I have an issue here with the data type.
I download a sample from http://www.telerik.com/community/code-library/aspnet-ajax/scheduler/customize-the-advanced-form-with-the-advanced-template-user-controls.aspx VB.net version

One of the resource is teacherID which is an int.

I used that sample and i change the TeacherID in the sample DB provided to uniqueidentifier.

And i have also change to insert and update parameters to  <asp:Parameter Name="TeacherID" DBType="Guid" />

Somehow i still get the conversion error: uniqueidentifier to int not allowed.

How should i solved this? Thanks a lot and sorry for any inconvenience caused.
0
L
Top achievements
Rank 1
answered on 21 Feb 2012, 02:05 PM
hi

I know what is the reason behind conversion error. I need to change the TeacherID in Class table to Uniqueidentifie.

But now i am not able to perform an advance insert due to this error

Selection out of range
Parameter name: value


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.ArgumentOutOfRangeException: Selection out of range
Parameter name: value

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:

[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +299
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +293
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +659
   Telerik.Web.UI.RadComboBox.PerformSelect() +21
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadComboBox.DataBind() +38
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +888
   Telerik.Web.UI.RadScheduler.CreateChildControls() +10
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

0
Ivana
Telerik team
answered on 24 Feb 2012, 09:30 AM
Hi,

Make sure you have changed the type of TeacherID in all data tables which have a TeacherID field? If this is not the problem, could you make a video of how exactly this error is reproduced. You can use the Jing tool, it is free and can be downloaded from here: http://www.techsmith.com/jing.html.

All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
L
Top achievements
Rank 1
Answers by
Plamen
Telerik team
L
Top achievements
Rank 1
Ivana
Telerik team
Share this question
or