Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
288 views
Hi -

Is there a way to have the active page highlighted in the menu?

Here is my code:
<div style="float: left; margin-top: 13px; margin-right: 80px;">  
    <telerik:RadMenu ID="RadMenu1" runat="server" Skin="Vista"   
      style="z-index: 1; left: 126px; top: 91px; position: absolute;">  
      <Items> 
        <telerik:RadMenuItem Text="Search" runat="server" NavigateUrl="Search.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="MOU" runat="server" NavigateUrl="MOU.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="Contract" runat="server" NavigateUrl="Contract.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="SOI" runat="server" NavigateUrl="SOI.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="Create" runat="server" NavigateUrl="Create.aspx">  
        </telerik:RadMenuItem> 
      </Items> 
    </telerik:RadMenu> 
  </div> 

If I am on the Contract page, I would like for the menu item to be highlighted (or something to show the page is active, in the menu).  Is this possible with a property?

Thanks!
wen
Wendy Hunt
Top achievements
Rank 2
 answered on 06 Jan 2010
2 answers
130 views

Hello,

in this demo,  i can use column swaaping option via client side,

http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientsideevents/defaultcs.aspx

but i need save user column orders in databasei because when user enter the sytem later, user should see own grid template

my problem is i cant get column cell Index on server side

Java Script Function  :

function ColumnMouseOver(sender, eventArgs) {

 

 

var text = "";

 

text +=

" Display Order : ";

 

text +=

", Index: " + eventArgs.get_gridColumn().get_element().cellIndex;

 

document.getElementById(

"OutPut").innerHTML = text;

 

}

after the columns swapping events, i need all columns order Index  for saving data Base,
but i could'nt find "eventArgs.get_gridColumn().get_element().cellIndex;"  in server side.

all swaipping process running or client side, i think server side cant undesrtand swapping column orders.

and there is one button below the grid :

 

 

foreach (GridColumn columns in this.gridOrderColumn.Columns)

 

{

userTemplateDetail =

new UserTemplateDetail();

 

userTemplateDetail.UserTemplateId = userTemplateID;

userTemplateDetail.CurrentStateId = -1;

userTemplateDetail.OrderIndex = columns.OrderIndex ?? //  <--- i cant get CellIndex -- order index doesnt change when swapping

dbUserTemplateDetail.add(userTemplateDetail);

}

i can describe my point, and i need to help.

Thanks

Hus Damen
Top achievements
Rank 1
 answered on 06 Jan 2010
2 answers
212 views
Hi there,

  I'm using Rotator control to display image gallery with RotatarType="Button". On button click I want to display next image.
All the images are of same size but when i click on Next button i see only half of the image displayed. I want to show 1 image on each
click. Is it possible using Rotator control ?

Here are my code.

                    <telerik:RadRotator ID="RadRotator1" runat="server" Width="400" Height="300" ItemWidth="400" ItemHeight="300"
                        RotatorType="Buttons">
                        <ItemTemplate>
                            <div class="itemTemplate">
                                <img src="<%# DataBinder.Eval(Container.DataItem, "Image") %>"
                                     alt="<%# DataBinder.Eval(Container.DataItem, "Name") %>" />
                            </div>
                        </ItemTemplate>
                    </telerik:RadRotator>

        Dim rotatorData As New DataTable()
        rotatorData.Columns.Add("Image")
        rotatorData.Columns.Add("Name")
        For Each tempInfo As fileInfo In imagesArray
            rotatorData.Rows.Add(New String() {tempInfo.filename, tempInfo.name})
        Next
        RadRotator1.DataSource = rotatorData
        RadRotator1.DataBind()

Attached jpg file shows two images at one time.


Harah Day
Top achievements
Rank 1
 answered on 06 Jan 2010
1 answer
85 views

Hi

Server Error in '/_ESM' Application.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


I got above error when am using this code

  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server"
            Height="75px" IsSticky="True"
            style="top: -24px; left: 372px; position: absolute; width: 253px; margin-top: 108px"
            Transparency="10">
            <img alt="Loading..."
                src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                style="border:0;" />
        </telerik:RadAjaxLoadingPanel>

 <telerik:RadAjaxManager ID="AjaxManager1" runat="server">
    <AjaxSettings>
     <telerik:AjaxSetting AjaxControlID="rgWFitems">
                <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="rgWFitems" LoadingPanelID="RadAjaxLoadingPanel2"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
    
             <telerik:AjaxSetting AjaxControlID="rwmRP">
                <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="rwmRP" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="ParamWindow">
                <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="ParamWindow" />
                </UpdatedControls>
            </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>



Dimo
Telerik team
 answered on 06 Jan 2010
5 answers
194 views
I am having issues getting a RadSplitter to take up 100% height and 100% width in firefox only (IE works wonderfully)

In firefox it looks like it is setting the width and height to  400px. I know that the parent container is working perfect as the screen is taken up by a red block from the DIV.

Examples:
http://www.fleetdynamics.com.au/firefox.jpg
http://www.fleetdynamics.com.au/ie.jpg

Build is 2009.3.1208.35

