Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
381 views
Greetings,

We are dynamically creating a Menu using RadTreeView control and each node is binded with .aspx page. When a node is clicked, the whole page postbacks and redirects to the assigned .aspx page and the RadTreeView control(Menu) will be recreated. As the page postbacks, the selected node losts its focus and all the nodes are getting collapsed.

As per our requirement, We need to set the focus on the selected node and its parent node to be expanded, even if the page postbacks. Please help us on this.

We tried getting the selected node value on RadTreeView_NodeClick event and this event is not firing consistantly.

FYI, we are binding the RadTreeView control using LINQ on Page_Load event and below is the code for the same.
=======================

rtvMenu.Nodes.Clear();

rtvMenu.DataTextField =

 

"MENU_NAME";

 

 

rtvMenu.DataValueField =

 

"MENU_ID";

 

 

rtvMenu.DataFieldID =

 

"MENU_ID";

 

 

rtvMenu.DataFieldParentID =

 

"PARENT_MENU_ID";

 

 

rtvMenu.DataNavigateUrlField =

 

"LANDING_PAGE";

 

 

rtvMenu.DataSource = v_Menu;

 

rtvMenu.DataBind();

=======================

Nikolay Tsenkov
Telerik team
 answered on 21 Apr 2011
1 answer
60 views
Dear Sir/Madam,

I have to add new appointment for event for all day in java script. Please provide me client side api's. Also please provide me some examples. We are using ASP.NET 3.5 framework.
Please find the attachment for reference.
Nikolay Tsenkov
Telerik team
 answered on 21 Apr 2011
2 answers
144 views
Hello,

My RadSiteMap control is in a DIV and I would like to align it to the right of the DIV:

<div id="col3" style="Width:40%">
 <telerik:RadSiteMap ID="SiteMap1" runat="server" DataTextField="Text" DataNavigateUrlField="NavigateUrl">
 <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" SeparatorText=">" Layout="Flow" />
</telerik:RadSiteMap>
</div>

So, I have tried many overrides without success:

#SiteMap1 .Header, .rsmLevel, .rsmItem, .ContentHolder, .rsmTemplate, .rsmList, .rsmFlow etc
{
    text-align: right;
}
 
So, is there a way to override text-align ?

Thanks in advance.

Pierrick
Pierick Mellerin
Top achievements
Rank 1
 answered on 21 Apr 2011
8 answers
647 views
 Hi,

I am using the timeline view for RadScheduler. By default the scheduler has a fixed height and resource headers height is the total height divided by number of resources(see screen shoots). Is it possible to have the height of the scheduler to auto increase when new resources are added, so that the resources always has a fixed height? And if so how can I accomplish that?



Thank you,
Anders
Anders
Top achievements
Rank 1
 answered on 21 Apr 2011
6 answers
122 views
Surprised i've only just noticed this. But in my master page, i have a conditional CSS statement that loads a different stylesheet if the user is using ie7 or below.

I've noticed that when a postback occurs, this stylesheet is always being loaded. For example, as far as i know ie7 & below don't support things like inline-block, so in my ie7 stylesheet i have all elements taht would be inline-block as inline. I'm doing this in firefox too, yet my ie7 stylesheet is loaded after a postback.

    <!--[if lte IE 7]><link href="stylesheet-ie7.css" rel="stylesheet" type="text/css" /><![endif]-->

Thats my conditional statement.

Very odd behaviour.

Alan T
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
99 views
Hi,
I'm using radrotator. I have a image gallery and i want to show these images when user clicked them. I can do it but when images slides the clicked one not be shown. It waits for sliding stop.
Niko
Telerik team
 answered on 21 Apr 2011
1 answer
131 views
Is there any way to use the RadScheduler with iPhone/iPad's safari browser?

Thanks.

Matt
Helen
Telerik team
 answered on 21 Apr 2011
3 answers
96 views
I"m creating a class that inherits from Appointments to add the fields we require in the project. Do i need to override the Copy and CopyFrom methods?
Peter
Telerik team
 answered on 21 Apr 2011
3 answers
148 views
Any ideas on how to findcontrol a "message" label that is in a "page1" page of a "Multipage1" multipage located in the Edittemplate of a "formview1" form view?
Thanks
Peter
Telerik team
 answered on 21 Apr 2011
1 answer
169 views
Hi,

I'm using a RadMenu tied to a RadSiteMapDataSource.  I'm also using a RadAjaxManger on the MasterPage with ProxyManagers on the content pages.

How do I configure the RadMenu/RadAjaxManager so that I don't get a full postback everytime the user selects a new menu item?

My MasterPage:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="AssetTracker.Master.cs" Inherits="AssetTracker.Site1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <link rel="Stylesheet" href="~/StyleSheets/Stylesheet1.css" type="text/css" media="screen"/>   
    <%--the below stylesheet is to allow telerik elements, such as the radsplitter to occupy 100% of the space--%>
    <style type="text/css"
    html,body,form 
    {       
       height: 100%; 
       margin: 0px; 
       padding: 0px; 
    
    </style>
</head>
<body class="mainBackground">       
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>   
    <div>               
        <telerik:RadSiteMapDataSource ID="RadSiteMapDataSource1" runat="server" SiteMapProvider="XmlSiteMapProvider"
            ShowStartingNode="false"/>
               
        <telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="true" EnableShadows="true"
            DataSourceID="RadSiteMapDataSource1" Width="100%">
        </telerik:RadMenu>
        <div class="miniMenuBar">
            <uc1:FacilitySelection ID="uxMasterPageFacilitySelection" runat="server" />
        </div>
        <div id="fadeoutDiv">
        <asp:Panel runat="server" ID="uxInfoPanel" CssClass="neutralStyle" EnableViewState="false">               
            <asp:Label CssClass="neutralStyle" runat="server" ID="uxInfo" Text=" " EnableViewState="false"></asp:Label>                                 
             
        </asp:Panel>        
        </div>          
        </div>
        <div class="bodyStyle">           
            <asp:ContentPlaceHolder ID="body" runat="server" />
        </div>
         
               <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
           <ajaxsettings>
                
               <telerik:AjaxSetting AjaxControlID="RadMenu1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="body" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
               <telerik:AjaxSetting AjaxControlID="uxInfoPanel">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="uxInfoPanel" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
           </ajaxsettings>
         
        </telerik:RadAjaxManager>
     
    </form>
</body>
</html>

Thanks,

Jason
Peter
Telerik team
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?