Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
79 views
i can't post anything to this forum
Ben
Top achievements
Rank 1
 asked on 25 May 2010
2 answers
128 views
I know this has been brought up many times but I am trying to get smooth scrolling with frozen columns.  Are there any workarounds that i missed or is this still an issue?  I will try to keep this updated with any progress I have.
Ryan Garabedian
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
113 views
Hello,

I need to figure out a way to determine when a user changes the month on the client-side.  So when the user goes from 5/2010 to 6/2010, I need to run special code.  I don't see anything that seems to have the old date and new date.  Also, does the RadScheduler store the current visible start/end date on the client like it does on the server?

I'm binding via a web service, FYI.

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
228 views

Telerik: 2010.1.519.35 +  VS2008 SP1 + vs doc patch, on Win7

Hi

I have setup a custom skin named MySkin. My base Style is Web20. I noticed that it is indeed included in the output page using “View Source” in the browser. I also noticed my custom height setting is overridden by using FireBug at the dom level

Here is what happens:

My .RadComboBox_MySkin .rcbInputCell { height:150px;} selector get’s overriden by the .RadComboBox table td.rcbInputCell
selector for:

<td style="width: 100%;" class="rcbInputCell rcbInputCellLeft"><input type="text" readonly="readonly" value="Redwood" id="RadComboBox1_Input" class="rcbInput" name="RadComboBox1" autocomplete="off"></td>

Attempting to change the height property during runtime via firebug produces odd ui

I also added EnableEmbeddedBaseStylesheet="False"  to the declaration tag, and got my intended height style setting, but this totally mixed-up the control layout

What am I doing wrong??? Code below ...

Tnx

-Itai

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <title></title>
 <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <link href="Skins/MyComboBox/ComboBox.MySkin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
 <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  <Scripts>
   <%--Needed for JavaScript IntelliSense in VS2010--%>
   <%--For VS2008 replace RadScriptManager with ScriptManager--%>
   <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>
 <script type="text/javascript">
  //Put your JavaScript code here.
    </script>
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
 </telerik:RadAjaxManager>
 <div>

     <telerik:RadComboBox ID="RadComboBox1" Runat="server" Skin="MySkin"
            EnableEmbeddedSkins="False">
        </telerik:RadComboBox>

 </div>
 </form>
</body>
</html>

 

 

Kamen Bundev
Telerik team
 answered on 25 May 2010
1 answer
128 views
Team,

In our Webapplication in top portion we are using Radgrid control. In the Bottom portion we are using DotNetCharting control.
We applied splitter control in between the Radgrid and Charting both are place inside the panel.
When Resizing the Radgrid, it is not coming throughout the page by hiding Charting.
Pls. give me the solution.

ScreenShots are attached for your reference. First one is ans.jpg & second one is ans1.jpg

Thanks
Rajesh N.
Dobromir
Telerik team
 answered on 25 May 2010
4 answers
172 views
Hi All,

I have a grid with a set of filterable columns.  Previously I have shown a filter icon for each column, now I want to make it so that in the first column in the grid it displays a filter icon that the user can click to apply any of the filters that have been setup in each row, I have removed the filter icon on all other columns. 

At the moment I have a button in the FilterTemplate for the relevant column and can get the page to do an ajax callback to the .ItemCommand event for the grid as well as intercept the CommandName for the relevant button.  

There doesn't appear to be any RadGrid.ApplyFilters option and from what I have read I need to programatically add all the filters manually.  Is that correct?  If it isn't present it would be a very useful extra bit of functionality for the grid to have.

Any help?

Regards,

Jon
Taiseer
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
137 views
hi guys.
i want to Dynamically change index of menu item.
for Order Tab Index for menu.
how i can implement it?



Yana
Telerik team
 answered on 25 May 2010
2 answers
277 views

Posted 19 hours ago (permalink)

Hi,
I've been looking for the demo application given on the url:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

