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

setting DataFieldID and ParentFIeldID as arabic string

1 Answer 28 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bassem
Top achievements
Rank 1
Bassem asked on 24 Apr 2014, 08:37 AM
i'm having an issue setting up those two parameters when the key coming from the database is arabic
Conversion failed when converting the nvarchar value 'ج' to data type int
this error occurred, can anyone please tell me what the best way to make my radtreeview work ?

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 29 Apr 2014, 07:19 AM
Hello,

The problem you are facing is that table field in your data base where you store the parent id value should be int type instead of nvarchar. The nvarchar is string representation and this character could be cast to int type. My suggestion is to to use int type column for the RadTreeNode id and parent values.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Bassem
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or