Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 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
281 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
170 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
157 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
2 answers
191 views
Hi,

I have databound my grid with an IEnumerable<> of objects. One of the properties of this object is an enum type. This works great, and the enum type is displayed as expected in the grid, however filtering this column always fails. I used a GridBoundColumn to display the enum value in the grid.

When I enter a value in the filter box, I get a Telerik.Web.UI.ParseException with the message "Neither of the types 'String' and 'MyEnumType' converts to the other"...

Am I using the wrong column type to display enum values? Is it possible to show a dropdownlist with all possible enum values for filtering instead of a textbox in which the user can enter anything?

Kind Regards,
Kristof
Tsvetoslav
Telerik team
 answered on 25 May 2010
6 answers
125 views
Hello, I was use old radDateTimePicker (2007).
I upgraded my controls to Q1 2010 but I had a problem that :

I have a radDateTimePicker
28.04.2010
My cursor  at  |28.04.2010 and I was entering this input : '1' and new view was 18.04.2010
But new telerik DateTimePicker control's view is 128.04.2010.
I want to my input like old control action. I want to write '1' and '2' is auto clear. |28.04.2010 -> 18.04.2010
I hope I told my problem.
Maria Ilieva
Telerik team
 answered on 25 May 2010
3 answers
98 views
Hello,

I'm using ASP.NET Ajax RadMenu in several websites and recently I've noticed that the 3rd level is not visible when I browse the websites with IE 6 or 7.

You can see the problem at:
www.applisonix.com
On the menu go to News and Events -> News. On IE 8 and Firefox you'll see a 3rd level with News 2009 and News 2010.
However, On IE 6 and 7 you'll see the text for a second and then it will disappear.

I'm using a custom skin:
http://www.applisonix.com/skins/Menu.applisonixSkin.css

What could be the problem?
Shay Grinstein
Top achievements
Rank 1
 answered on 25 May 2010
3 answers
147 views
I need to obtain the contents of the RadEditor in RTF on the server for use with Active Reports to generate a PDF.  When I try using the new ExportToRtf method on the RadEditor it simply sends the output back to the client browser.  I would prefer to capture the RTF content generated on the server.  Is there a way to accomplish this?
Rumen
Telerik team
 answered on 25 May 2010
2 answers
161 views
Can I and what is the best way to dynamically resize the height of a RadPageView? 

In my RadMultiPage, I have a RadPageView that contains an iframe with src="Page1.aspx" initially.  Right now, Page1.aspx codebehind may Response.Redirect to Page2.aspx.  However, Page2.aspx has a greater height than Page1.aspx.  I'm open to a codebehind and/or javascript solution.  Or is there is a different element that should be resized?

Thanks,
Carmen

Yana
Telerik team
 answered on 25 May 2010
1 answer
85 views
Hi,
I am getting an issue with the radwindow which is being used together with a radscheduler to show appoinment details.
The problem I am getting is that there is like a horrible "toolbar" surrounded by a red box in the jpg attached. How should I remove this tool bar. I am using the following to define the radwindow:
Radwindow1 is shown below, for testing purposes, and wndInsertCreate is the one I am using.


Thank you for your help!
Swadesh


<telerik:RadWindowManager ID="RadWindowManager1" runat="server"  >
            <Windows>
                <telerik:RadWindow
                    id="wndInsertCreate"
                    runat="server"
                    showcontentduringload="false"
                    width="668px"
                    height="330px"
                    title="test"
                    Behavior="Close, Move"
                    Skin="Vista"
                    backcolor="gray"
                    Modal="true"    
                    VisibleStatusbar="false"   
                    OffsetElementId = "<%#RadScheduler1.ClientID %>"      
                    OnClientClose="OnClientclose"
                  >
                </telerik:RadWindow>
              <telerik:RadWindow ID="RadWindow1" VisibleOnPageLoad="true" Title="Google"
                    IconUrl="http://www.google.com/favicon.ico" runat="server">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>






Peter
Telerik team
 answered on 25 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?