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

[Solved] telerik.webcontrols.buttontype

7 Answers 155 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
preeti
Top achievements
Rank 1
preeti asked on 18 Apr 2008, 02:11 AM
I got this error while running the application,
Object of type system.string can't converted into telerik.webcontrols.buttontype

Please help me out by giving sample code of button control of telerik.

How to use telerik button control, help me out.


Thanks, 

7 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 18 Apr 2008, 09:00 AM
Hi there,

We are not sure that we correctly understand which control you mean? Could you please open a new support ticket and send us a simple running project illustrating the problem?

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
preeti
Top achievements
Rank 1
answered on 18 Apr 2008, 03:45 PM
HI,

Protected Sub btn1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn1Click

Response.Redirect(

"default.aspx?id=" & Combobox1.SelectedValue)

End Sub

when i compile this code it redirests to next page where i used telerik controls.

when i give run command , it gives me the error

OBJECT OF TYPE SYSTEM.STRING CANNOT BE CONVERTED INTO TELERIK.WEBCONTROLS.BUTTONTYPE

 

Server Error in TEST Application.

Object of type 'System.String' cannot be converted to type 'Telerik.WebControls.ButtonType'.

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: Object of type 'System.String' cannot be converted to type 'Telerik.WebControls.ButtonType'.

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:

[ArgumentException: Object of type 'System.String' cannot be converted to type 'Telerik.WebControls.ButtonType'.]
   System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr) +786
   System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig) +199
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +336
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
   System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +96
   System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) +24
   Telerik.WebControls.RadEditor.SetSpellProperty(String propertyName, Object propertyValue) +100
   Telerik.WebControls.RadEditor.CreateSpellChecker() +210
   Telerik.WebControls.RadEditor.OnPreRender(EventArgs e) +83
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

0
Rumen
Telerik team
answered on 21 Apr 2008, 06:57 AM
Hi Preeti,

I am aware of such a problem and it appears when the project is using incompatible versions of RadEditor and RadSpell. For example version 3.x of RadSpell will work only with RadEditor 7.0 and above.

Please, make sure that you are using
RadEditor and RadSpell from the same RadControls or RadEditor installation.

If you are unable to solve the problem, please send a sample running project that demonstrates the problem. We will examine it and try to provide a solution.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
preeti
Top achievements
Rank 1
answered on 22 Apr 2008, 02:20 PM
Hi,
     Thank you so much for providing such a wonderful information regarding my error. Yes I am using radeditor and rad spell control. If i will not be able to aolve them I will send message again.

Thanks once again. I really appreciate your efforts.
0
preeti
Top achievements
Rank 1
answered on 01 May 2008, 04:19 PM
Hi,
Can you plz tell me which version of radspell I should use with radeditor 6.x version?

Thanks,
0
Rumen
Telerik team
answered on 02 May 2008, 06:58 AM
Hi Preeti,

You should always use the editor and spellchecker from the same editor's installation. For example if you have version 6.6.3 of RadEditor then you need to use it with version 2.9.3 of RadSpell.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
preeti
Top achievements
Rank 1
answered on 02 May 2008, 02:33 PM


Thank you so much.

Preeti
Tags
ComboBox
Asked by
preeti
Top achievements
Rank 1
Answers by
Rosi
Telerik team
preeti
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or