Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
98 views
i face aproblem when i try to make tree view bind from object data source
here it is my class

public

class treeViewClass

 {

 

 

#region

Variables

 

 

int _FiledId;

 

 

string _Value;

 

 

int? _ParentId;

 

 

string _FieldText;

 

 

string _FieldURL;

 

 

#endregion

#region

Properties

 

 

public int FiledId

{

 

get { return _FiledId; }

 

set { _FiledId = value; }

 

 }

 

public int? ParentId

 

 {

 

get { return _ParentId; }

 

 

set { _ParentId = value; }

 

 }

 

public string FieldText

 

 {

 

get { return _FieldText; }

 

 

set { _FieldText = value; }

 

 }

 

public string FieldURL

 

 {

 

get { return _FieldURL; }

 

 

set { _FieldURL = value; }

 

 }

 

public string Value

 

 {

 

get { return _Value; }

 

 

set { _Value = value; }

 

 }

 

#endregion

#region

Methods

 

 

public static List<treeViewClass> BuildTree()

{

 

List<treeViewClass> treeList = new List<treeViewClass>();

 

 

treeViewClass tree = new treeViewClass();

tree.FiledId = 1;

tree.ParentId =

null;

 

 tree.FieldText =

"E-Mail Sites";

 

 tree.FieldURL =

"";

 

 tree.Value =

"";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 4;

tree.ParentId = 1;

tree.FieldText =

"Yahoo";

 

 tree.FieldURL =

"http://www.yahoo.com";

 

 tree.Value =

"Yahoo";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 4;

tree.ParentId = 1;

tree.FieldText =

"Google";

 

 tree.FieldURL =

"http://www.Gmail.com";

 

 tree.Value =

"GMail";

 

 treeList.Add(tree);

 

tree =

new treeViewClass();

 

 tree.FiledId = 2;

tree.ParentId =

null;

 

 tree.FieldText =

"Search Sites";

 

 tree.FieldURL =

"";

 

 tree.Value =

"";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 5;

tree.ParentId = 2;

tree.FieldText =

"Google";

 

 tree.FieldURL =

"http://www.Google.com";

 

 tree.Value =

"GMail";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 6;

tree.ParentId = 2;

tree.FieldText =

"Ask It";

 

 tree.FieldURL =

"http://www.askit.com";

 

 tree.Value =

"AskiIt";

 

 treeList.Add(tree);

tree.FiledId = 3;

tree.ParentId =

null;

 

 tree.FieldText =

"Funny Sites";

 

 tree.FieldURL =

"";

 

 tree.Value =

"";

 

 tree =

new treeViewClass();

 

 tree.FiledId = 7;

tree.ParentId = 3;

tree.FieldText =

"Mini Clip";

 

 tree.FieldURL =

"http://www.MINICLIP.com";

 

 tree.Value =

"MINI";

 

 treeList.Add(tree);

tree =

new treeViewClass();

 

 tree.FiledId = 8;

tree.ParentId = 3;

tree.FieldText =

"Yalla Kora";

 

 tree.FieldURL =

"http://www.YallaKora.com";

 

 tree.Value =

"Kora";

 

 treeList.Add(tree);

 

 

return treeList;

 

}

 

#endregion

 

}

when i use object data source Like The Following  

 

 

 

<telerik:RadTreeView ID="RadTreeView1" Runat="server" DataFieldID="FiledId" 

 

DataFieldParentID="ParentId" DataNavigateUrlField="FieldURL"

 

 

DataSourceID="ObjectDataSource1" DataTextField="FieldText"

 

 

DataValueField="Value" Skin="Web20">

 

 <

CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>

 

 <

ExpandAnimation Duration="100"></ExpandAnimation>

 

 

</telerik:RadTreeView>
 

 

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"  

 

SelectMethod="BuildTree" TypeName="treeViewClass"></asp:ObjectDataSource>

the tree not appear in the write way Like This

all appear like Parent Node

Please Help me
Or i will become acrazy MAN

 

 

 

 

Veselin Vasilev
Telerik team
 answered on 02 Apr 2009
1 answer
81 views
I have a SharePoint Server with three webapplications on it

team site
mysite
and
intranet site

I have been using the RadEditor on all three for months.

Suddenly one of the sites has stopped working. Pages pull up the editor and it is blank, despite actually having page content in view (non-editting) mode.

When I try to click on an area that should be a RadEditor it does not get the normal editor controls across the top.

Nor can I use the html or preview modes, clicking them does nothing. I'm not getting any JavaScript errors or anything.

Also the other sites still work fine.

Running 2008.2.826.20

