Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
I am using RadTreeView control to render a tree as a row in a table. For some reason I can only see the root node (topmost) and not the children nodes. A view source on the page does show me that the full tree structure exsists, just that its not visible on the page.
 
Is there a known issue in using RadTreeView control in a table? Are there any workaround this issue? Any help would be much appreciated.

Regards,
A
Atanas Korchev
Telerik team
 answered on 12 Feb 2008
1 answer
170 views
Prior to Prometheus I would use the loading panel and on the request it would cover the entire area until it returned.  For some reason now with Prometheus, I use it to Ajaxify a RadGrid and sometimes (most actually) the grid will return and the loading gif sits there for a little longer.  The desired effect would be to have the gif conceal the entire grid until it returns.

Any ideas?
Pavel
Telerik team
 answered on 12 Feb 2008
1 answer
284 views
I'm not sure if this post should be under here or under the Prometheus RAD Ajax. We have a Prometheus TreeView with and Prometheus Ajax Manager that is handling all of its postbacks. In the TreeView, there are a considerable number of nodes. Only the first two levels are "visible" and the rest are hidden until the node expanded. At that point, the control postbacks through the ajax manager and the nodes under the node that was expanded are set to visible and then the expand and collapsing is set to be client side so it doesn't need to go to the server anymore.

A user is able to right click on a node and then add a level through the context menu. The user can then right click the new node and choose to edit the text of the node that was added. The issue we are having as that during this process, there are postbacks through the ajax manager. They are able to edit the node, but it appears that after the selection changes and it is posting back the name change, we sometimes get an "Invalid JSON Primitive" popup box. It doesn't always happen, and happens during different postbacks as well, but this is a common set of steps that people take. As soon as a person performs an action that does a true postback that doesn't go through the Ajax manager, the "Invalid JSON Primitive" shows up in the browser window.

So, I'm guessing this problem is related to the Ajax manager. Is there something that I can do to make it not do this anymore. I have been unable to duplicate it on my computer, but have seen it done on the production server.
Erjan Gavalji
Telerik team
 answered on 12 Feb 2008
1 answer
150 views
Problem: When a RadWindow is added to the document/form using the "open" method it is added as the last element. If any element above is floating relative the dragging and placement is obscure.

Solution: Add the element as the first child (or maybe provide an option to do so?).

Fix: I have fixed this by now doing this:
// Override  
Telerik.Web.UI.RadWindow.prototype._addWindowToDocument = function() {  
    var theForm = document.getElementById(this._formID);  
    if (!theForm)  
        theForm = document.forms[0];  
    theForm.insertBefore(this._popupElement, theForm.firstChild);  
}; 
Tervel
Telerik team
 answered on 12 Feb 2008
5 answers
753 views
I remember this being an issue with the classic radEditor, but cannot seem to sort out the fix for Prometheus.

Our stylesheet defines the text size as 11px, which shows up great in the editor... until you add a table.  When you are editing the table itself, the text inside any of the cells is always displayed at 16px.

In the old editor, you could put in a small chunk of CSS to reset the font-size value for the table.  I cannot figure out which classes need to be targeted to do this in the new version, though.  Any guidance?

Preferrably, this would be fixed in some newer version...
Joel
Martin
Telerik team
 answered on 12 Feb 2008
1 answer
137 views
I tried the code:
function pasteTextInEditor(text)
{
    var editor = $find("<%=RadEditor1.ClientID%>");
    
editor.pasteHtml(text);
}

It seems that $Find and .PasteHtml doesn't work. 
Anybody know the solution for this?
Rumen
Telerik team
 answered on 12 Feb 2008
6 answers
258 views
Having trouble with the NavigateURL path resolution.... I'm using prometheus RadMenu Trial version: Version=2007.3.1328.35

I've built a menu with NavigateURL parameters to aspx pages within my root web project. The menu is housed inside a user control which is loaded inside my master page. The menu items are built dynamically from a datatable. Basically, only certain pages can be run by any given user based on their profile. So I fill a datatable with all the allowed "Menu Items". The Text value and NavigateURL value are bound at runtime.

The problem: Since RadMenu is derived from System.Web.UI.Control it implements the TemplateSourceDirectory property automatically when a NavigateURL property is set. Again this is at runtime not design time. Since the menu is inside a user control the relative path begins at the user control solution folder (e.g. /UserControls). As a result when the menu items are bound they are given the relative path of /UserControls then appended to it the NavigateURL. 

I need some help in overriding the TemplateSourceDirectory so all the relative paths point to the root. (e.g.
/ )?

Right now the menu items have a relative path of (
http://localhost:3534/UserControls/*.aspx)
I want them to have a relative path of
(http://localhost:3534/*.aspx)

Final note: Any solution must be done at runtime so the menu is dynamic based on the users profiile. HELP!!!! By the way - We have a PO in the works to purchase the full suite of Telerik for our dev team (5 licenses). Your immediate help will assist me in the go no go descision for the purchase.

Jay Ashbaugh
Jay
Top achievements
Rank 1
 answered on 11 Feb 2008
1 answer
148 views
Using the Table Wizard - can I set the css for the row & column box selections?  For example, using the Default2006 skin, I'd like to set the row/col selection boxes with a different color...say something like the orange used in the Mac skin.

Thanks,

Jim
Rumen
Telerik team
 answered on 11 Feb 2008
2 answers
224 views
I'm getting close on this, but I just can't seem to make the final step.

I have a label outside my grid that I want to populate with the number of rows in the grid via client-side scripting.

I have my ClientSettings defined with:

<Selecting AllowRowSelect="true" /> 
<ClientEvents onGridCreated="GridCreated" /> 

I have a JavaScript with the following:

function GridCreated(sender, eventArgs)  
{  
    var label = document.getElementById('ctl100_MainContent_gridCount');  
    var grid = sender.get_masterTableView();  
    label.innerHTML = grid.get_pageCount();  
} 

The reason I have get_pageCount() in there was just to make sure I could populate the label. What I want to put in that label is the number of rows in the grid.

I found previous examples of people using Rows.length or MasterTableView.Rows.length, but these throw an error. I think they may have been for the non-Promethius version of the grid.

Can anyone point me in the right direction to get this number? Can I loop through the grid rows somehow to count them or is there any property I can access that will give me what I'm looking for? I need this to be client side so that I can update the row count when a record is added or deleted. Thanks.
Philip
Top achievements
Rank 1
 answered on 11 Feb 2008
1 answer
130 views
I've looked in the 'My Purchases' area of Client.Net but I don't see it. I need to use Prometheus with TreeView so I can access server side events while using ServerSideCallBack:

http://www.telerik.com/community/forums/thread/b311D-ggkcc.aspx

I've managed to get a TreeView to load on demand and store the state as per this guide:

http://www.telerik.com/help/aspnet/treeview/tree_store_expanded_callback.html

The problem is that I need to select nodes with checkboxes and use a button server control to process the selections. I can't get access to the selected node using this method and it seems like Prometheus will allow this.
Simon
Telerik team
 answered on 11 Feb 2008
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?