Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
I've set my radmenu z-index to 0:
    <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal"  BorderWidth="1px"  style="z-index:0"
        BorderStyle="Groove" Font-Names="Verdana" Font-Size="Smaller" Width="100%">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

and RadWindow to 9000
                <telerik:RadWindow ID="RadWindow1" runat="server"
                                   NavigateUrl=""
                                   Modal="true"                                
                                   style="z-index:9000"
                                   VisibleOnPageLoad="false"   Behaviors="Default">
                </telerik:RadWindow>

but my window still appears behind the RadMenu?
The Radmenu is populated in the codebehind , the RadWindow is opened ClientSide

thanks
david
Top achievements
Rank 1
 answered on 14 Aug 2009
3 answers
753 views
Hi,

I am not able to disable the RadNumericTextBox through javascript. Although I see a "disabled" property, this is set to false; even though I have declared my control as "Enabled=false".

Can anyone help?

Regards,
Saurabh
Daniel
Telerik team
 answered on 14 Aug 2009
7 answers
234 views
I need to access a label inside of an Edittemplate with javascript, typically I would just view the source of the page to get the name of the control that asp.net gives it at runtime ie. ("ctl00_ContentPlaceHolder1_lblAccount"), but I cannot view the source of the edit template (probably because it's hidden ). I really need to get this to work as I have to have this function in several places. Has anyone done this or does anyone know what these controls are named at runtime inside of the edit template????


Jacob Button
Top achievements
Rank 1
 answered on 14 Aug 2009
2 answers
150 views
Hello,

What I am trying to do is get master table view from client side without binding the grid.

The error I got is:

"Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: id"

The reason for doing this is I wanna use client side binding. And if I bind the grid from server side, even with empty data, there's a "No records found" row hounting there. Then If I bind data to grid from client side, "No records found" row  will be still there. Also the styles are not applied automatically to new rows...

Any idea?

Cheers,
Elton
Sameer Alibhai
Top achievements
Rank 1
 answered on 14 Aug 2009
1 answer
187 views
Hi,

I hope anybody can help.

The telerik version is Q2 2009 asp radajax controls.

I have an outlook like interface an in one escenario I need to open a radwindow via radopen in the page load the escenario is as follows

1.- Open a capture page in a radpane
2.-Recover parameters from the capture.
3.- Open a new page 2 for register other tasks (this page use a parameters on string )
4.- when onpageload for page2 open a radopen pop to select options for the tasks of the page2.
The page2 has the structure
RadSCriptManager
RadaAJaxManager
RadWindowManager
Register ClienScriptStartup on page load
javascript function to open  the pop via radopen.

The problem is that when scirpt executes the javascript function to open the pop it cannot find the window and the radAjaxmanager,

DefaultPage.aspx.cs
using System;  
using System.Configuration;  
using System.Data;  
using System.Linq;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Xml.Linq;  
using System.Text;  
 
public partial class _Default : System.Web.UI.Page   
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        try 
        {  
             
                this.ClientScript.RegisterStartupScript(this.GetType(),  
                this.Page.ToString(),  
                GeneraScript(string.Format("Sys.Application.add_load(OpenWindowWH1('pruebaPop.aspx', 480, 485));", 1))  
                );  
             
        }  
        catch (Exception ex)  
        {   
              
        }  
    }  
 
 
 
    public static string GeneraScript(string codigo)  
    {  
        StringBuilder sbScript = new StringBuilder();  
        sbScript.AppendLine("<script type =\"text/javascript\">");  
        sbScript.AppendLine("<!--");  
        sbScript.AppendLine(codigo);  
        sbScript.AppendLine("//-->");  
        sbScript.AppendLine("</script>");  
 
        return sbScript.ToString();  
    }  
}  
 


Default.aspx
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
    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>Untitled Page</title> 
      
      
    <script type="text/javascript" language="javascript">  
      
    <!--  
            
             function OpenWindowWH1(url, width, heigth) {  
               debugger;  
                     var oWindow = GetRadWindow();  
                       
                if(oWindow)  
                {  
                 oWindow.setUrl(url);  
                }  
                else  
                {  
                    oWindow = window.radopen(url, 'VentanaFlotanteUsr');  
                }  
 
                 
                //var oWindow = window.radopen(url, 'VentanaFlotanteUsr');  
                oWindow.set_visibleStatusbar(false);  
                oWindow.set_showContentDuringLoad(false);  
                oWindow.setSize(width, heigth);  
                oWindow.center();  
                oWindow.set_behaviors(4);  
                oWindow.set_modal(true);  
                oWindow.add_close(CierraUsuarios);  
 
            }  
            
          
          
    //--> 
    </script>      
      
