Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
97 views
Is there any way to persist the settings for a listview (i.e. current sort column) similar to the way the RadGrid does or do I have to manually store a session variable or something?
Veli
Telerik team
 answered on 11 Aug 2011
2 answers
240 views
I have been looking for a way to load a TabStrip such that only the active tab gets loaded. The whole TabStrip control should not load up front. What if you had 10 tabs, all with data controls?

The demo's only have this example. This is not the behaviour I want.

I want the tab to postback every time it is clicked (which the demo does not achieve. There, tabs only postback the 1st time they are clicked).

I also don't like the solution of setting RenderSelectedPageOnly="true" on the MultiPage. When you click View Source, you only see the content of the front tab in the source, regardless of which tab you are on.

I have had a go at solving this, but my solution has not worked. You can download my attempt from here.
If you navigate away from a tab and then back to it, its content is missing (even without AJAX).  
I've removed the Telerik DLL. I used version 2010.3.1215.35.

Has anyone solved this problem? If so, I think it should be added to the demos, as I am sure it would be a very common requirement.
Joni
Top achievements
Rank 1
 answered on 11 Aug 2011
3 answers
102 views
Hi,

I have implemented spell check in my page. i am facing a problem in spell check, its is not loading for the first time.

for example

i have configured a textbox to the spell check, and have provided text with spelling mistakes, now when i click the Spell Check button a dialog box has been open and it has been in progress for long time.

if i am doing this again na then its working fine.

i have included spellcheck as below

<

 

 

telerik:RadSpell ID="spVenue" runat="server" ButtonText="Spell Check" ControlToCheck="txtVenueName"

 

 

 

AjaxUrl="~/Telerik.Web.UI.SpellCheckHandler.axd" />

 


Included RadSpell.Dialog.resx in App_GlobalResources, App_Data\RadSpell\en-US.tdf

and in Web.Config

<

 

 

httpHandlers>

 

<

 

 

add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>

 

</

 

 

httpHandlers>

 

<

 

 

handlers>

 

<

 

 

add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>

 

</

 

 

handlers>

 


Please help me to fix this problem.

Thanks,
Prakash.

Rumen
Telerik team
 answered on 11 Aug 2011
7 answers
229 views
Is it possible to add a link to the header of the scheduler (where it has the "today" link, date, and "Day", "Week", & "Month" buttons)?

If so, how?

Thanks.
Peter
Telerik team
 answered on 11 Aug 2011
1 answer
71 views
I have a very simple page that includes a RadComboBox tied to a SqlDatasource.

As soon as I attempt to add AJAX Manager (v2011.2.712.40) to the page, the combo box is non-reponsive.

If I configure the Manage by turning off the "Enable Ajax" option, the page returns to normal operation.

Where would I start looking for configuration or other areas that might cause Ajax to fail?

Bear in mind, I have had great success with all of these components in several other projects, so I am sure the workstation is configured correctly.

This problem persists across the latest versions of IE, Firefox and Chrome, yet another reason to suspect my configuration.

The other possibly relevant details are: VS2010 Pro, IIS 7.5 on Win 7 Pro, coding in VB, targeting ASP.NET 4.0. (all updated as of this morning)
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2011
3 answers
153 views
Hi,

We are using the Telerik RadGrid and currently make use of the accessibility features.

Is it possible to enable accessibility on the filter context menu? There doesn't seem to be alt text on the context menu which causes a problem with screenreaders.


Thanks,

Ryan
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2011
1 answer
232 views
I have a RadGrid with GridButtonColumn as follows:
GridButtonColumn myCommandButton = new GridButtonColumn();
myCommandButton.ButtonType = GridButtonColumnType.PushButton;
myCommandButton.CommandName = "MyCommand";
myCommandButton.Text = "MyCommand";
myGrid.Columns.Add(myCommandButton);

but when the ItemCommand event fires, e=CommandName is an empty string...
What am I missing?
Princy
Top achievements
Rank 2
 answered on 11 Aug 2011