Any help would be nice. Even if it is to tell me I need some additional info for any help. Just tell me where to look.
Rumen
Telerik team
 answered on 02 Apr 2009
3 answers
119 views
Hi

At the moment the FormDecorator isn't styling DropDown controls. Is this planned for the future? Having all controls in the same style/skin would be great and the DropDownList is the last "ugly" one left. We don't want to replace all our DropDownLists with RadComboBox in fear of a performance impact. 

Or what would you recommend?

Thanks beforehand!
Georgi Tunev
Telerik team
 answered on 02 Apr 2009
3 answers
151 views
Hello,
        I have RadGrid control where I am using a user control for Add/Update operation of the grid. The problem is that when I am using a Radcombo box in my user control it doesn't display properly(i.e. the height of the combo box increase and 2 arrow images are visible instead of one, even the scroll bar doesn't appear properly). This issue occurs only when the radcombo is used inside the usercontrol and it works fine on all other pages in my application.

Please help.

Thanks,
Rajiv
Simon
Telerik team
 answered on 02 Apr 2009
1 answer
100 views
Hi,
  I have a dataset which gives the list of id's and parent id's I am unable to set the FilterExpression
as follows, do let me know if there is some other syntax to be used.
string ID = 2839;
selfReferentialGrid.MasterTableView.FilterExpression = @"PrntID=" + ID;

Error is thrown on selfReferentialGrid.DataBind().

Would there be any problem if PrntID has null values.

Thanks and regards,
Giridhar.
Yavor
Telerik team
 answered on 02 Apr 2009
4 answers
125 views
When I load a TabStrip with the first PageView, all the controls are decorated fine. Only when I try to navigate to another PageView, the rounded corners of my TextBoxes are removed. Borders, however, remain intact.

Any ideas as to why this may happen?
Georgi Tunev
Telerik team
 answered on 02 Apr 2009
1 answer
97 views
I have a question regarding the All RadControls Q3 2008 Skins Are Now Compatible with the Q1 2009 Release  article.  We have a site that uses several different skins so I would need to follow the "Direct skin registration" portion of the article.  However, on one page we're using the RadSkinManager control and that control doesn't support the EnableEmbeddedSkins and EnableEmbeddedBaseStyleSheet properties.  Does this mean I'll need to go through every control individually on that page to apply the settings which will essentially render the RadSkinManager useless?
Dimo
Telerik team
 answered on 02 Apr 2009
3 answers
96 views
I have just installed IE8RC1 and the dateTimePicker control always renders at 100% width unless I select compatability mode or use another browser like FireFox.
Pavel
Telerik team
 answered on 02 Apr 2009
1 answer
179 views
I've taken production code that is running in IE 7 and tried it in ie 8 and got the errors I've copied below.  Have these been seen before and are there generic fixes that have to be made for ie8?  I'm using q1 2009 code.

Thank You
Mark Brown


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)

Timestamp: Tue, 31 Mar 2009 15:46:14 UTC

 

 

Message: Object doesn't support this property or method

Line: 43

Char: 1

Code: 0

URI: http://localhost:54381/WrenLicense/ScriptResource.axd?d=KGW3jeJ5aWNPv44BIG2qS6tAwMpxZ0hwEM--9hPvrZqjWHIKr1AEaCwpUxsaNCa9Xny9L_uvdL9XhNmXBzoQDutyZhNgEhnpKF_qoCz2M5A1&t=ffffffffe937dfa6

 

 

Message: Sys.ArgumentException:  does not derive from Sys.Component.

Parameter name: type

Line: 2707

Char: 9

Code: 0

URI: http://localhost:54381/WrenLicense/ScriptResource.axd?d=fjFTbuYeDhVNJ6QG7GFPICZpQYEhwWLAK_1a1JKPHVTNYcGYW_6GbkkiF8CYCL-_biXjC0yhUTAcfyWSh92dtetk1WyzU6V3MrLbeDSS8Vw1&t=ffffffffd60645ec

Atanas Korchev
Telerik team
 answered on 02 Apr 2009
2 answers
316 views
I got a button, when button clicked

 

protected void btnModify_Click(object sender, ImageClickEventArgs e)

 

{

RadGrid2.DataSource = GetDataTable(

"SELECT Users.Personelid, Users.name, Users.surname FROM Users WHERE");

 

RadGrid2.DataBind();

}

I do the above operation but Radgrid do not accept new datasource and change its columns acording to it. How can I assign a new datasource and bind it?All help will be appreciated. By the way I dont want to use need_datasource event, at first time gridview has to show nothing but after user make some operation and click the button it has to populate on demand and show the result of query

noyan
Top achievements
Rank 1
 answered on 02 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?