A snippet for that demo:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
            function ShowEditForm(id, rowIndex)
            {
                var grid = $find("<%= RadGrid1.ClientID %>");
                
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                grid.get_masterTableView().selectItem(rowControl, true);
                        
                window.radopen("EditFormCS.aspx?EmployeeID=" + id, "UserListDialog");
                return false;
            }
            function ShowInsertForm()
            {
               window.radopen("EditFormCS.aspx", "UserListDialog");
               return false;
            }
            function refreshGrid(arg)
            {
             if(!arg)
             {
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");            
                }
                else
                {
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");            
                }
            }

            function RowDblClick(sender, eventArgs)
            {
             window.radopen("EditFormCS.aspx?EmployeeID=" + eventArgs.getDataKeyValue("EmployeeID"), "UserListDialog");
            }
            </script>
        </telerik:RadCodeBlock>


And I could not understand what form element or event fires the function function refreshGrid(arg)
I think, It should be called in  the onClientClose() of the radwindow.Does the given sample  code has some missed parts?

I am trying to run that sample on Sitefinity. But I could not yet.
Shortly the code that I use:

<telerik:RadCodeBlock  ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function ShowEditForm(id, rowIndex) {

                    window.radopen("UserControls/Pages/PaketKapsaminaAlma.aspx?IstId=" + id, "UserListDialog");
                    return false;
                }
                function ShowInsertForm() {

                    window.radopen("UserControls/Pages/PaketKapsaminaAlma.aspx", "UserListDialog");
                    return false;
                }
                function refreshGrid(arg) {
                    
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                }
                
                function RowDblClick(sender, eventArgs) {
                    window.radopen("UserControls/Pages/Istek.PaketKapsaminaAlma?IstId=" + eventArgs.getDataKeyValue("ISTID"), "UserListDialog");
                }
            </script>
        </telerik:RadCodeBlock>


and I call the function refreshGrid(arg) on OnClientClose of RadWindow with ID UserListDialog

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="UserListDialog" runat="server" Title="Paket kapsamına alma" Height="300px"
            Width="300px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" OnClientClose="refreshGrid"
            Modal="true" />
    </Windows>
</telerik:RadWindowManager>

my AjaxRequest function on cs file is:

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument == "Rebind")
        {
            BindMyGrid();//this is my function to bind the grid
           // rdgvIstektenAramaSonuclari.MasterTableView.SortExpressions.Clear();
            //rdgvIstektenAramaSonuclari.MasterTableView.GroupByExpressions.Clear();
            //rdgvIstektenAramaSonuclari.Rebind();
         }
    }  


When  I used the recomended lines below  there were no action

            // rdgvIstektenAramaSonuclari.MasterTableView.SortExpressions.Clear();
            //rdgvIstektenAramaSonuclari.MasterTableView.GroupByExpressions.Clear();
            //rdgvIstektenAramaSonuclari.Rebind();

It works great with my BindMyGrid() function which binds the grid with the related datasource of mine. But it works only once :( .

When  I click the linkbutoton on the grid that opens radwindow no problem with it. And when I close the radwindow, it refreshs the grid perfectly..:) And I push the similar linkbutton on the grid to open the radwindow . And  no problem again. But when I update  the data belong  to grid and close the radwindow, it says that:

Microsoft JScript runtime error: 'null' is null or not an object


the problem is on the
 function refreshGrid(arg) {
                    
                        $find("ctl00_cntUst_ctl00_RadAjaxManager1").ajaxRequest();
                }

 code can't find the object for the second onclientclose event of the radwindow. I've looked everywhere on the forums related with that topic. But I have no solution yet.

I think the solution is using a Radajaxmanager on masterpage. But in that case I should reach the radgrid on the user control.

How can I reference a radgrid on a user control from a masterpage in sitefinity.
Any idea?
Regards

Iana Tsolova
Telerik team
 answered on 25 May 2010
4 answers
167 views
Hello

I'm working on a project where I have a RadGrid in a RadTabStrip. 
When I try to update a row with my EditTemplate, the OnUpdateCommand isn't fired. 
However, if I use my RadGrid out of the RadTabStrip everything works fine.

So the moment I nest those 2 components the error occurs.

Any thoughts how to fix this problem?
I can provide some sample code if needed.

Thanks