</head> 
 
<body> 
    <form id="form1" runat="server">  
    <div> 
      
        <telerik:RadScriptManager ID="rdscrpAdm" runat="server"></telerik:RadScriptManager> 
    <telerik:RadAjaxManager  ID="RadAjaxManagerActividades" runat="server">  
    </telerik:RadAjaxManager> 
        <telerik:RadWindowManager ID="RadWindowManagerUsuarios" runat="server" > 
        <Windows> 
            <telerik:RadWindow ID="VentanaFlotanteUsr" runat="server"  Title="Seleccione usuario" Splash="false" VisibleOnPageLoad="false" Visible="true" Height="485px" Width="475px"  ReloadOnShow="true" Modal="true" Behavior="Pin,Close" OnClientClose="CierraUsuarios"  /> 
        </Windows>                                            
    </telerik:RadWindowManager> 
    </div> 
    </form> 
</body> 
</html> 
 


the pruebaPop.aspx is just a single aspx page with no controls for the test

I hope you can help me is very urgent for a customer
Manuel Velazquez
Top achievements
Rank 1
 answered on 14 Aug 2009
2 answers
92 views
Steps to reproduce :

2) Checkbox “Use Tool  Provider” checked and “Apply settings” is clicked
3) Go to the second editor , click on Insert Table Icon 

There should be valid Table Wizard link in the dropdown menu. Instead there is disabled  “Insert Row Above” link. 

How can i fix it ?

Nik
Top achievements
Rank 1
 answered on 14 Aug 2009
4 answers
198 views

 

 

Hello i need to create from 1 to many new RadGrids based on the selection of an item/s from a static RadGrid, ie create a new "on the fly" RadGrid for every row item selected from a static RadGrid. I thought that by giving each new RadGrid a new RadGrid.ID, see below, that it might create a new RadGrid and that a new RadGrid would appear under the previously created RadGrids, ie appending new RadGrids under the previous created "otf" RadGrids. But i think i'm getting the understanding that i would need to create all of the potential new "otf" RadGrids in advance and manage the visibiliy of each one as needed. For example i would have to create a list of RadGrids in advance like RadGrid radgrid1; RadGrid radgrid2; RadGrid radgrid3; ......ect. Or is there a way to actually create a new RadGrid really genuinely from scratch on the fly?  

private
void DefineGridStructure2()

 

{

 

string txt = "TABLE1";

 

CustomQuery.

GetInfoSchema gis = new CustomQuery.GetInfoSchema();

 

 

string cs = "Data Source=DEVSQL.fhfb.gov;Initial Catalog=CustomQuery;Integrated Security=True";

 

 

DataTable dt = gis.GetTableInfo(cs, txt);

 

 

 

RadGrid grid = new RadGrid();

 

 

string sgridID="grid"+lblMessage.Text;

 

grid.ID = sgridID;

grid.AutoGenerateColumns =

true;

 

grid.DataSource = dt;

grid.DataBind();

Master.FindControl(

"mainContain").Controls.Add(grid);

 

 

string chktxt = lblMessage.Text;

 

}

Bob
Top achievements
Rank 1
 answered on 14 Aug 2009
2 answers
105 views
Ok this may sound really easy but I'm having a hard time figuring it out, basically I have a Grid with an ID and text column, simple add/edit/delete functionality is what I'm looking for.  Because of company standards I cannot use an Object or SQL data source, I'm using MVP and need to bubble the events.

I've got the item_command event firing fine but I'm looking for a way to invoke Telerik's "Automatic" edit form on the server side, does anyone have any ideas? 

As a side note, when I do setup a datasource, automatic operations are fine, I'm just looking for a way to invoke automatic operations without a data source.

I'll post in some aspx and code behind so you can see sort of what I'm trying to do:


<

 

telerik:RadGrid runat="server" ID="radViews" AutoGenerateDeleteColumn="True"

 

 

AutoGenerateEditColumn="True" GridLines="None" AllowAutomaticUpdates="true"

 

 

Skin="Office2007" OnItemCommand="radViews_ItemCommand" >

 

  <

 

HeaderContextMenu EnableTheming="True">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

HeaderContextMenu>

 

<

 

MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top">

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID"

 

 

SortExpression="ID" UniqueName="ID">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Text" HeaderText="Text"

 

 

