Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
329 views
Hi,

I have a RADTreeView which initiates an AJAX request using the AJAX manager. This will not postback and thus not execute the Page_Load event handler, correct?

How can I identify then, when the page is not being posted back to the server but an ajax request has been raised by the user clicking an item in the treeview?

Thanks
Carl
Top achievements
Rank 1
 answered on 03 Dec 2009
4 answers
292 views
I'm trying to shrink the ToolBar height to match the height of my button images (*.GIF files). The RadToolBar Height property is buggy and doesn't work properly. My buttons are only 9 pixels high so I should be able to shrink the ToolBar height by about 30%. I have tried all the CSS/Style examples on the forums and none of them work correctly.

 I want to shrink the height to the minimum possible given my 9 pixel high button images. I do not want to apply this height shrinking to all tool bars on the page. Only some of them. I want to leave the rest of the tool bars at the stock height. I'm running Visual Studio 2008 SP1 with Telerik 2009 Q3, IE8 and Firefox. I'm currently using the Office 2007 Skin but it would be nice if the shrinking solution worked with all skins without modification.

Here is my test page. I have attached the button GIF files.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TelerikWebForm.aspx.cs" Inherits="TelerikWebForm" %> 
 
<!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>  
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
    <div> 
        <br/><br/><br/> 
        <telerik:RadToolBar ID="rtbRecNavCtl" Runat="server">  
            <Items> 
                <telerik:RadToolBarButton runat="server"   
                    ImageUrl="RecNavFirst.gif" CausesValidation="False" Value="F">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server"   
                    ImageUrl="RecNavPrev.gif" CausesValidation="False" Value="P">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server"   
                    ImageUrl="RecNavNext.gif" CausesValidation="False" Value="N">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server"   
                    ImageUrl="RecNavLast.gif" CausesValidation="False" Value="L">  
                </telerik:RadToolBarButton> 
            </Items> 
        </telerik:RadToolBar> 
        <br/><br/><br/> 
    </div> 
    </form> 
</body> 
</html> 

Thank You,
Greg
Greg
Top achievements
Rank 1
 answered on 02 Dec 2009
2 answers
127 views
protected void Page_Load(object sender, EventArgs e)
        {
             RadToolBarItem itemToCheck = toolbarNav.FindItemByValue("Trucks");
              itemToCheck.Checked = false;
        }

Checked is not there. Why isn't it there? Is there something else I should be using?
Boone
Top achievements
Rank 2
 answered on 02 Dec 2009
2 answers
177 views
Hi all,

I have added node templates using the following code:

<NodeTemplate> 
                <img alt="node type" src="/Media/help_16.png" class='nodeClass<%# Eval("NodeTypeId") %>' /> 
                <asp:Label ID="text" runat="server"><%# Eval("Title") %></asp:Label> 
            </NodeTemplate> 

this works fine on all of my nodes when they are loaded remotely, however when i want to add a new node on the client-side using something like this:

currentNode.get_nodes().add(newNode); 

it will add the node, but it will ignore the template.

is this a bug, or am i missing something?

currentNode doesn't have access to the controls collection that you have when you add a node server side, nor can i find a way to add a template when adding a node to the currentNode.get_nodes() array in javascript.

any thoughts would be greatly appreciated.

thanks

Nick

nick b-w
Top achievements
Rank 1
 answered on 02 Dec 2009
3 answers
69 views
Hi.

I can remove title of dock and continue move this by dockzone using the mouse ?

Thank you
Rafael
Top achievements
Rank 1
 answered on 02 Dec 2009
1 answer
177 views
Hi