<body style="height:100%; width:100%">  
     <form id="ManagerForm" runat="server" style="width:100%; height:100%"><div style="height: 100%; background-color:red">  
         <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
         </telerik:RadScriptManager>     
        <telerik:RadSplitter ID="RadSplitter1" runat="server"    
            VisibleDuringInit="true" Width="100%" PanesBorderSize="0"  BorderSize="0"   
             Height="100%" Orientation="Horizontal" FullScreenMode="False">   
 
         <telerik:RadPane ID="Radpane3" runat="server" Height="128" Scrolling="None">  
             header         </telerik:RadPane> 
         <telerik:RadPane ID="Radpane5" runat="server">  
             <telerik:RadSplitter ID="RadSplitter2" runat="server" BorderSize="0">  
                 <telerik:RadPane ID="Radpane1" runat="server" Width="200">  
                     <uc1:VehicleInfo ID="VehicleInfo1" runat="server" /> 
                 </telerik:RadPane> 
                 <telerik:RadSplitBar runat="server" CollapseMode="Forward" EnableResize="false" /> 
                 <telerik:RadPane ID="Radpane2" runat="server">  
                     <asp:PlaceHolder ID="MapPlaceHolder" runat="server"></asp:PlaceHolder> 
                 </telerik:RadPane> 
             </telerik:RadSplitter> 
         </telerik:RadPane> 
         <telerik:RadPane ID="Radpane4" runat="server" Height="45" Width="100%">  
            footer  
         </telerik:RadPane> 
     </telerik:RadSplitter> 
     </div></form></body> 
Svetlina Anati
Telerik team
 answered on 06 Jan 2010
1 answer
111 views
In IE8 with RadEditor 2009.3.1208.20, but not FF 3.5.6, the find/replace dialog always sets the cursor back to its original position in the editor content when the dialog is closed, i.e. the place the cursor was when the find/replace button is clicked on the toolbar. Not desirable when using find, as you want to get to the thing you found, not back to your starting point.

How to modify this behaviour?
Dobromir
Telerik team
 answered on 06 Jan 2010
1 answer
82 views

Hi.

I have done an ASP.Net Web Project. I am able to displaying the webpage in IE8, FireFox, Crome, and Safari in Windows XP Operating system.

But, it’s not displaying in Windows 7 operating system. It is showing controls, images, icons, CSS menu tabs very small at any resolution.

Can any one help me how to overcome this problem?

Thank You

Suresh K

Poul Henningsen
Top achievements
Rank 1
 answered on 06 Jan 2010
6 answers
347 views
Hi,

I've used the RadToolBar as a container to display RadMenus. RadToolBar is placed in a Master Page so that it is available with standard features on all pages. RadToolBar is fixed in its position using CSS expressions:

* html .ToolBar_Fixed 
        {
            position:relative !important;
            top:expression(eval(document.documentElement.scrollTop? document.documentElement.scrollTop : document.body.scrollTop) + "px");
            left:expression(eval(document.documentElement.scrollLeft? document.documentElement.scrollLeft : document.body.scrollLeft ) + "px");
        }   

Now, the issue is that when the content page is scrolled, ToolBar stays at its position but standard dropdown controls (as shown in attached image) are displayed over it, and not under it. This issue appears with IE6 only and is fine with IE7.
On the other hand, when other 3rd party controls (like charts) are to be shown, the RadMenus in the RadToolBar get hidden by the 3rd party controls and are not displayed (probably due to some z-index issue)  - This issue exists across browsers.

Please help, as this is needed by the client for go-live very soon.
Thanks.
Yana
Telerik team
 answered on 06 Jan 2010
3 answers
271 views
Hello,

We are evaluating telerik asp.net ajax components for one of our clients specially the rad grid control. Im stuck in a scenario and need your expert advice and recommendation on how to solve the issue.

Scenerio: (selecting records from popup window grid and adding to parent window grid )

I have a main page (parent page) on which there is a Rad control grid that display set of records. What im trying to do is to open a popup window from this main page and display another rad grid in the popup window. From this popup window grid I want to select one or more records (grid rows through checkbox),  add it to the main grid and close the popup window. How best this can be achieved using telerik ajax functionality. Kindly advice

And also datasource is not bound to the datasource. I'm using a list collection as datasource for the parent and in popup grid.


Regards,

Ebrahim.

Shinu
Top achievements
Rank 2
 answered on 06 Jan 2010
3 answers
177 views
Hi

I read through several similar problems to mine, however, I was unable to solve mine.
Aim is to client access the Object object (not the HTML dom object) of a RadListBox located in a RadGrid FromTemplate.

Here's the code so far
var listbox = $telerik.findControl(document.getElementById('<%= RadGrid1.ClientID %>'), "RadListBox1"); 
while the $telerik.findControl returns null.
Same issue with $find.

In the documentation "Accessing server controls in a grid template on the client" you only access the HTML DOM element which has no use if I want to manipulate the ListBox like in the RadGrid clientside examples.
I am no expert in JavaScript, please correct me if I'm wrong.

Thanks in advance for answers
Kind regards
Roman
Roman
Top achievements
Rank 1
 answered on 06 Jan 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?