SortExpression="Text" UniqueName="Text">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

</

 

MasterTableView>

 

<

 

FilterMenu EnableTheming="True">

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

FilterMenu>

 

 

</telerik:RadGrid>

 

protected

 

void radViews_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)

 

{

 

if (e.CommandName == RadGrid.InitInsertCommandName) //"Add new" button clicked

 

 

 

 

{

    e.Canceled =

true;

 

 

    //Prepare an IDictionary with the predefined values

 

 

 

 

    System.Collections.Specialized.

ListDictionary newValues = new System.Collections.Specialized.ListDictionary();

 

    newValues[

"Tag"] = user.UserName;

 

 

    
    //Insert the item and rebind

 

 

 

 

    e.Item.OwnerTableView.InsertItem(newValues);

}

 

// Pass to MVP

 

 

 

 

 

if (e.CommandName == RadGrid.DeleteCommandName)

 

    {

 

        this.OnDeleteView(this, e);

 

    }

 

if (e.CommandName == RadGrid.EditCommandName)

 

    {

 

        "Go Go Gadget editable Grid!!!!"    

 

 

 

 

    }

 

}

 


Brandon Slezak
Top achievements
Rank 2
 answered on 14 Aug 2009
6 answers
252 views
Hi,
    From what I have read researching this issue, it seems that simply using the RadMenu BackColor as you do in other controls is not straightforward.
    I have read things talking about setting it programmatically, childmenu items, etc.
    I just want to be sure there is nothing I am overlooking to simply use the RadMenu BackColor="Color" property ?
    This is my code .....
  <telerik:RadMenu OnClientMouseOut="Mmouseout" OnClientMouseOver="Mmouseover" OnItemClick="RadMenu1_OnItemClick" 
                                    OnClientItemClicked="RadMenu1_OnClientItemClicked" ID="RadMenuLine" ExpandAnimation-Type="InOutBack" 
                                    CollapseAnimation-Type="InQuad" BorderColor="Brown" 
                                      Skin="WebBlue" runat="server" Font-Size="Small" 
                                     Width="100%" commandName="MenuCommand"  > 
                                       <Items> 
                                        <telerik:RadMenuItem GroupSettings-ExpandDirection="Up" runat="server" Text="View" 
                                            BackColor="Yellow" ForeColor="Brown" Font-Bold="true"  Style="font-weight: bold">  
                                            <Items> 
                                                <telerik:RadMenuItem runat="server" Text="Detail" CssClass="MenuItemLeft" BackColor="Yellow" 
                                                    ForeColor="Blue">  
                                                </telerik:RadMenuItem> 
                                                <telerik:RadMenuItem runat="server" Text="Summary" ForeColor="Blue">  
                                                </telerik:RadMenuItem> 
                                                <telerik:RadMenuItem runat="server" Text="Print" NavigateUrl="~/mybodyscience/MBS_Reports/iqReport_Display.aspx" 
                                                    BackColor="Yellow" ForeColor="Blue" Target="_blank">  
                                                </telerik:RadMenuItem> 
                                            </Items> 
                                        </telerik:RadMenuItem> 
                                        <telerik:RadMenuItem runat="server" Text="Add Equipment" commandName="MAddCommand" 
                                          BackColor="Yellow" ForeColor="Brown" Font-Bold="true" > 
                                        </telerik:RadMenuItem> 
                                        <telerik:RadMenuItem runat="server" Text="Refresh"    
                                            BackColor="Yellow" ForeColor="Brown" Font-Bold="true" > 
                                        </telerik:RadMenuItem> 
                                        <telerik:RadMenuItem runat="server" id="Mhelp" Text="Help" commandName="MhelpCommand" 
                                            BackColor="Yellow" ForeColor="Brown" Font-Bold="true" Value="88">  
                                        </telerik:RadMenuItem> 
                                    </Items> 
                                </telerik:RadMenu> 

Thanks for your time ....
IQworks
Top achievements
Rank 1
 answered on 14 Aug 2009
8 answers
209 views
I would like some help in achieving the following functionality:

When user clicks the Maximize command, call a function once the window has been resized.

Currently, using the OnClient Command, the event is fired before the window is actually maximized therefore I am unable to generate new content based on the new size.

Additionally, the OnClientResize event is not triggered when a Maximize is executed.

Any help is greatly appreciated and needed!

Telmo


Brian Kowald
Top achievements
Rank 1
 answered on 14 Aug 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?