I'm trying to make a tab with MultiPage control invisible in runtime.
I wrote the following code:

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0">  
    <Tabs> 
        <telerik:RadTab Text="First Tab" Value="First"/>  
        <telerik:RadTab Text="Second Tab" Value="Second"/>  
        <telerik:RadTab Text="Third Tab" Value="Third"/>  
    </Tabs> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
    <telerik:RadPageView ID="First" runat="server">  
        <asp:Label ID="Label1" runat="server" Text="First"/>  
    </telerik:RadPageView> 
    <telerik:RadPageView ID="Second" runat="server">  
        <asp:Label ID="Label2" runat="server" Text="Second"/>  
    </telerik:RadPageView> 
    <telerik:RadPageView ID="Third" runat="server">  
        <asp:Label ID="Label3" runat="server" Text="Third"/>  
    </telerik:RadPageView> 
</telerik:RadMultiPage> 
 

I'm using this code in the page load to hide the second tab:
var tab=RadTabStrip1.Tabs.FindTabByValue("Second");  
tab.Visible = false; 

When I open the page and switch to the third tab I see the content of the second tab.
I also tried setting the RadPageView as invisible , but then the third tab shows an empty page.

Any ideas?
Schlurk
Top achievements
Rank 2
 answered on 02 Dec 2009
2 answers
400 views
Hello,

is there any specific reason why Appointment object does have underlying DataItem null when accessed in AppontmentClick event? I'd like to use redirect to external edit form (Scheduler one) when appointment is clicked but before redirection I need to read some properties of my object that is mapped to Appointment.

Thanks,

Antonin

towpse
Top achievements
Rank 2
 answered on 02 Dec 2009
1 answer
101 views
I have a structure, like a file system, that I want to display using the nesting features of a RadGrid.  Can I make it so that it will recursively nest these items, to an unlimited depth?

In reality, the depth will probably not be more than 5, but I don't want to declaratively setup 5 levels of nesting.  Is there a solution for this?
Schlurk
Top achievements
Rank 2
 answered on 02 Dec 2009
4 answers
475 views
Hi all,

I have a grid that allows multiple row selection however it does not allow certain rows to be selected with others.  Therefore, I would like to hide the checkbox in the header since I never permit to select all rows.

In addition, how can I check on the client side that a certain row is not selected when other rows are already selected?

Thanks,
Avi
Amber
Top achievements
Rank 1
 answered on 02 Dec 2009
3 answers
339 views
Hi,
I have got many ajax settings to define and my page is heavy to render.
So I decide to add settings dynamically. The problem is i need to know ajax settings from Page_Load.
To resolve that, I added UpdatedControls in a hidden field from javascript and I start an ajaxRequest. During Page_Load on server, I retrieve UpdatedControls from hidden field and I build my ajax settings (my Initiator is RadAjaxManager1 to manage ResponseEnd).
My Page_Load set settings normaly but I always get the error : 
Execution error Microsoft JScript: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'dnn_ctrxxx_tvNodesPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.
All my UpdatedControls are always visible ; I don't understand because if I mention these UpdatedControls directly from HTML tags

<UpdatedControls>, it works well !

This is the parts of codes written to accomplish the mechanism :

function OnClientNodeClicked(sender, args)  
{  
    $get("<% = hdAjaxSettings.ClientID %>").value   
    = "tvNodes,rcmClipboard_Document_Permissions,rcmClipboard_Node_Permissions";  
    $find("<%=RadAjaxManager1.ClientID%>").ajaxRequest('Node_Clicked');  
}  
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnResponseEnd="OnResponseEnd">  
   <AjaxSettings> 
       <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
           <UpdatedControls> 
           </UpdatedControls> 
       </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<Telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" /> 
 
<asp:HiddenField ID="hdAjaxSettings" runat="server" /> 
 
            If Not Page.IsPostBack Then 
            Else 
                Dim hdAjaxSettingIDs As String = hdAjaxSettings.Value  
                If Not hdAjaxSettingIDs = String.Empty Then 
                    For Each ID As String In hdAjaxSettingIDs.Split(",")  
                        Dim UpdatedControl As New AjaxUpdatedControl(ID, "LoadingPanel1")  
                        RadAjaxManager1.AjaxSettings(0).UpdatedControls.Add(UpdatedControl)  
                    Next 
                End If 
            End If 
 

Thank you for help !
Pavlina
Telerik team
 answered on 02 Dec 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?