1 answer
63 views
Hello,
I'm trying to achieve a Filter Menu but with an image on headers and when you clic on image the menu with filters options shows. Exactly like this grid in MVC exaplme.

I was trying to do this with ajax radgrid manually, creating a popup menu, but it's very dificult to achieve the correct behavior and I had a lot of problem related with events and controls.

Please can you help me or send me an example to do filter like mvc grid.

Thanks.

Julio.
Shinu
Top achievements
Rank 2
 answered on 11 Aug 2011
3 answers
111 views
After upgrading from 2010.1.309.35 to 2010.2.929.35 the rad context menu takes 6 seconds to display.
The menu is displayed using menu.showAt(x,y) in javascript. On click the menu is cleared, new items added and then displayed.
Any ideas why it stopped working?

function buildbluemenu(result) {
    contextMenu.get_items().clear();
     
    var setupmenu = new Telerik.Web.UI.RadMenuItem();
    setupmenu.get_groupSettings().set_offsetX(5);
    setupmenu.set_text("Setup");
    setupmenu.set_imageUrl(rootPath + "Images/icons/Setup.gif");
    contextMenu.get_items().add(setupmenu);
 
    var pointeditormenu = new Telerik.Web.UI.RadMenuItem();
    pointeditormenu.get_groupSettings().set_offsetX(5);
    pointeditormenu.set_text("Point Editor");
    setupmenu.get_items().add(pointeditormenu);
     
    var trendeditormenu = new Telerik.Web.UI.RadMenuItem();
    trendeditormenu.get_groupSettings().set_offsetX(5);
    trendeditormenu.set_text("Trend Editor");
    setupmenu.get_items().add(trendeditormenu);
     
    var alarmeditormenu = new Telerik.Web.UI.RadMenuItem();
    alarmeditormenu.get_groupSettings().set_offsetX(5);
    alarmeditormenu.set_text("Alarm Editor");
    setupmenu.get_items().add(alarmeditormenu);
 
    var runtimemenu = new Telerik.Web.UI.RadMenuItem();
    runtimemenu.get_groupSettings().set_offsetX(5);
    runtimemenu.set_text("Runtime Chart");
    runtimemenu.set_imageUrl(rootPath + "Images/icons/Runtime.gif");
    contextMenu.get_items().add(runtimemenu);
     
    var schedulemenu = new Telerik.Web.UI.RadMenuItem();
    schedulemenu.get_groupSettings().set_offsetX(5);
    schedulemenu.set_text("Schedules");
    schedulemenu.set_imageUrl(rootPath + "Images/icons/Schedules.gif");
    contextMenu.get_items().add(schedulemenu);
     
    var trendmenu = new Telerik.Web.UI.RadMenuItem();
    trendmenu.get_groupSettings().set_offsetX(5);
    trendmenu.set_text("Trends");
    trendmenu.get_groupSettings().set_offsetX(5);
    trendmenu.set_imageUrl(rootPath + "Images/icons/Chart.gif");
    contextMenu.get_items().add(trendmenu);
     
    var alarmmenu = new Telerik.Web.UI.RadMenuItem();
    alarmmenu.get_groupSettings().set_offsetX(5);
    alarmmenu.set_text("Alarms");
    alarmmenu.set_imageUrl(rootPath + "Images/icons/Alarms.gif");
    contextMenu.get_items().add(alarmmenu);
     
    var notesmenu = new Telerik.Web.UI.RadMenuItem();
    notesmenu.get_groupSettings().set_offsetX(5);
    notesmenu.set_text("Notes");
    notesmenu.set_imageUrl(rootPath + "Images/icons/Note.gif");
    contextMenu.get_items().add(notesmenu);
     
    var commandmenu = new Telerik.Web.UI.RadMenuItem();
    commandmenu.get_groupSettings().set_offsetX(5);
    commandmenu.set_text("Command");
    commandmenu.set_imageUrl(rootPath + "Images/icons/Command.gif");
    contextMenu.get_items().add(commandmenu);
     
    // Command menu
    if (commandable == true) {
        commandmenu.enable();
    } else {
        commandmenu.disable();
    }
 
    // Schedule menu
    var isSchedule = $(result).find('IsSchedule').text();
     
    if (isSchedule == 1) {
        schedulemenu.enable();
    } else {
        schedulemenu.disable();
    }
    result = $(result);
 
    // Alarmmenu
    var counter = 0;
    alarmmenu.disable();
    $(result).find('Alarm').each(function() {
        counter++;
    });
 
    if (counter > 0) {
        alarmmenu.enable();
    }
 
    // Trendmenu
    counter = 0;
    trendmenu.disable();
    $(result).find('Trend').each(function() {
        counter++;
        var trendid = $(this).find('Id').text();
        var childItem = new Telerik.Web.UI.RadMenuItem();
        childItem.set_text($(this).find('Description').text());
        childItem.set_value("TrendId:" + trendid);
        trendmenu.get_items().insert(i, childItem);
    });
 
    if (counter > 0) { trendmenu.enable(); }
     
    // Done building, display the menu.
    contextMenu.showAt(x, y);
}
Peter
Telerik team
 answered on 11 Aug 2011