EDIT: I'm using a manual update method in the code behind. 
Tsvetoslav
Telerik team
 answered on 25 May 2010
1 answer
154 views
Hi, first time on this forums. Can some one please check this code, Insert/updating is not working.
The new grid will upgrade an old ASP grid upside. I did this in other test page but in this one i can't see what the problem is.
I need it to work with a StroredProcedure but I tried it with an SQL statment and is not working ether.
Any help would be useful, Thnx.

<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="GIA_SITE.Admin.Users" %> 
 
<%@ Register Assembly="Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"
         
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
         
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <table width="100%">        
         <!--Fila 1--> 
        <tr> 
            <td align = "center"
                <asp:UpdatePanel ID="pnlData1" runat="server"
                    <ContentTemplate> 
                        <table class="FondoAdministracion"
                            <tr> 
                                <td> 
                                    &nbsp; 
                                </td> 
                            </tr> 
                            <tr align="left" valign="top"
                                <td> 
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                    <asp:Label ID="lblName" runat="server" Text="Name"></asp:Label></p
                                </td> 
                                <td colspan="9"
                                    <asp:TextBox ID="txtName" runat="server" Width="497px" MaxLength="300"></asp:TextBox> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtName"></asp:RequiredFieldValidator> 
                                </td> 
                                <td> 
                                    &nbsp; 
                                </td> 
                             </tr> 
                            <tr align="left" valign="top"
                                <td> 
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                    <asp:Label ID="lblLogin" runat="server" Text="Login"></asp:Label></p
                                </td> 
                                <td align="left"
                                    <asp:TextBox ID="txtLogin" runat="server" MaxLength="50"></asp:TextBox> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtLogin"></asp:RequiredFieldValidator> 
                                </td> 
                                <td colspan="6"
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                    <asp:Label ID="lblEMail" runat="server" Text="EMail"></asp:Label></p
                                </td> 
                                <td> 
                                    <asp:TextBox ID="txtEMail" runat="server" Columns="30" MaxLength="100"></asp:TextBox> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtEMail"></asp:RequiredFieldValidator> 
                                </td> 
                                <td> 
                                    &nbsp; 
                                </td> 
                             </tr> 
                            <tr align="left" valign="top"
                                <td> 
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                    <asp:Label ID="lblIdCompany" runat="server" Text="Company" ToolTip="Only active companies"></asp:Label></p
                                </td> 
                                <td> 
                                    <asp:DropDownList ID="ddlCompany" runat="server" ToolTip="Only active companies" AutoPostBack="True" OnSelectedIndexChanged="ddlCompany_SelectedIndexChanged"></asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlCompany" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator> 
                                </td> 
                                <td colspan="6"
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                        <asp:Label ID="lblAdmin" runat="server" Text="Admin"></asp:Label> 
                                    </p> 
                                </td> 
                                <td> 
                                    <asp:DropDownList ID="ddlAdmin" runat="server"></asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="reqAdmin" runat="server" ErrorMessage="*" ControlToValidate="ddlAdmin" Display="Dynamic"></asp:RequiredFieldValidator> 
                                </td> 
                                <td> 
                                    &nbsp; 
                                </td> 
                             </tr> 
                            <tr align="left" valign="top"
                                <td> 
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                        <asp:Label ID="lblConsultant" runat="server" Text="External User"></asp:Label> 
                                    </p> 
                                </td> 
                                <td> 
                                    <asp:DropDownList ID="ddlConsultant" runat="server"></asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="reqConsultant" runat="server" ErrorMessage="*" ControlToValidate="ddlConsultant" Display="Dynamic"></asp:RequiredFieldValidator> 
                                </td> 
                                <td colspan="6"
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                    <asp:Label ID="lblResponsible" runat="server" Text="Responsible"></asp:Label></p
                                </td> 
                                <td> 
                                    <asp:DropDownList ID="ddlResponsible" runat="server"></asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="reqResponsible" runat="server" ErrorMessage="*" ControlToValidate="ddlResponsible" Display="Dynamic"></asp:RequiredFieldValidator> 
                                </td> 
                                <td> 
                                    &nbsp; 
                                </td> 
                            </tr> 
                            <tr align="left" valign="top"
                                <td> 
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                        <asp:Label ID="lblMailContact" runat="server" Text="Mail Contact"></asp:Label> 
                                    </p> 
                                </td> 
                                <td> 
                                    <asp:DropDownList ID="ddlMailContact" runat="server"></asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="reqMailContact" runat="server" ErrorMessage="*" ControlToValidate="ddlMailContact" Display="Dynamic"></asp:RequiredFieldValidator> 
                                </td> 
                                <td colspan="6"
                                    &nbsp; 
                                </td> 
                                <td> 
                                    <p> 
                                        <asp:Label ID="lblExpeditor" runat="server" Text="Expeditor"></asp:Label> 
                                    </p> 
                                </td> 
                                <td> 
                                    <asp:DropDownList ID="ddlExpeditor" runat="server"></asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*" ControlToValidate="ddlExpeditor" Display="Dynamic"></asp:RequiredFieldValidator> 
                                </td>  
                                 
                                <td> 
                                    &nbsp; 
                                </td> 
                            </tr> 
                            <tr> 
                                <td colspan="2"
                                    <asp:LinkButton ID="lnkbtnChangePassword" runat="server" OnClick="lnkbtnChangePassword_Click" Visible="False">Reset Password</asp:LinkButton> 
                                </td>  
                            </tr>  
                            <tr> 
                                <td> 
                                    &nbsp; 
                                </td> 
                            </tr> 
                        </table> 
                        <table> 
                            <tr> 
                                <td> 
                                    &nbsp; 
                                </td> 
                            </tr> 
                             <tr> 
                                <td colspan="4" align="center"
                                    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /> 
                                    &nbsp; 
                                    <asp:Button ID="Button1" runat="server" Text="Find" CausesValidation="false" OnClick="btnFind_Click" /> 
                                    &nbsp; 
                                    <asp:Button ID="btnAll" runat="server" Text="All" CausesValidation="false" OnClick="btnAll_Click" /> 
                                    &nbsp; 
                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CausesValidation="false" OnClick="btnCancel_Click" /> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td> 
                                    &nbsp; 
                                </td> 
                            </tr> 
                        </table> 
                    </ContentTemplate> 
                </asp:UpdatePanel> 
            </td> 
        </tr> 
         <!--Fila 2--> 
        <tr> 
            <td align="center" style="height: 553px"
                <asp:UpdatePanel ID="pnlGrid" runat="server" UpdateMode="Always" RenderMode="Inline"
                    <ContentTemplate> 
                        <asp:GridView ID="grdData" runat="server" HorizontalAlign="Center" AutoGenerateColumns="False" AllowSorting="true" 
                            DataKeyNames="Id" AllowPaging="true" PageSize="15" OnRowDataBound="grdData_RowDataBound" OnPageIndexChanging="grdData_PageIndexChanging" 
                            OnSorting="grdData_Sorting" CssClass="tabla"
                           <Columns> 
                             <asp:TemplateField HeaderText="Name" SortExpression="Name" HeaderStyle-ForeColor="#FFFFFF"
                                    <ItemTemplate> 
                                        <asp:LinkButton ID="lnkbName" runat="server" CausesValidation="false" Text='<%# Bind("Name") %>'  
                                        OnCommand="lnkbName_Command" CommandArgument='<%# Eval("Id") %>'></asp:LinkButton> 
                                    </ItemTemplate> 
                                </asp:TemplateField> 
                                <asp:BoundField DataField="Login" HeaderText="Login"  SortExpression="Login" HeaderStyle-ForeColor="#FFFFFF"
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:BoundField DataField="EMail" HeaderText="Email" SortExpression="EMail" HeaderStyle-ForeColor="#FFFFFF" > 
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:BoundField DataField="CompanyName" HeaderText="Company" SortExpression="CompanyName" HeaderStyle-ForeColor="#FFFFFF" > 
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:BoundField DataField="Admin" HeaderText="Admin" SortExpression="Admin" HeaderStyle-ForeColor="#FFFFFF" > 
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:BoundField DataField="Consultant" HeaderText="Consulant" SortExpression="Consultant" HeaderStyle-ForeColor="#FFFFFF" > 
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:BoundField DataField="Responsible" HeaderText="Responsible" SortExpression="Responsible" HeaderStyle-ForeColor="#FFFFFF" > 
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:BoundField DataField="EXPEDITOR" HeaderText="Expeditor" SortExpression="Expeditor" HeaderStyle-ForeColor="#FFFFFF" > 
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:BoundField DataField="Mail_Contact" HeaderText="Mail Contact" SortExpression="Mail_Contact" HeaderStyle-ForeColor="#FFFFFF" > 
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField> 
                                <asp:TemplateField> 
                                    <ItemTemplate> 
                                        <asp:ImageButton ID="imgbtnDelete" runat="server" CommandArgument='<%# Eval("Id") %>' CausesValidation="false" ImageUrl="~/Resourses/Images/Eliminar.gif" OnCommand="imgbtnDelete_Command" BackColor="Transparent" /> 
                                        <asp:ImageButton ID="imgbtnUndelete" runat="server" OnCommand="imgbtnDelete_Command" CommandArgument='<%# Eval("Id") %>' CausesValidation="false" ImageUrl="~/Resourses/Images/Inactivo.gif" BackColor="transparent" Visible="false"/> 
                                    </ItemTemplate> 
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 
                                </asp:TemplateField> 
                            </Columns> 
                            <PagerTemplate> 
                                </br> 
                                <asp:CheckBox Id="chkPaginar" runat="server" Checked="true" AutoPostBack="true" Text="Paging" TextAlign="Left" Visible="true" Enabled="true" OnCheckedChanged="chkPaginar_CheckedChanged"/> 
                                &nbsp;&nbsp;  
                                <span> 
                                    <asp:Label ID="lblPage" runat="server" Text="Page"></asp:Label></span>&nbsp;&nbsp; 
                                <asp:DropDownList ID="ddlPageCounter" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPageCounter_SelectedIndexChanged"></asp:DropDownList> 
                                &nbsp;<asp:Label ID="lblOf" runat="server" Text="Of"></asp:Label>&nbsp; 
                                <asp:Label ID="lblTotalPages" runat="server"></asp:Label> 
                                &nbsp;&nbsp; 
                                Showing 
                                &nbsp; 
                                <asp:Label ID="lblFirstOf" runat="server" Text="1"></asp:Label> 
                                &nbsp;to&nbsp;  
                                <asp:Label ID="lblLastOf" runat="server" Text="10"></asp:Label> 
                                &nbsp;Of&nbsp; 
                                <asp:Label ID="lblTotalReg" runat="server" Text="100"></asp:Label> 
                                <asp:ImageButton ID="btnFirst" runat="server" CommandName="Page" AlternateText="First" 
                                    ToolTip="First Page" CommandArgument="First" ImageUrl="~/Resourses/Images/first.gif" 
                                    BorderWidth="0" BackColor="transparent" CausesValidation="false" /> 
                                <asp:ImageButton ID="btnPrev" runat="server" CommandName="Page" AlternateText="First" 
                                    ToolTip="Prev. Page" CommandArgument="Prev" ImageUrl="~/Resourses/Images/previous.gif" 
                                    BorderWidth="0" BackColor="transparent" CausesValidation="false" /> 
                                &nbsp; 
                                <asp:ImageButton ID="btnNext" runat="server" CommandName="Page" AlternateText="First" 
                                    ToolTip="Next Page" CommandArgument="Next" ImageUrl="~/Resourses/Images/next.gif" 
                                    BorderWidth="0" BackColor="transparent" CausesValidation="false" /> 
                                <asp:ImageButton ID="btnLast" runat="server" CommandName="Page" AlternateText="First" 
                                    ToolTip="Last Page" CommandArgument="Last" ImageUrl="~/Resourses/Images/last.gif" 
                                    BorderWidth="0" BackColor="transparent" CausesValidation="false" />          
                            </PagerTemplate> 
                            <HeaderStyle CssClass="celda" HorizontalAlign="Center" Height="30" /> 
                            <PagerStyle CssClass="celdaPager" HorizontalAlign="Center" /> 
                            <RowStyle CssClass="celda1" /> 
                            <AlternatingRowStyle CssClass="celda2" /> 
                        </asp:GridView> 
                    </ContentTemplate> 
                </asp:UpdatePanel> 
            </td>             
        </tr> 
        <tr> 
            <td> 
                <asp:UpdatePanel ID="updPanelGrid" runat="server" UpdateMode="Conditional"
                    <ContentTemplate> 
                        <telerik:RadGrid  
                                    ID="RadGrid1"  
                                    runat="server"  
                                    DataSourceID="UsrGridSqlDataSource" 
                                    GridLines="None"  
                                    Skin="Outlook"  
                                    ShowStatusBar="True"  
                                    AllowAutomaticInserts="true"  
                                    AllowAutomaticUpdates="true"  
                                    OnInsertCommand="RadGrid1_InsertCommand"  
                                    OnUpdateCommand="RadGrid1_UpdateCommand"  
                                     
                                    AutoGenerateColumns="False" 
                                     ShowFooter="true" OnNeedDataSource="RadGrid1_NeedDataSource" 
                                    >                                 
                            <MasterTableView  
                                     
                                    DataKeyNames="ID"  
                                     
                                    CommandItemDisplay="Top"                                      
                                    InsertItemDisplay="Bottom"  
                                    EditMode="InPlace" 
                                     
                                     
                                    > 
                                <Columns>                                     
                                        <telerik:GridEditCommandColumn  ButtonType="ImageButton">                                           
                                        </telerik:GridEditCommandColumn> 
                                            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name" ColumnEditorID="GridTextBoxColumnEditor1">                                                 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="Login" HeaderText="Login" SortExpression="Login" UniqueName="Login" ColumnEditorID="GridTextBoxColumnEditor2"></telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="EMail" HeaderText="Email" SortExpression="EMail" UniqueName="EMail" ColumnEditorID="GridTextBoxColumnEditor3"></telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Company" SortExpression="CompanyName" UniqueName="CompanyName" ColumnEditorID="GridTextBoxColumnEditor4"></telerik:GridBoundColumn> 
                                            <telerik:GridCheckBoxColumn DataField="Admin" HeaderText="Admin" SortExpression="Admin" UniqueName="Admin" ColumnEditorID="GridTextBoxColumnEditor5"></telerik:GridCheckBoxColumn> 
                                            <telerik:GridCheckBoxColumn DataField="Consultant" HeaderText="Consulant" UniqueName="Consultant" ColumnEditorID="GridTextBoxColumnEditor6"></telerik:GridCheckBoxColumn> 
                                            <telerik:GridCheckBoxColumn DataField="Responsible" HeaderText="Responsible" UniqueName="Responsible" ColumnEditorID="GridTextBoxColumnEditor7"></telerik:GridCheckBoxColumn>                                 
                                            <telerik:GridCheckBoxColumn DataField="EXPEDITOR" HeaderText="Expeditor" SortExpression="Expeditor" UniqueName="EXPEDITOR" ColumnEditorID="GridTextBoxColumnEditor8"></telerik:GridCheckBoxColumn> 
                                            <telerik:GridCheckBoxColumn DataField="External_User" HeaderText="External User" SortExpression="External_User" UniqueName="External_User" ColumnEditorID="GridTextBoxColumnEditor9"></telerik:GridCheckBoxColumn> 
                                            <telerik:GridCheckBoxColumn DataField="Mail_Contact" HeaderText="Mail Contact" SortExpression="Mail_Contact" UniqueName="Mail_Contact" ColumnEditorID="GridTextBoxColumnEditor10"></telerik:GridCheckBoxColumn> 
                                </Columns>                                 
                            </MasterTableView> 
                        </telerik:RadGrid> 
                              
                                         
                    </ContentTemplate> 
                </asp:UpdatePanel> 
                <asp:SqlDataSource ID="UsrGridSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:testConn %>" InsertCommand="INSERT INTO USERS &#13;&#10;&#9;(&#13;&#10;&#9;&#9;NAME, LOGIN, PASSWORD, ID_COMPANY, ADMIN, EMAIL, CONSULTANT, RESPONSIBLE, EXPEDITOR, CHANGE_PASSWORD, MAIL_CONTACT, ID_CREATOR, &#13;&#10;&#9;&#9;CREATE_DATE, ID_UPDATER, UPDATER_DATE&#13;&#10;&#9;)&#13;&#10;&#9;VALUES&#13;&#10;&#9;(&#13;&#10;&#9;&#9;@NAME, @LOGIN, @PASSWORD, @ID_COMPANY, @ADMIN, @EMAIL, @CONSULTANT, @RESPONSIBLE, @EXPEDITOR, @CHANGE_PASSWORD, @MAIL_CONTACT, &#13;&#10;&#9;&#9;@ID_CREATOR, @DATE, @ID_CREATOR, @DATE&#13;&#10;&#9;)" SelectCommand="PA_GET_USERS_LIST" SelectCommandType="StoredProcedure" UpdateCommand="PA_USER_UPDATE" UpdateCommandType="StoredProcedure" OnUpdating="UsrGridSqlDataSource_Updating"
                                 
                                <UpdateParameters> 
                                    <asp:Parameter Name="ID_COMPANY" Type="Int32" /> 
                                    <asp:Parameter Name="ID_UPDATER" Type="Int32" /> 
                                    <asp:Parameter Name="ADMIN" Type="Boolean" /> 
                                    <asp:Parameter Name="CONSULTANT" Type="Boolean" /> 
                                    <asp:Parameter Name="RESPONSIBLE" Type="Boolean" /> 
                                    <asp:Parameter Name="EXPEDITOR" Type="Boolean" /> 
                                    <asp:Parameter Name="CHANGE_PASSWORD" Type="Boolean" /> 
                                    <asp:Parameter Name="MAIL_CONTACT" Type="Boolean" /> 
                                    <asp:Parameter Name="ACTIVE" Type="Boolean" /> 
                                    <asp:Parameter Name="NAME" Type="String" /> 
                                    <asp:Parameter Name="LOGIN" Type="String" /> 
                                    <asp:Parameter Name="PASSWORD" Type="String" /> 
                                    <asp:Parameter Name="EMAIL" Type="String" /> 
                                    <asp:Parameter Name="ID" Type="Int32" /> 
                                </UpdateParameters> 
                                <InsertParameters> 
                                    <asp:Parameter Name="NAME" Type="String" /> 
                                    <asp:Parameter Name="LOGIN" Type="String" /> 
                                    <asp:Parameter Name="PASSWORD" Type="String" /> 
                                    <asp:Parameter Name="ID_COMPANY" Type="Int32" /> 
                                    <asp:Parameter Name="ADMIN" Type="Boolean" /> 
                                    <asp:Parameter Name="EMAIL" Type="String" /> 
                                    <asp:Parameter Name="CONSULTANT" Type="Boolean" /> 
                                    <asp:Parameter Name="RESPONSIBLE" Type="Boolean" /> 
                                    <asp:Parameter Name="EXPEDITOR" Type="Boolean" /> 
                                    <asp:Parameter Name="CHANGE_PASSWORD" Type="Boolean" /> 
                                    <asp:Parameter Name="MAIL_CONTACT" Type="Boolean" /> 
                                    <asp:Parameter Name="ID_CREATOR" Type="Int32" /> 
                                    <asp:Parameter Name="DATE" /> 
                                </InsertParameters> 
                                 
                                 
                            </asp:SqlDataSource> 
            </td> 
        </tr>                 
    </table> 
    <asp:UpdateProgress ID="updPgrsImage" runat="server"
        <ProgressTemplate> 
            <div style="position: absolute; left: 505px; top: 300px; height: 70px; width: 70px;"
                <img src="../Resourses/Images/Wait.gif" alt="In Progress"/>  
            </div>  
        </ProgressTemplate>  
    </asp:UpdateProgress> 
</asp:Content> 
 

Veli
Telerik team
 answered on 25 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?