Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
134 views
Welcome,

I want to know how can I find node in orgChart by id on client-side using javascript. I tried get_nodes() method but I don't know how can I get simple node from this collection.
Plamen
Telerik team
 answered on 08 Apr 2014
2 answers
97 views
I have the following simple splitter setup.  The expected result would be the left pane to be at least 2000px tall....  when it renders, the pane's style shows "Height:1px;", and the browser displays it 1px tall.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
          <telerik:RadSplitter ID="RadSplitter1" runat="server" PanesBorderSize="0" Skin="Silk" BorderSize="0" Height="100%" Width="100%" LiveResize="False" RenderMode="Auto">
              <telerik:RadPane ID="RadPane2" runat="server" Width="180px" MaxWidth="180" MinWidth="180" Scrolling="None" BorderWidth="0" BackColor="#DFDFDF" MinHeight="2000" Height="2000">
                  <h1>Testing Panel Height</h1>
              </telerik:RadPane>
              <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" EnableResize="False" BackColor="#336699" Height="100%"></telerik:RadSplitBar>
              <telerik:RadPane ID="RadPane1" runat="server" Locked="False"  MinHeight="500" Height="100%">
                  <h1>Middle Pane</h1>
              </telerik:RadPane>
          </telerik:RadSplitter>

The results:

...
        <td id="RadPane2" class="rspPane rspFirstItem" style="border-right-width:0px;border-bottom-width:0px;"><div id="RAD_SPLITTER_PANE_CONTENT_RadPane2" style="width: 180px; height: 1px; overflow: hidden; background-color: rgb(223, 223, 223);">
                    <h1>Testing Panel Height</h1>
                ...
            

Thanks for the support.
Fred
Top achievements
Rank 1
 answered on 08 Apr 2014
10 answers
1.9K+ views
I need a text box that only accepts numbers. I have tried using a regular rad text box with all kinds of key press events and a bunch of other garbage, but I could never get it to work. I have tried a numeric text box but it keeps changing my numbers i type in for some reason. This box is for credit card numbers, so 16 length and all numbers. When I used a numeric textbox and tried typing in the credit card number, the number would be changed by the text box after leaving focus. I have no idea what that is all about or how that is useful to anyone but clearly I can't use that control. What can I do?
Gowtham
Top achievements
Rank 1
 answered on 08 Apr 2014
2 answers
77 views
I'm running Q1 2014 UI for ASP.NET.  I have a grid with a GridButtonColumn containing LinkButtons.  The page size is defaulted to 10 rows.
The issue is that if I change the Page Size to 20, and click on the LinkButton for a row greater than 10, the grid runs a changegridsize command setting the grid back to 10 rows instead of running the LinkButtton command.
Is this a bug or do I need to set an option on the grid for this to execute properly?
Dan
Dan
Top achievements
Rank 2
 answered on 08 Apr 2014
5 answers
258 views
Is there a way to render a ButtonType="SkinnedButton" as <input type="submit"> ?
Danail Vasilev
Telerik team
 answered on 08 Apr 2014
9 answers
496 views
Hi All

I am getting three fields from my data source; one numeric and the rest two string.

I want the info to be displayed as a stacked bar type of Rad chart. I want to group the contents by one of the string columns (which will also provide the label for my X-Axis) and use the numeric field as my Y axis.

How do I do that?

Please help me urgently.
Danail Vasilev
Telerik team
 answered on 08 Apr 2014
1 answer
58 views
Hi,
 how can i set tooltip for all the columns of radgrid?
Shinu
Top achievements
Rank 2
 answered on 08 Apr 2014
3 answers
488 views
When we tried to export data from grid it give "System.OutOfMemoryException". It gives expception when we try to export 5000+ records.

No. Of columns in grid are 22
No of records need to fetch 5000+

Please help me how to resolve this issue.
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Apr 2014
5 answers
103 views
Hi,

When the window is restricted in a restriction zone we are having some issues with autosize.
In the following sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="window.aspx.vb" Inherits="TestaTredjepartWeb.window" %>
 
