Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
181 views
Hi,

I am trying to display a RadTreeView (build 2008.3.1314.20) in a modal window in Google Chrome (build 2.0.172.33), but the treeview doesn't appear to load. Sample code below (code tested and working in IE7/8, FF3, Safari 4):

Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
     
    <script type="text/javascript"
        //<![CDATA[
        function openModalTree()
        {
            window.showModalDialog("/TreeView.aspx", "height:400px; width:400px; center:yes;");
            return false;
        }
        function openModelessTree()
        {
            window.open("/TreeView.aspx", "height:400px; width:400px; center:yes;");
            return false;
        }
        //]]> 
    </script> 
     
     
    <asp:ScriptManager ID="sm1" runat="server" /> 
     
    <asp:Button ID="btnModal" runat="server" Text="View in Modal" OnClientClick="return openModalTree();" /><br /> 
    <asp:Button ID="btnNormal" runat="server" Text="View in Modeless" OnClientClick="return openModelessTree();" /> 
     
    </form> 
</body> 
</html> 
 

TreeView.aspx:
<%@ Page Language="C#" AutoEventWireup="true" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %> 
 
<script runat="server"
    const int MAX_DEPTH = 2
    const int NODES_PER_LEVEL = 10
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        BindNodes(null, NODES_PER_LEVEL, MAX_DEPTH); 
    } 
 
    private void BindNodes(RadTreeNode parentNode, int count, int depth) 
    { 
        for (int i = 0; i < count; i++) 
        { 
            var node = new RadTreeNode("This is node " + i + " at depth " + (MAX_DEPTH - depth)); 
            if (parentNode != null) 
                parentNode.Nodes.Add(node); 
            else 
                tv1.Nodes.Add(node); 
 
            if (depth > 0) 
                BindNodes(node, count, depth - 1); 
        } 
    } 
</script> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="sm1" runat="server" /> 
        <Telerik:RadTreeView ID="tv1" runat="server" Width="100%" Height="100%" /> 
    </form> 
</body> 
</html> 
 

Atanas Korchev
Telerik team
 answered on 03 Jul 2009
1 answer
188 views
can i customize the event slot in month view to show the count of my events (or something else) . Basically i want the user to see a count of events scheduled for that particular day and also some addition information that i fetch from database. All this in the monthview of the scheduler
Peter
Telerik team
 answered on 03 Jul 2009
1 answer
73 views
Hmm, not sure whether this should go in the RadTreeView forum, RadMenu forum, or RadCalendar forum, but oh well, it's going here :)

I have a RadTreeView with a context menu, in which one item has a popout item that contains a RadCalendar.  This all shows up just fine, but when I go to use the FastNavigation for the calendar, it shows up behind the context menu.  I tried to put a very large z-index on the FastNavigation style, but that didn't work.  Some simple demo code is below.  Any suggestions?

        <telerik:RadTreeView ID="RadTreeView1" runat="server"
            <Nodes> 
                <telerik:RadTreeNode Text="My Node" /> 
            </Nodes> 
            <ContextMenus> 
                <telerik:RadTreeViewContextMenu> 
                    <Items> 
                        <telerik:RadMenuItem Text="Show Calendar"
                            <Items> 
                                <telerik:RadMenuItem> 
                                    <ItemTemplate> 
                                        <telerik:RadCalendar ID="RadCalendar1" runat="server" Font-Names="Arial, Verdana, Tahoma" 
                                            ForeColor="Black" Style="border-color: #ececec"><fas 
                                        </telerik:RadCalendar> 
                                    </ItemTemplate> 
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadTreeViewContextMenu> 
            </ContextMenus> 
        </telerik:RadTreeView> 


Thanks,
Jared
Shinu
Top achievements
Rank 2
 answered on 03 Jul 2009
1 answer
115 views
I'm having 3 splitter/pane related issues.

I have a somewhat complex layout of splitters and panes. I have a typical header, menu, body main layout. Then nested in the body I have another set of panes and splitters which break the form itself up. 3 row, the top and bottom row are split into 2 panes. Each of these is set with an explicit pixel height. The center row has a repeater nested in it. This area grows and shrinks in height based on the size of 
the borowser. The repeater in the middle is rendered as a table, with a header row, no footer row, and a single row for each item in the repeater. I have the header row frozen with style sheet expressions such that the table rolls scroll.