5 answers
155 views
Good evening Telerik Team.

I have a problem trying to open a RadWindow from codebehind. I trying diferente approaches that i found in the forums, but i obtain diferent issues.

Sometimes i recive an error message that says: Two differents components with the same ID. Or simply, the RadWindow never s

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MasterPage.master.cs"
    Inherits="eBPRCHTest.MasterPage" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" dir="ltr">
<head runat="server">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Master Page</title>
    <!-- Meta Tags -->
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="es-MX" />
    <meta name="description" content="Sistema de Generación de Reportes BPR para el área de Hair Care" />
    <meta name="author" content="Felipe de Jesús Meléndez Valencia" />
    <!-- CSS -->
    <link href="css/style.css?t=<%=DateTime.Now.Ticks.ToString() %>" media="screen" rel="Stylesheet"
        type="text/css" />
    <!-- JavaScript -->
    <asp:ContentPlaceHolder ID="cphHead" runat="server" />
    <telerik:RadScriptBlock ID="rsblScripts" runat="server">
 
        <script type="text/javascript">
            // Close RadMenu after click
            function OnClientItemClicked(sender, eventArgs) {
                sender.close();
            }
 
            // Move logout option for the RadMenu to the right
            function clientLoad(sender) {
                var node0 = sender.findItemByText('<%= GetGlobalResourceObject("Localization", "mnuLogout") %>');
                node0.get_element().style.cssText = "float: right";
 
                var node1 = sender.findItemByValue(1);
                node1.get_element().style.cssText = "float: right";
            }
 
            // Edit Grids on double click
            function RowDblClick(sender, eventArgs) {
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
            }
        </script>
 
    </telerik:RadScriptBlock>