<!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" style="overflow: hidden">
<head runat="server">
    <title></title>
    <style type="text/css">
        .bug1
        {
            height: 500px;
        }
        .bug2
        {
            height: 300px;
        }
        .bug2b
        {
            height: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div>
            <asp:Panel ID="pnlRestrictionZone" runat="server" Style="width: 700px; background-color: blue" CssClass="bug1">
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                    <Windows>
                        <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" AutoSize="true" RenderMode="Lightweight" Title="Hello" NavigateUrl="windowcontent.aspx" VisibleStatusbar="false" RestrictionZoneID="pnlRestrictionZone">
                        </telerik:RadWindow>
                    </Windows>
                </telerik:RadWindowManager>
            </asp:Panel>
            <asp:Button ID="btnBug1" runat="server" Text="Bug 1" />
            <asp:Button ID="btnBug2" runat="server" Text="Bug 2" />
            <asp:Button ID="btnBug2b" runat="server" Text="Bug 2b" />
        </div>
    </form>
</body>
</html>
Code behind:
Public Class window
    Inherits System.Web.UI.Page
 
    Private Sub btnBug1_Click(sender As Object, e As EventArgs) Handles btnBug1.Click
        pnlRestrictionZone.CssClass = "bug1"
    End Sub
 
    Private Sub btnBug2_Click(sender As Object, e As EventArgs) Handles btnBug2.Click
        pnlRestrictionZone.CssClass = "bug2"
    End Sub
 
    Private Sub btnBug2b_Click(sender As Object, e As EventArgs) Handles btnBug2b.Click
        pnlRestrictionZone.CssClass = "bug2b"
    End Sub
End Class
Content window:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="windowcontent.aspx.vb" Inherits="TestaTredjepartWeb.windowcontent" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>This is the title</title>
    <style type="text/css">
        html, body, form
        {
            padding: 0px;
            margin: 0px;
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div style="background-color: red; height: 300px; width: 500px">
            test
        </div>
    </form>
</body>
</html>

The first issue:
In IE11 there is always a little extra space to the left and bottom in the content window.
In Firefox there is no extra space, but always scrollbars!

The second issue:
Press button "Bug 2" which makes the restriction zone just a little bit larger than the content window.
In this case, the content window doesn't get wider because of the vertical scrollbar, when the restriction zone is much smaller than the window (Pressing "Bug 2b" button) the width of the window is more correctly according to the vertical scrollbar. Pressing "Bug 2b" even eliminates (sometimes...) the horizontal scroll which doesn't happen when pressing "Bug 2" button!
There is clearly a difference (according to the width) when the restriction zone is almost as high as the content window and when it is not!

Regards
Andreas

Joana
Telerik team
 answered on 08 Apr 2014
7 answers
125 views
Hello

I have two pages JobMatrix.aspx and Directories.aspx

Not work when closing  or click Radbutton closing  - Window refresh Grid.
Not work when clicking Radbutton update and closing window refresh Grid. 

Thank you.


JobMatrix.aspx
========================
<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true" CodeFile="JobMatrix.aspx.cs" Inherits="Views_Home_JobMatrix" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="Server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="Server">
    <form id="Form_JobMatrix" runat="server">
        <telerik:RadScriptManager ID="RdScriptManager" 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" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
        <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
        <telerik:RadCodeBlock ID="RdCodeBlock_JobMatrix" runat="server">
            <script type="text/javascript" src="../../JS/JS_GridJobMatrix.js"></script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxManager ID="RdAjaxManager_JobMatrix" runat="server" OnAjaxRequest="RdAjaxManager_JobMatrix_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RdAjaxManager_JobMatrix">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RdGrid_JobMatrix" LoadingPanelID="RdAjaxLoadingPanel_JobMatrix" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RdGrid_JobMatrix">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RdGrid_JobMatrix" LoadingPanelID="RdAjaxLoadingPanel_JobMatrix" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RdAjaxLoadingPanel_JobMatrix"></telerik:RadAjaxLoadingPanel>
        <telerik:RadGrid ID="RdGrid_JobMatrix" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView AutoGenerateColumns="False" Width="100%" CommandItemDisplay="Top" PageSize="5">
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" SortExpression="ID" HeaderText="ID" UniqueName="column_ID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="catName" SortExpression="catName" HeaderText="КАТЕГОРИЯ" UniqueName="catName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="catParent" SortExpression="catParent" HeaderText="ПОДКАТЕГОРИЯ" UniqueName="column_catParent">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="jName" SortExpression="jName" HeaderText="РАБОТА" UniqueName="column_jName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="jmNeedApprove" SortExpression="jmNeedApprove" HeaderText="ОКЕЙ" UniqueName="column_jmNeedApprove">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="pName" SortExpression="pName" HeaderText="ДОЛЖНОСТЬ" UniqueName="column_dbuName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="dbuName" SortExpression="dbuName" HeaderText="ИСПОЛНИТЕЛЬ" UniqueName="column_pName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Manager" SortExpression="Manager" HeaderText="МЕНЕДЖЕР" UniqueName="column_dbuNameM">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="jmValid" SortExpression="jmValid" HeaderText="СТАТУС" UniqueName="column_jmValid">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                </Columns>
                <CommandItemTemplate>
                    <a href="#" onclick="return ShowInsertForm();">Add New Record</a>
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings>
                <Selecting AllowRowSelect="true"></Selecting>
                <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
            </ClientSettings>
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RdWindowManager_JobMatrix" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="RdWindow_editor" runat="server" Modal="True" Behaviors="Close, Move" Width="1000px" Height="600px" Title="JobMap РЕДАКТОР"
                    DestroyOnClose="True" NavigateUrl="Directories.aspx" Skin="Metro" EnableViewState="False" VisibleStatusbar="false"
                    ShowContentDuringLoad="false" ReloadOnShow="true">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </form>
</asp:Content>


Directories.aspx
==============================

<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true" CodeFile="Directories.aspx.cs" Inherits="Views_Home_Directories" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="Server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="Server">
    <form id="FormDirectories" runat="server">
        <div>
            <telerik:RadScriptManager ID="RdScriptManager" 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" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                </Scripts>
            </telerik:RadScriptManager>
            <telerik:RadCodeBlock ID="RdCodeBlock" runat="server">
                <script type="text/javascript" src="../../JS/JS_WinDirectories.js"></script>
            </telerik:RadCodeBlock>
            <telerik:RadFormDecorator ID="RdFormDecorator" runat="server" Skin="Vista" DecoratedControls="All" />
            <telerik:RadAjaxManager ID="RdAjaxManager_JobMatrix" runat="server"></telerik:RadAjaxManager>
            <telerik:RadAjaxPanel ID="RdAjaxPanel_Directory" runat="server" Height="100%" Width="100%">
                <asp:Table ID="TableDirectories" runat="server">
                    <asp:TableRow>
                        <asp:TableCell>
                            КАТЕГОРИЯ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_catName" runat="server" AutoPostBack="true" Skin="Metro" Width="200px" OnSelectedIndexChanged="RdComboBox_catName_SelectedIndexChanged">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ПОДКАТЕГОРИЯ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_catParent" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            РАБОТА
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_jName" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ОКЕЙ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_jmNeedApprove" runat="server" Skin="Metro" Width="200px">
                                <Items>
                                    <telerik:RadComboBoxItem Text="" Value="-1" />
                                    <telerik:RadComboBoxItem Text="НЕТ" Value="0" />
                                    <telerik:RadComboBoxItem Text="ДА" Value="1" />
                                </Items>
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ДОЛЖНОСТЬ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_pName" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ИСПОЛНИТЕЛЬ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_dbuName" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            МЕНЕДЖЕР
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_Manager" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            СТАТУС
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_jmValid" runat="server" Skin="Metro" Width="200px">
                                <Items>
                                    <telerik:RadComboBoxItem Text="" Value="-1" />
                                    <telerik:RadComboBoxItem Text="НЕ АКТИВНА" Value="0" />
                                    <telerik:RadComboBoxItem Text="АКТИВНА" Value="1" />
                                </Items>
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadButton ID="RdButtonUpdate" runat="server" Text="Обновить" Skin="Metro" OnClick="RdButtonUpdate_Click"></telerik:RadButton>
                            <telerik:RadButton ID="RdButtonCancel" runat="server" Text="Отмена" Skin="Metro" OnClick="RdButtonCancel_Click"></telerik:RadButton>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </telerik:RadAjaxPanel>
        </div>
    </form>
</asp:Content>


JS_GridJobMatrix.js
===================

function ShowEditForm(id, rowIndex) {
    var grid = $find("<%= RdGrid_JobMatrix.ClientID %>");

    var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
    grid.get_masterTableView().selectItem(rowControl, true);

    window.radopen("Directories.aspx?ID=" + id, "RdWindow_editor");
    return false;
}
function ShowInsertForm() {
    window.radopen("Directories.aspx", "RdWindow_editor");
    return false;
}
function refreshGrid(arg) {
    if (!arg) {
        $find("<%= RdAjaxManager_JobMatrix.ClientID %>").ajaxRequest("Rebind");
    }
    else {
        $find("<%= RdAjaxManager_JobMatrix.ClientID %>").ajaxRequest("RebindAndNavigate");
    }
}
function RowDblClick(sender, eventArgs) {
    window.radopen("Directories.aspx?ID=" + eventArgs.getDataKeyValue("ID"), "RdWindow_editor");
}


JS_WinDirectories.js
=======================

function CloseAndRebind(args) {
    GetRadWindow().BrowserWindow.refreshGrid(args);
    GetRadWindow().close();
}
function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}
function
    CancelEdit() {
    GetRadWindow().close();
}

C# code
===============================
protected void RdButtonUpdate_Click(object sender, EventArgs e)
    {
        string _idJobM = Request.QueryString["ID"];

        string s_catName = RdComboBox_catName.SelectedValue.ToString();
        int i_catName;
        int.TryParse(s_catName, out i_catName);

        string s_catParent = RdComboBox_catParent.SelectedValue.ToString();
        int i_catParent;
        int.TryParse(s_catParent, out i_catParent);

        string s_dbuName = RdComboBox_dbuName.SelectedValue.ToString();
        int i_dbuName;
        int.TryParse(s_dbuName, out i_dbuName);

        string s_Manager = RdComboBox_Manager.SelectedValue.ToString();
        int i_Manager;
        int.TryParse(s_Manager, out i_Manager);

        string s_jName = RdComboBox_jName.SelectedValue.ToString();
        int i_jName;
        int.TryParse(s_jName, out i_jName);

        string s_jmNeedApprove = RdComboBox_jmNeedApprove.SelectedValue.ToString();
        int i_jmNeedApprove;
        int.TryParse(s_jmNeedApprove, out i_jmNeedApprove);

        string s_pName = RdComboBox_pName.SelectedValue.ToString();
        int i_pName;
        int.TryParse(s_pName, out i_pName);

        string s_jmValid = RdComboBox_jmValid.SelectedValue.ToString();
        int i_jmValid;
        int.TryParse(s_jmValid, out i_jmValid);

        sqlparams.Clear();
        if (_idJobM != null) { sqlparams.Add("@ID", _idJobM); }
        if (s_catName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmCategory_ID", i_catName); }
        if (s_catParent != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmSubCategory_ID", i_catParent); }
        if (s_dbuName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmDBUser_ID", i_dbuName); }
        if (s_Manager != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmManager_ID", i_Manager); }
        if (s_jName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmJob_ID", i_jName); }
        if (s_jmNeedApprove != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmNeedApprove", i_jmNeedApprove); }
        if (s_pName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmPosition_ID", i_pName); }
        if (s_jmValid != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmValid", i_jmValid); }

        UniDataAdapter daUpdateJobMatrix = new UniDataAdapter(dsWEBSDESK, "tUpdateJobMatrix", "dbo.sp_UpdateJobMatrix", CommandType.StoredProcedure, sqlparams.GetParametrs());
        ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", true);
    }
    protected void RdButtonCancel_Click(object sender, EventArgs e)
    {
        ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CancelEdit();", true);
    }



















Denis
Top achievements
Rank 1
 answered on 08 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?