Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
240 views

I've spent some time trying to bind a dataset to a treeview where there are three tables each with a different set of columns.

Three tables; Customer, Order and LineItem

Customer [CustomerId, Name]
Order [OrderId, CustomerId, OrderReference]
LineItem [LineItemId, OrderId, ProductName, Quantity]

The theory was... Create a Dataset with apporpriate relations and bind it server side. However it doesn't seem to work - I only can see the top level and if as I specify the DataMember attribute, It doesn't even use the name property to set the text.

Any help appreciated. Is the only solution to create the nodes server side programatically and add them to the tree?

 

 

<telerik:RadTreeView ID="treeCustomer" runat="server">

 

 

 

<DataBindings>

 

 

 

<telerik:RadTreeNodeBinding Depth="0" TextField="Name" ValueField="CustomerId" DataMember="Customer" />

 

 

 

<telerik:RadTreeNodeBinding Depth="1" TextField="OrderReference" ValueField="OrderId" DataMember="Order" />

 

 

 

<telerik:RadTreeNodeBinding Depth="2" TextField="ProductName" ValueField="LineItemId" DataMember="LineItem" />

 

 

 

</DataBindings>

 

 

 

</telerik:RadTreeView>

 

Nikolay Tsenkov
Telerik team
 answered on 04 Jun 2010
1 answer
112 views
Hi All

I have the google filtering in the grid working as per link below. I am using usercontrols loaded view ajax as per below.
Now I have noticed with enableviewstate= false, sorting paging all work, but when I page I get two calls to code to get records from the database.

If i turn viewstate on for sorting the column name etc dispears but I only get one call to the database code.

This is a screen that clients use a lot and the extra call to the database slows things down a lot

http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx
http://www.telerik.com/support/kb/aspnet-ajax/grid/google-suggest-style-filtering-in-radgrid.aspx
Yavor
Telerik team
 answered on 04 Jun 2010
2 answers
274 views
Hi,
I'm trying to implement a custom table editor and as part of this i would like the tables content not to be editable in the editor.
I would also like the content of the editor to have a doctype.
Below is a small code sample, the problem I am having is that is is still possible to put the cursor inside the table and edit the content.
Any help would be greatly appreciated.
thanks

   <telerik:RadScriptManager ID="ScriptManager1" runat="server" /> 
   <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="MinimalSetOfTools" Height="400px"> 
      <ContextMenus> 
         <telerik:EditorContextMenu TagName="TABLE"> 
            <telerik:EditorTool Name="EditTable" Text="Edit" /> 
         </telerik:EditorContextMenu> 
         <telerik:EditorContextMenu TagName="TH"> 
            <telerik:EditorTool Name="EditTable" Text="Edit" /> 
         </telerik:EditorContextMenu> 
         <telerik:EditorContextMenu TagName="TR"> 
            <telerik:EditorTool Name="EditTable" Text="Edit" /> 
         </telerik:EditorContextMenu> 
         <telerik:EditorContextMenu TagName="TD"> 
            <telerik:EditorTool Name="EditTable" Text="Edit" /> 
         </telerik:EditorContextMenu> 
      </ContextMenus> 
      <Content> 
         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
         <html xmlns="http://www.w3.org/1999/xhtml" > 
            <body> 
               Right-click on image to see custom menu 
               <img style="marign-left: 6px" width="179px" height="28px" src="../../Img/productLogoLight.gif" /><br/><br/> 
               <p>Right-click here to see the custom Paragraph menu.<br/></p><br/> 
               Right-click on the link to see the default link menu disabled: <a href="/">www.telerik.com</a> 
               <table> 
                  <tr> 
                     <td><div  contentEditable="false" unselectable="on">table content</div></td> 
                  </tr> 
               </table> 
            </body> 
         </html> 
      </Content> 
   </telerik:RadEditor> 

[EDIT: the browser I'm using is IE8]
cheeves
Top achievements
Rank 1
 answered on 04 Jun 2010
0 answers
96 views
Hello,

I have a problem with RadComboBox. The problem is that RadComboBox with the same data is working ok on some clients and very slow on other clients. We tested this problem on 6 different clients with the same browser (firefox 3.6.3) and it was working slow on 3 of 6 clients.
We are using Telerik version of dll: 2009.3.1103.35.

Aleš Leskovar




Aleš
Top achievements
Rank 1
 asked on 04 Jun 2010
1 answer
140 views
Hi all,
            I am binding the tab strip from a SiteMapDatasource. I need to hide the child tabs , is there any way to accomplish this

Regards

Thomson
Princy
Top achievements
Rank 2
 answered on 04 Jun 2010
13 answers
289 views
Hi,

I have successfully deployed the rad editor for MOSS in my MOSS environment. After activating the feature and performing an iisreset, the editor shows up. However, it seems that all the "MOSS" specific toolbar buttons fail to display properly. As I hover over all the buttons, there are 6 that do not show a proper icon. These 6 are: MOSSInsertTable, MOSSInsertTableElement, MOSSDeleteTableElement, MOSSLinkManager, MOSSLeftToRight, and MOSSRightToLeft. Any reason these would not be displaying properly?

-Brian
Frederic Dobon
Top achievements
Rank 1
 answered on 04 Jun 2010
1 answer
106 views
Hi

I've created custom advanced for like in demo. Now, when I'm trying to save appointment, it throws exception, which says that there is another records with the same key exists in Hashtable.  Stacktrace:

[ArgumentException: Element already exists. Key in dictionary: "Subject" New key: "Subject"] System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +7482408 System.Collections.Hashtable.Add(Object key, Object value) +11 System.Collections.Specialized.OrderedDictionary.Add(Object key, Object value) +41 Telerik.Web.UI.RadScheduler.TranslateDataKeysFromTemplate(IDictionary data) +355 Telerik.Web.UI.RadScheduler.InsertAppointmentInline() +100 Telerik.Web.UI.RadScheduler.OnBubbleEvent(Object source, EventArgs args) +506 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



Any ideas?
T. Tsonev
Telerik team
 answered on 04 Jun 2010
1 answer
114 views
Hi All, 
               I am creating a new treeview based on this example http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/whatsnew/defaultcs.aspx 

But i am using a different skin .

When you expand or collapse the node the Page height will be increased . This works fine for FF,Chrome and IE 8 ,But in IE 6 and 7  browsers when collapsing the node the page height does not get reduced.

Can somebody let me know which css element does the trick or is there any property which i need to set

Thanks in Advance
Thomson
Nikolay Tsenkov
Telerik team
 answered on 04 Jun 2010
1 answer
161 views
Hi,
I am using a treeview with some nodes having child nodes and some do not. When I apply any class to parent nodes only nodes having child got changed and nodes without child did not. Also how can I set spacing between parent nodes like cellspacing and cellpadding attributing of table.

Regards,
Lubna.
Nikolay Tsenkov
Telerik team
 answered on 04 Jun 2010
3 answers
136 views
hey guys,
i can add UserControl to and RadDock.
but i wanna fill RadDock from database with HTML code

how i can do that?

tnx for reply

regards..
farshad
Pero
Telerik team
 answered on 04 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?