</head>
<body>
    <div id="pageContainer">
        <form id="formContainer" runat="server" style="height: 100%">
        <asp:ToolkitScriptManager ID="tsmneBPRHC" runat="server" />
        <telerik:RadFormDecorator ID="rfdceBPRHC" runat="server" DecoratedControls="All" />
        <telerik:RadWindowManager ID="rwmneBPRHC" runat="server" />
        <div id="wrapper">
            <div id="header">
                <table cellpadding="0" cellspacing="0" style="height: 75px" width="100%">
                    <tbody>
                        <tr>
                            <td rowspan="2" colspan="1" style="width: 868px;">
                                <br />
                            </td>
                            <td style="height: 10px">
                                <asp:Label ID="lblWelcome" CssClass="lblWelcome" runat="server" Text="<%$ Resources:Localization, lblWelcome %>" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblUserName" CssClass="lblUserName" runat="server" Text="Felipe de Jesús Meléndez Valencia" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <br />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div id="navigation">
                <telerik:RadMenu ID="rmnuMainMenu" runat="server" OnClientLoad="clientLoad" OnClientItemClicked="OnClientItemClicked"
                    OnItemClick="rmnuMainMenu_ItemClick" Width="100%" />
            </div>
            <telerik:RadAjaxManager ID="ramnAJAXManager" runat="server" />
            <telerik:RadAjaxLoadingPanel ID="ralpLoading" runat="server" />
            <telerik:RadAjaxPanel ID="rapnAJAXPanel" runat="server" LoadingPanelID="ralpLoading">
                <div id="content">
                    <asp:ContentPlaceHolder ID="cphCont" runat="server" />
                </div>
            </telerik:RadAjaxPanel>
            <div id="footer">
            </div>
        </div>
        </form>
    </div>
</body>
</html>

And the code from my ContentPage is:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="CatMI.aspx.cs" Inherits="eBPRCHTest.CatMI" %>
 
<asp:Content ID="Head" ContentPlaceHolderID="cphHead" runat="server">
 
    <script type="text/javascript">
             
     
        function closeWin() {
            var oWnd = $find("<%=rwndMI.ClientID%>");
            oWnd.close();
        }
    </script>
 