Issue 1:
Table shows up under repeater frozen header. This is a common problem, which is easily fixable when the proper style sheets are put into place. The problem is, the splitters seem to be moving the frozen header around. This leaves a single pixel across the top where the table shows through as it is scrolled underneath. If I mouse over a particular collapse button on the splitter the header row jumps up a pixel into the right place. I'd really like it to be in the right place when the page loads.

Issue 2:
Scrollbar covers part of the Repeater table. When the repeater is rendered in the browser the table is partially obscured by the scroll bar. The header row which is frozen with a style sheet expression shows over the scrollbar. How can I get the scrollbar to not appear over the table, and how can I get the header row under the scrollbar.

Issue 3:
Pane the repeater is in does not extend the full width of the page after a single postback. When the page loads it renders correctly. Resize the browser and the width is corrected. Post back again, and the width is fixed. It only seems to do this after the 1st postback.

Any help on any of these issues is greatly appriciated.

Svetlina Anati
Telerik team
 answered on 03 Jul 2009
1 answer
53 views
Hi There~,

I have a problem, when using RadRotator.
The problem is the following :

There is two ascx that is same ascx in aspx page and the ascx contains RadRotator.
When i click the next button or back button that is working well but the problem is the other RadRotator also working.

How can i help this?

Thanks.
Regards,
patrick.
Fiko
Telerik team
 answered on 03 Jul 2009
3 answers
292 views
Hello -

I am very new to your product. I love the ability to resize an image during upload but is there a way to resize the image with respect to it's DPI? Sometimes the image is the correct size, say 400x600 pix but at 300 or 240 dpi. Is there a way to change this image to say 72dpi greatly reducing the image file size?

Thank you.
Tervel
Telerik team
 answered on 03 Jul 2009
4 answers
246 views
Hi,

I am making a chat app and the DataList of messages is refreshed by a timer that is ajaxed by a RadAjaxManagerProxy

Problem is that because it is a proxy then all the controls on the page are being ajaxed and so the TextBox that the user types into is also refreshing.

So I need to stop the timer refreshing the TextBox somehow but then enable it when the user presses 'send' so that I can clear the TextBox. Does this make any sense?

Is this possible?

Cheers, Jon

 


 

Jon
Top achievements
Rank 1
 answered on 03 Jul 2009
1 answer
111 views
Are there any built in methods to call that would return a list of appointments given a date. The problem is trying to parse the code that gets put into the database for recurring appointments. I don't know the exact format and different variations in order to parse it to determine if there is an appointment on a particular day. I need to be able to get the appointments without a radschedular. Is there any methods to do this. Or can anyone provide the syntax for the recurrance rule that gets put into the database?
Peter
Telerik team
 answered on 03 Jul 2009
5 answers
363 views
We have a RadDatePicker control on a DNN module.   I'm logged in as a user with English as their locale, and all other Telerik controls on the module are localizing fine using meta:resourcekey="KeyName" (meaning they are picking up English text).  The DatePicker control for some reason is picking up Spanish text. There is no resourcekey set on this control. Here is the control declaration:

<

telerik:RadDatePicker ID="EndDatePicker" runat="server" MinDate="" Calendar-ShowRowHeaders="false">
</telerik:RadDatePicker>



So, I have two questions...

1.) Where are the localization files located for the RadDatePicker?  We haven't provided any localized text for this and haven't set the resourcekey attribute, yet it's still picking this up somewhere.

2.) What method SHOULD we be using to localize the RadDatePicker?
-DJ-
Top achievements
Rank 1
 answered on 03 Jul 2009
1 answer
104 views
Hi
       I am using HeaderContextMenu to hiding and unhiding column. But one thing whenever i hide any of column the grid the column should not come to right position.The total view of grid has been collapsed.

Note: I am using scroll bar and set the grid width to 2000px and mastertableview width to 100%, also i  adjust the some column width according to my preference.

Is there any possible way. to get an exact view of Grid when hide/unhide done


 

Regards,
Appu
Dimo
Telerik team
 answered on 03 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?