</asp:Content>
<asp:Content ID="Cont" ContentPlaceHolderID="cphCont" runat="server">
    <table style="text-align: left" width="600px">
        <thead>
            <tr>
                <td class="tblTitle">
                    <asp:Label ID="lblTitle" runat="server" CssClass="lblTitle" Text="MAKING INSTRUCTION" />
                </td>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td>
                    <asp:SqlDataSource ID="sdsMIItems" runat="server" ConnectionString="<%$ ConnectionStrings:eBPRHCConnectionString %>"
                        DeleteCommand="DELETE FROM [tMIItems] WHERE [PKMIItem] = @PKMIItem;" SelectCommand="SELECT [PKMIItem], [FKMI], [miItemTypeDesc], [miItemLocDesc], [miItemNumStep], [miItemDesc], [miItemCode], (SELECT [matDescript] FROM [tMaterials] WHERE [matCode] = [miItemCode] AND [FKTrain] = (SELECT [PKTrain] FROM [tTrains] WHERE [trnDescript] = @trnDescript)) AS miItemCodeDesc, [miItemObserv], [miItemPercent] FROM [tMIItems] INNER JOIN [tMIItemType] ON [FKMIItemType] = [PKMIItemType] INNER JOIN [tMIItemLocat] ON [FKMIItemLocat] = [PKMIItemLocat] WHERE ([FKMI] = @FKMI) ORDER BY [MIItemOrder];"
                        InsertCommand=" DECLARE @OrderNum AS INT SET @OrderNum = (SELECT ISNULL(MAX([miItemOrder]), 0) + 1 FROM [tMIItems] WHERE (FKMI = @FKMI)); INSERT INTO [tMIItems] ([FKMI], [FKMIItemType], [FKMIItemLocat], [miItemOrder], [miItemNumStep], [miItemDesc], [miItemCode], [miItemObserv], [miItemPercent]) VALUES (@FKMI, @FKMIItemType, @FKMIItemLocat, @OrderNum, @miItemNumStep, @miItemDesc, @miItemCode, @miItemObserv, @miItemPercent);">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="lblTrainDesc" Name="trnDescript" PropertyName="Text" />
                            <asp:ControlParameter ControlID="rcmbMI" Name="FKMI" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                        <InsertParameters>
                            <asp:ControlParameter ControlID="rcmbMI" Name="FKMI" PropertyName="SelectedValue"
                                Type="Int32" />
                            <asp:Parameter Name="FKMIItemType" />
                            <asp:Parameter Name="FKMIItemLocat" />
                            <asp:Parameter Name="miItemNumStep" />
                            <asp:Parameter Name="miItemDesc" />
                            <asp:Parameter Name="miItemCode" />
                            <asp:Parameter Name="miItemObserv" />
                            <asp:Parameter Name="miItemPercent" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="sdsTrains" runat="server" ConnectionString="<%$ ConnectionStrings:eBPRHCConnectionString %>"
                        SelectCommand="SELECT [PKTrain], [trnDescript], [trnPercent], [trnStatus] FROM [tTrains] WHERE  ([FKSubsite] = @FKSubsite) AND ([trnStatus] = 'a') ORDER BY [trnDescript];"
                        OnSelecting="sdsTrains_Selecting">
                        <SelectParameters>
                            <asp:Parameter Name="FKSubsite" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="sdsBatchSizes" runat="server" ConnectionString="<%$ ConnectionStrings:eBPRHCConnectionString %>"
                        SelectCommand="SELECT [PKBatchSize], [btcSize], [btcStatus] FROM [tBatchSizes] WHERE (([btcStatus] = 'a') AND ([FKSubsite] = @FKSubsite)) ORDER BY [btcSize];"
                        OnSelecting="sdsBatchSizes_Selecting">
                        <SelectParameters>
                            <asp:Parameter Name="FKSubsite" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="sdsMIItemType" runat="server" ConnectionString="<%$ ConnectionStrings:eBPRHCConnectionString %>"
                        SelectCommand="SELECT [PKMIItemType] AS FKMIItemType, [miItemTypeDesc] FROM [tMIItemType]">
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="sdsMIItemLocat" runat="server" ConnectionString="<%$ ConnectionStrings:eBPRHCConnectionString %>"
                        SelectCommand="SELECT [PKMIItemLocat] AS FKMIItemLocat, [miItemLocDesc] FROM [tMIItemLocat]">
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="sdsMaterials" runat="server" ConnectionString="<%$ ConnectionStrings:eBPRHCConnectionString %>"
                        SelectCommand="SELECT [PKMaterial], [matCode] AS miItemCode, [matDescript], [trnDescript] FROM [tMaterials] INNER JOIN [tTrains] ON [FKTrain] = [PKTrain] WHERE ([PKTrain] = (SELECT [PKTrain] FROM [tTrains] WHERE [trnDescript] = @trnDescript))">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="lblTrainDesc" Name="trnDescript" PropertyName="Text" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </tfoot>
        <tbody>
            <tr>
                <td style="text-align: center">
                    <table class="miDetails" style="width: 600px;">
                        <tbody>
                            <tr>
                                <td colspan="4" style="height: 30px">
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional">
                                        <ContentTemplate
                                            <asp:Button ID="btnNewMI" runat="server" Text="Nuevo MI" Width="90px" OnClick="btnNewMI_Click" />
                                            <asp:Button ID="btnCreateMI" runat="server" Text="Crear Edición" Width="90px" Visible="false"
                                                OnClick="btnCreateMI_Click" />
                                            <asp:Button ID="btnCopyMI" runat="server" Text="Copiar MI" OnClientClick="openWin('Copiar MI'); return false;"
                                                Width="90px" Visible="false" OnClick="btnCopyMI_Click" />
                                            <asp:Button ID="btnPermitsMI" runat="server" Text="Permisos" Width="90px" Visible="false"
                                                OnClick="btnPermitsMI_Click" />
                                            <asp:Button ID="btnStatusMI" runat="server" Text="Cambiar Estado" Width="90px" Visible="false"
                                                OnClick="btnStatusMI_Click" />
                                            <asp:Button ID="btnDeleteMI" runat="server" Text="Eliminar MI" Width="90px" Visible="false"
                                                OnClick="btnDeleteMI_Click" />
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                         
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    <asp:Label ID="lblMICode" runat="server" Text="Código:" />
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="rcmbMI" runat="server" AllowCustomText="true" AutoPostBack="True"
                                        DropDownWidth="435px" EnableLoadOnDemand="true" HighlightTemplatedItems="true"
                                        ItemRequestTimeout="1000" MaxLength="13" OnItemsRequested="rcmbMI_ItemsRequested"
                                        OnSelectedIndexChanged="rcmbMI_SelectedIndexChanged">
                                        <HeaderTemplate>
                                            <div>
                                                <table cellpadding="0" cellspacing="0">
                                                    <tr align="center">
                                                        <td style="width: 100px;" align="center">
                                                            Version
                                                        </td>
                                                        <td style="width: 100px;" align="center">
                                                            Fecha
                                                        </td>
                                                        <td style="width: 80px;" align="center">
                                                            Estado
                                                        </td>
                                                        <td style="width: 55px;" align="center">
                                                            Trén
                                                        </td>
                                                        <td style="width: 100px;" align="center">
                                                            Tamaño de Lote
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </HeaderTemplate>
                                        <CollapseAnimation Duration="200" Type="OutQuint" />
                                        <ItemTemplate>
                                            <table cellpadding="0" cellspacing="0">
                                                <tr align="center">
                                                    <td style="width: 100px;" align="center">
                                                        <%# DataBinder.Eval(Container.DataItem, "PKVer") %>
                                                    </td>
                                                    <td style="width: 100px;" align="center">
                                                        <%# System.Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "DateAdd")).ToString("dd/MM/yyyy") %>
                                                    </td>
                                                    <td style="width: 80px;" align="center">
                                                        <%# DataBinder.Eval(Container.DataItem, "Status") %>
                                                    </td>
                                                    <td style="width: 55px;" align="center">
                                                        <%# DataBinder.Eval(Container.DataItem, "TrainDesc") %>
                                                    </td>
                                                    <td style="width: 100px;" align="center">
                                                        <%# DataBinder.Eval(Container.DataItem, "BatchSize")%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:RadComboBox>
                                </td>
                                <td style="text-align: right">
                                    <asp:Label ID="lblStatus" runat="server" Text="Estado:" />
                                </td>
                                <td style="width: 180px">
                                    <asp:Label ID="lblStatusDesc" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    <asp:Label ID="lblTrain" runat="server" Text="Tren:" />
                                </td>
                                <td>
                                    <asp:Label ID="lblTrainDesc" runat="server" />
                                </td>
                                <td style="text-align: right">
                                    <asp:Label ID="lblBatch" runat="server" Text="Tamaño de Lote:" />
                                </td>
                                <td>
                                    <asp:Label ID="lblBatchDesc" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    <asp:Label ID="lblDesc" runat="server" Text="Descripción:" />
                                </td>
                                <td colspan="3">
                                    <asp:Label ID="lblDescript" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td colspan="3">
                                    <asp:Label ID="lblInfo" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" style="height: 0">
                                    <table id="tblApprovers" runat="server" style="background: #ddd" visible="false">
                                        <tr>
                                            <td style="text-align: right; width: 112px">
                                                <asp:Label ID="lblIngProc" runat="server" Text="Ing. de Proceso:  " />
                                            </td>
                                            <td>
                                                <asp:ImageButton ID="ibtApprov1" runat="server" ImageUrl="~/Img/WithOutApprov.png"
                                                    OnClick="ibtApprov1_Click" />
                                            </td>
                                            <td style="text-align: right; width: 112px">
                                                <asp:Label ID="lblQA" runat="server" Text="QA:  " />
                                            </td>
                                            <td>
                                                <asp:ImageButton ID="ibtApprov2" runat="server" ImageUrl="~/Img/WithOutApprov.png"
                                                    OnClick="ibtApprov2_Click" />
                                            </td>
                                            <td style="text-align: right; width: 112px">
                                                <asp:Label ID="lblTSO" runat="server" Text="TSO:  " />
                                            </td>
                                            <td>
                                                <asp:ImageButton ID="ibtApprov3" runat="server" ImageUrl="~/Img/WithOutApprov.png"
                                                    OnClick="ibtApprov3_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td style="text-align: center">
                                                <asp:Label ID="lblDate1" runat="server" />
                                            </td>
                                            <td>
                                            </td>
                                            <td style="text-align: center">
                                                <asp:Label ID="lblDate2" runat="server" />
                                            </td>
                                            <td>
                                            </td>
                                            <td style="text-align: center">
                                                <asp:Label ID="lblDate3" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table width="958px">
        <tbody>
            <tr>
                <td>
                    <telerik:RadGrid ID="rgrdMI" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
                        AllowAutomaticUpdates="True" AllowSorting="True" DataSourceID="sdsMIItems" GridLines="None"
                        Visible="False" Width="650px" OnItemCommand="rgrdMI_ItemCommand">
                        <MasterTableView DataSourceID="sdsMIItems" DataKeyNames="PKMIItem" CommandItemDisplay="Top"
                            EditMode="InPlace" Width="100%">
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="<%$ Resources:Localization, lblEdit %>">
                                    <ItemStyle CssClass="handCursor" />
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn DataField="PKMIItem" DataType="System.Int32" HeaderText="PKMIItem"
                                    ReadOnly="True" SortExpression="PKMIItem" UniqueName="PKMIItem" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="Tipo" UniqueName="ItemType">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"miItemTypeDesc")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadComboBox ID="rcmbMIItemType" runat="server" AutoPostBack="true" EnableAutomaticLoadOnDemand="true"
                                            DataSourceID="sdsMIItemType" DataTextField="miItemTypeDesc" DataValueField="FKMIItemType"
                                            OnSelectedIndexChanged="rcmbMIItemType_SelectedIndexChanged" Width="70px" />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Ubicación" UniqueName="ItemLocat">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"miItemLocDesc")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadComboBox ID="rcmbMIItemLocat" runat="server" DataSourceID="sdsMIItemLocat"
                                            DataTextField="miItemLocDesc" DataValueField="FKMIItemLocat" Width="70px" />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn DataField="miItemNumStep" HeaderText="Paso" SortExpression="miItemNumStep"
                                    UniqueName="miItemNumStep">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"miItemNumStep")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtNumStep" runat="server" ReadOnly="true" Text='<%# Bind("miItemNumStep") %>'
                                            Width="35px" />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="miItemDesc" HeaderText="Descripción" SortExpression="miItemDesc"
                                    UniqueName="miItemDesc">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn DataField="miItemCode" DataType="System.Decimal" HeaderText="Código"
                                    SortExpression="miItemCode" UniqueName="miItemCode">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"miItemCode")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadComboBox ID="rcmbItemCode" runat="server" AutoPostBack="true" EnableAutomaticLoadOnDemand="true"
                                            DataSourceID="sdsMaterials" DataTextField="miItemCode" DataValueField="miItemCode"
                                            DropDownWidth="255px" OnSelectedIndexChanged="rcmbItemCode_SelectedIndexChanged"
                                            Width="100px">
                                            <HeaderTemplate>
                                                <div>
                                                    <table cellpadding="0" cellspacing="0">
                                                        <tr align="center">
                                                            <td style="width: 100px;" align="center">
                                                                Código
                                                            </td>
                                                            <td style="width: 100px;" align="center">
                                                                Descripción
                                                            </td>
                                                            <td style="width: 55px;" align="center">
                                                                Trén
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </HeaderTemplate>
                                            <CollapseAnimation Duration="200" Type="OutQuint" />
                                            <ItemTemplate>
                                                <table cellpadding="0" cellspacing="0">
                                                    <tr align="center">
                                                        <td style="width: 100px;" align="center">
                                                            <%# DataBinder.Eval(Container.DataItem, "miItemCode") %>
                                                        </td>
                                                        <td style="width: 100px;" align="center">
                                                            <%# DataBinder.Eval(Container.DataItem, "matDescript") %>
                                                        </td>
                                                        <td style="width: 55px;" align="center">
                                                            <%# DataBinder.Eval(Container.DataItem, "trnDescript")%>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </telerik:RadComboBox>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn DataField="miItemCodeDesc" HeaderText="Material" SortExpression="miItemCodeDesc"
                                    UniqueName="miItemCodeDesc">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"miItemCodeDesc")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtCodeDesc" runat="server" ReadOnly="true" Text='<%#Bind("miItemCodeDesc") %>'
                                            Width="100px" />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="miItemObserv" HeaderText="Comentarios" SortExpression="miItemObserv"
                                    UniqueName="miItemObserv" ItemStyle-Width="100px">
                                    <ItemStyle Width="100px"></ItemStyle>
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn DataField="miItemPercent" DataType="System.Decimal" HeaderText="Porcentaje"
                                    SortExpression="miItemPercent" UniqueName="miItemPercent">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"miItemPercent")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtCodePercent" runat="server" Text='<%#Bind("miItemPercent") %>'
                                            Width="50px" />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText='<%$ Resources:Localization, btcConfirmDelete %>'
                                    ConfirmDialogType="RadWindow" Text="<%$ Resources:Localization, lblDelete %>"
                                    UniqueName="ButtonColumn">
                                    <ItemStyle CssClass="handCursor" />
                                </telerik:GridButtonColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn UniqueName="EditCommandColumn1">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                    </telerik:RadGrid>
                </td>
            </tr>
        </tbody>
    </table>
    <telerik:RadWindow ID="rwndMI" runat="server" Behaviors="Close" DestroyOnClose="True"
        InitialBehaviors="Close" Modal="True" Height="185px" Width="435px"
        Behavior="Close" InitialBehavior="Close">
        <ContentTemplate>
            <table cellspacing="2.5" class="tblNewFCMI">
                <tfoot>
                    <tr>
                        <td colspan="2" style="text-align: right">
                            <asp:ImageButton ID="ibtOk" runat="server" ImageUrl="~/Img/Update.gif" AlternateText="Guardar" />
                            <asp:ImageButton ID="ibtCancel" runat="server" ImageUrl="~/Img/Cancel.gif" AlternateText="Cancelar"
                                OnClientClick="closeWin(); return false;" />
                        </td>
                    </tr>
                </tfoot>
                <tbody>
                    <tr>
                        <td style="text-align: right">
                            <asp:Literal ID="litNewMI" runat="server" Text="Nueva MI:" />
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtNewMI" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            <asp:Literal ID="litNewMIDesc" runat="server" Text="Descripción:" />
                        </td>
                        <td style="text-align: left">
                            <asp:TextBox ID="txtNewMIDesc" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            <asp:Literal ID="litTrain" runat="server" Text="Tren:" />
                        </td>
                        <td style="text-align: left">
                            <telerik:RadComboBox ID="rcmbTrain" runat="server" DataSourceID="sdsTrains" DataTextField="trnDescript"
                                DataValueField="PKTrain" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            <asp:Literal ID="litBatchSize" runat="server" Text="Tamaño de Lote:" />
                        </td>
                        <td style="text-align: left">
                            <telerik:RadComboBox ID="rcmbBatchSize" runat="server" DataSourceID="sdsBatchSizes"
                                DataTextField="btcSize" DataValueField="PKBatchSize" />
                            <asp:CheckBox ID="chkEditStatus" runat="server" Text="Estado Edición" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </ContentTemplate>
    </telerik:RadWindow>
</asp:Content>

The codebehind that i use to trying to open the radWindows is:

protected void btnNewMI_Click(object sender, EventArgs e)
        {
            rwndMI.VisibleOnPageLoad = true;
        }


Can you help me to solve this.

Kind regards,
Felipe de Jesús Meléndez Valencia

Felipe de Jesús
Top achievements
Rank 1
 answered on 11 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?