Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
I have the following template:
                                <EditFormSettings EditFormType="Template">  
                                    <FormTemplate> 
                                        <table id="Table1" cellspacing="1" cellpadding="1" width="400px" border="0">  
                                            <tr> 
                                                <td align="right">  
                                                    Company Name:  
                                                </td> 
                                                <td align="left">  
                                                    <telerik:RadComboBox ID="rcbCompany" runat="server" AppendDataBoundItems="true" 
                                                        DataTextField="CompanyName" DataValueField="CompanyId">  
                                                        <Items> 
                                                            <telerik:RadComboBoxItem Text="Select a Company" Value="" /> 
                                                        </Items> 
                                                    </telerik:RadComboBox> 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td align="right">  
                                                    Role Name:  
                                                </td> 
                                                <td align="left">  
                                                    <telerik:RadComboBox ID="rcbRole" runat="server" DataTextField="RoleName" DataValueField="ApRoleId" 
                                                        Enabled="false">  
                                                        <Items> 
                                                            <telerik:RadComboBoxItem Text="Select a Role" Value="" /> 
                                                        </Items> 
                                                    </telerik:RadComboBox> 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td align="right" colspan="2">  
                                                    <asp:Button ID="Button1" Text="Insert" runat="server" CommandName="PerformInsert" />&nbsp;  
                                                    <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </FormTemplate> 
                                </EditFormSettings> 
 
And I would like to bind the data of the RadComboBoxes in the CodeBehind on the fly.
Which event do I tie into to accomplish this?

I have two events:

    protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
    {  
        if (e.CommandName == "InsertChild")  
        {  
            GridDataItem item = (GridDataItem)e.Item;  
            Guid _sysUserId = (Guid)item.GetDataKeyValue("SysUserId");  
            GridTableView tableView = (GridTableView)item.ChildItem.NestedTableViews[0];  
            tableView.IsItemInserted = true;  
            tableView.Rebind();  
        }    
 
 
and
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
        if (e.Item.OwnerTableView.IsItemInserted && e.Item is GridEditFormInsertItem)  
        {  
            GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;  
 
            RadComboBox rcbCompany = (RadComboBox)item.FindControl("rcbCompany");  
 
            if (rcbCompany != null)  
            {  
                Database db = DatabaseFactory.CreateDatabase();  
                string sqlCommand = "uspGetUserCompaniesAvailable";  
 
                DbCommand dbdbCommand = db.GetStoredProcCommand(sqlCommand);  
 
                db.AddInParameter(dbCommand, "@SYSUSER_ID", DbType.Guid, new Guid(""));  
 
                DataSet ds = db.ExecuteDataSet(dbCommand);  
                rcbCompany.DataSource = ds;  
                //rcbCompany.DataBind();  
            }  
        }  
    }  
 
neither of which will allow me to accomplish my goal. If I attempt to use FindControl in the item command, the control is always null,
If I use it in the databound method, I get an error on DataBind().

What event would I use to bind data to the RadComboBox's
Atlas
Top achievements
Rank 1
 answered on 07 Jul 2010
9 answers
348 views
Hello, telerik!

I have some problem, connected with this grid. An event "ExcelExportCellFormatting" isn't raised when the grid is in process of exporting to excel.How can i call this event other way?
Daniel
Telerik team
 answered on 06 Jul 2010
6 answers
240 views
I'd like a horizontal menu that
    (1) spans the whole window
    (2) with the menu items ranged on the left
so far so good - I can get this "out of the box"
    (3) with just one menu item at the right of the menu bar

ie:  something like:

M1..M2..M3..M4......................................................M5

It's a multi-level menu with a database datasource.

Any suggestions how I might achieve this effect?

Thanks
John
John Hadjioannou
Top achievements
Rank 1
 answered on 06 Jul 2010
0 answers
108 views
Is it possible to do this?  I want to show multi-column info based on a sharepoint list.  can this be bound to a datasource of some sort?

Thanks,
Michael Pacifico
Top achievements
Rank 1
 asked on 06 Jul 2010
1 answer
152 views
hi

I have a Grid that is using inPlace editing mode. When i tried changing the Edit text to Open and Update text to Save in the mastertableview. It didn't get change. How should i go about it? Thanks
IT
Top achievements
Rank 2
 answered on 06 Jul 2010
14 answers
371 views
Hi There,

I have an issue with the Insert/Update Commands. Not sure why, but when the AJAX Enabled Web Application is working on its own from VS05, the Commands are triggered perfectly well. However, having deployed it to the CRM Server Environment, only the DeleteCommand works. I doubt the problem lies with the coding since it works well when its on stand-alone running via the VS05. Any suggestions?

Thanks.
PS: I have attached the working codes as an attachment in case you would be interested to view it.

Regards,
Christopher

ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CUST_DivFeeApportionment._Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body style="margin: 0px;">  
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
    <div> 
        <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Vista" GridLines="None" 
            OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand" 
            OnUpdateCommand="RadGrid1_UpdateCommand" OnNeedDataSource="RadGrid1_NeedDataSource">  
            <MasterTableView CommandItemDisplay="Bottom" AutoGenerateColumns="False">  
                <Columns> 
                    <telerik:GridDropDownColumn DataField="New_name" HeaderText="Division" SortExpression="New_name" 
                        UniqueName="New_name" DataSourceID="SqlDataSource_DivNames" ListValueField="New_name" ListTextField="New_name">  
                    </telerik:GridDropDownColumn> 
                    <telerik:GridBoundColumn DataField="New_PercentageofFee" DataType="System.Double" 
                        HeaderText="Percentage (%)" SortExpression="New_PercentageofFee" UniqueName="New_PercentageofFee" DataFormatString="{0:F2}">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="New_Amount" DataType="System.Decimal" HeaderText="Amount ($)" 
                        SortExpression="New_Amount" UniqueName="New_Amount" DataFormatString="{0:F2}">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" /> 
                    <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" /> 
                    <telerik:GridBoundColumn DataField="New_DivFeeAppId" DataType="System.Guid" Visible="False" UniqueName="New_DivFeeAppId" ReadOnly="True" /> 
                </Columns> 
                <EditFormSettings> 
                    <EditColumn UniqueName="EditCommandColumn1">  
                    </EditColumn> 
                </EditFormSettings> 
            </MasterTableView> 
            <ValidationSettings EnableValidation="False" /> 
        </telerik:RadGrid> 
        <asp:SqlDataSource ID="SqlDataSource_DivNames" runat="server" ConnectionString="<%$ ConnectionStrings:CPG_MSCRMConnectionString %>" 
            SelectCommand="SELECT [New_name] FROM [New_distributionlist] WHERE (([New_Type] = @New_Type) AND ([DeletionStateCode] = @DeletionStateCode) AND ([statecode] = @statecode))">  
            <SelectParameters> 
                <asp:Parameter DefaultValue="1" Name="New_Type" Type="Int32" /> 
                <asp:Parameter DefaultValue="0" Name="DeletionStateCode" Type="Int32" /> 
                <asp:Parameter DefaultValue="0" Name="statecode" Type="Int32" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
    </div> 
    </form> 
</body> 
</html> 
 

C#:
using System;  
using System.Data;  
using System.Configuration;  
using System.Collections;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
using System.Data.Sql;  
using System.Data.SqlClient;  
using CUST_DivFeeApportionment.CRMSDK;  
using Telerik.Web.UI;  
 
namespace CUST_DivFeeApportionment  
{  
    public partial class _Default : System.Web.UI.Page  
    {  
        protected static string projGuid = string.Empty;  
        protected static CrmService service;  
        protected static string deletionSC = "0";  
        protected static string sc = "0";  
 
        protected string OrgName = ConfigurationManager.AppSettings["OrgName"];  
        protected string crmServiceURL = ConfigurationManager.AppSettings["CRMServiceUrl"];  
 
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
                // Set up the CRM Service.  
                CrmAuthenticationToken token = new CrmAuthenticationToken();  
                token.AuthenticationType = 0;  
                token.OrganizationName = OrgName;  
 
                service = new CrmService();  
                service.Url = crmServiceURL;  
                service.CrmAuthenticationTokenValue = token;  
                service.Credentials = System.Net.CredentialCache.DefaultCredentials;  
 
                projGuid = Request.QueryString["id"];  
                //hdProjGuid.Value = projGuid;  
                //The commented line that follows is for stand-alone testing of application  
                //hdProjGuid.Value = "6054A4CD-CF45-DE11-8F2B-0003FF046930";  
                //projGuid = "6054A4CD-CF45-DE11-8F2B-0003FF046930";  
            }  
        }  
 
        protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)  
        {  
            RadAjaxManager1.Alert("Update");  
        }  
 
        protected void RadGrid1_DeleteCommand(object source, GridCommandEventArgs e)  
        {  
            RadAjaxManager1.Alert("Delete");  
        }  
 
        protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)  
        {  
            RadAjaxManager1.Alert("Insert");  
        }  
 
        public DataSet GetDataTable(string query)  
        {  
            SqlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["CPG_MSCRMConnectionString"].ToString());  
            SqlDataAdapter sqlDA = new SqlDataAdapter();  
            sqlDA.SelectCommand = new SqlCommand(query, sqlConn);  
 
            DataSet ds = new DataSet();  
 
            sqlConn.Open();  
            try 
            {  
                sqlDA.Fill(ds);  
            }  
            finally 
            {  
                sqlConn.Close();  
            }  
 
            return ds;  
        }  
 
        protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
            //using StringBuilder to concatenate the Query String for the Select Command  
            //for the RadGrid  
            System.Text.StringBuilder query = new System.Text.StringBuilder();  
            query.Append("SELECT [New_name], [New_Amount], [New_PercentageofFee], [New_DivFeeAppId] FROM [New_DivFeeApp] WHERE [New_RelatingProjectId] = '");  
            query.Append(projGuid);  
            query.Append("' AND [DeletionStateCode] = '");  
            query.Append(deletionSC);  
            query.Append("' AND [statecode] = '");  
            query.Append(sc);  
            query.Append("'");  
 
            RadGrid1.DataSource = GetDataTable(query.ToString());  
        }  
    }  
}  
 
Dan
Top achievements
Rank 2
 answered on 06 Jul 2010
2 answers
67 views
Dear all,
help me to display resource name in the available time slot.

Jagdish
Top achievements
Rank 1
 answered on 06 Jul 2010
3 answers
200 views
hi
i have this radtreeview
                                    <telerik:RadTreeView  ID="rts1" runat="server" CheckBoxes="True" TriStateCheckBoxes="true" Skin="Outlook"> 
                                        <Nodes> 
                                            <telerik:RadTreeNode Text="01 PRODOTTO FINITO " Value="P"> 
                                                <Nodes> 
                                                    <telerik:RadTreeNode Text="CIFRATURA" Value="1"> 
                                                        <Nodes> 
                                                            <telerik:RadTreeNode Text="PER SISTEMI(cifrature per sistemi)"> 
                                                                <Nodes> 
                                                                    <telerik:RadTreeNode Checkable="false"> 
                                                                        <NodeTemplate> 
                                                                            <div class="entry"> 
                                                                                <table class="pain"> 
                                                                                    <tr> 
                                                                                        <td>Quante chiavi caduno</td> 
                                                                                        <td> 
                                                                                            <asp:RadioButton runat="server" ID="opt" GroupName="optCHIAVI" Text="std da corredo" /> 
                                                                                            <asp:RadioButton runat="server" ID="RadioButton8" GroupName="optCHIAVI" Text="Senza chiavi" /> 
                                                                                        </td> 
                                                                                        <td> 
                                                                                            <asp:RadioButton runat="server" ID="RadioButton9" GroupName="optCHIAVI" Text="Altro" /> 
                                                                                            <telerik:RadTextBox runat="server" ID="txtaltro" MaxLength="2" /> 
                                                                                        </td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>CHIAVE (articolo comm.)</td> 
                                                                                        <td><telerik:RadTextBox ID="txtChi" runat="server" /></td> 
                                                                                        <td></td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td colspan="3">&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>Nuovo piano (ns. scelta)</td> 
                                                                                        <td><asp:RadioButton runat="server" ID="optPiano" GroupName="Piano" /></td> 
                                                                                        <td>&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td colspan="3">&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>A campione allegato</td> 
                                                                                        <td><asp:RadioButton runat="server" ID="RadioButton10" GroupName="Piano" /></td> 
                                                                                        <td>&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td colspan="3">&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>Ampliamento</td> 
                                                                                        <td><asp:RadioButton runat="server" ID="RadioButton11" GroupName="Piano" /></td> 
                                                                                        <td>&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td colspan="3">&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>Ripetizione</td> 
                                                                                        <td><asp:RadioButton runat="server" ID="RadioButton12" GroupName="Piano" /></td> 
                                                                                        <td>&nbsp;</td> 
                                                                                    </tr>  
                                                                                    <tr> 
                                                                                        <td colspan="3">&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>MARCATURA CHIAVI</td> 
                                                                                        <td>Piano+Progressivo</td> 
                                                                                        <td> 
                                                                                            <asp:RadioButton runat="server" ID="RadioButton13" GroupName="CHIAVIKD" Text="Si" /> 
                                                                                            <asp:RadioButton runat="server" ID="RadioButton14" GroupName="CHIAVIKD" Text="No" /> 
                                                                                        </td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>MARCATURA CHIAVI</td> 
                                                                                        <td>Piano+Progressivo</td> 
                                                                                        <td> 
                                                                                            <asp:RadioButton runat="server" ID="RadioButton15" GroupName="CHIAVIp" Text="Si" /> 
                                                                                            <asp:RadioButton runat="server" ID="RadioButton16" GroupName="CHIAVIp" Text="No" /> 
                                                                                        </td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td colspan="3">&nbsp;</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>NOTE:</td> 
                                                                                        <td colspan="2"> 
                                                                                            <telerik:RadTextBox runat="server" ID="txtNOTE" TextMode="MultiLine" Height="45" Width="95%" /> 
                                                                                        </td> 
                                                                                    </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                </table> 
                                                                            </div> 
                                                                        </NodeTemplate> 
                                                                    </telerik:RadTreeNode> 
                                                                </Nodes> 
                                                            </telerik:RadTreeNode> 
                                                            <telerik:RadTreeNode Text="ALTRE(altre cifrature)"> 
                                                            </telerik:RadTreeNode>                                                             
                                                        </Nodes> 
                                                    </telerik:RadTreeNode> 
                                                    <telerik:RadTreeNode Text="CORPO" Value="2"> 
                                                        <Nodes> 
                                                            <telerik:RadTreeNode Text=" "> 
                                                                <NodeTemplate> 
                                                                    <div> 
                                                                        <asp:Label ID="lbl" runat="server" Text="FINITURA CORPO" /> 
                                                                        <telerik:RadTextBox runat="server" ID="txt"></telerik:RadTextBox> 
                                                                    </div> 
                                                                </NodeTemplate> 
                                                            </telerik:RadTreeNode> 
                                                            <telerik:RadTreeNode Text="LOGO CORPO ESTERNO"> 
                                                                <Nodes> 
                                                                    <telerik:RadTreeNode Text="POSIZIONE"> 
                                                                        <Nodes> 
                                                                            <telerik:RadTreeNode Text="FRONTE" /> 
                                                                            <telerik:RadTreeNode Text="RETRO" /> 
                                                                        </Nodes> 
                                                                    </telerik:RadTreeNode> 
                                                                    <telerik:RadTreeNode Text="NEUTRO" /> 
                                                                </Nodes> 
                                                            </telerik:RadTreeNode> 
                                                        </Nodes> 
                                                    </telerik:RadTreeNode> 
                                                    <telerik:RadTreeNode Text="GANCIO" Value="3"> 
                                                        <Nodes> 
                                                            <telerik:RadTreeNode Text="" Checkable="false"> 
                                                                <NodeTemplate> 
                                                                    <div class="entry"> 
                                                                        <table class="plain"> 
                                                                            <tbody> 
                                                                                <tr> 
                                                                                    <td>LUCE(h in mm)</td> 
                                                                                    <td><telerik:RadTextBox runat="server" ID="txt1" /></td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td><b>MATERIALE</b></td> 
                                                                                    <td><telerik:RadTextBox runat="server" ID="RadTextBox4" /></td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td>ALTRO/FINITURA</td> 
                                                                                    <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td><b>COD</b></td> 
                                                                                    <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td> 
                                                                                </tr>                                                                                                                                                                                                                                                 
                                                                            </tbody> 
                                                                        </table> 
                                                                    </div> 
                                                                </NodeTemplate> 
                                                            </telerik:RadTreeNode> 
                                                        </Nodes> 
                                                    </telerik:RadTreeNode> 
                                                    <telerik:RadTreeNode Text="CONFEZIONE" Value="4"> 
                                                        <Nodes> 
                                                            <telerik:RadTreeNode Text="STANDARD" /> 
                                                            <telerik:RadTreeNode Text="ALTRO"> 
                                                                <Nodes> 
                                                                    <telerik:RadTreeNode Text="SINGOLA" Checkable="False"> 
                                                                        <Nodes> 
                                                                            <telerik:RadTreeNode Text="No" /> 
                                                                            <telerik:RadTreeNode Text="SI"> 
                                                                                <Nodes> 
                                                                                    <telerik:RadTreeNode Text="" Checkable="false"> 
                                                                                        <NodeTemplate> 
                                                                                           <div class="entry"> 
                                                                                                <table class="plain"> 
                                                                                                    <tbody> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="opt" GroupName="optionB" /></td> 
                                                                                                            <td>STANDARD</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton1" GroupName="optionB" /></td> 
                                                                                                            <td>NEUTRA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton2" GroupName="optionB" /></td> 
                                                                                                            <td>PERZONALIZZATA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton3" GroupName="optionB" /></td> 
                                                                                                            <td>SKIN PACK</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton4" GroupName="optionB" /></td> 
                                                                                                            <td>BLISTER</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td> 
                                                                                                            <td>SACCHETTO</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton6" GroupName="optionB" /></td> 
                                                                                                            <td>SCATOLA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><b>Codice Confezione</b></td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td>Etichette</td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td> 
                                                                                                        </tr>                                                                                                  
                                                                                                        <tr> 
                                                                                                            <td><b>COD</b></td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td> 
                                                                                                        </tr>   
                                                                                                        <tr> 
                                                                                                            <td>NOTE</td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox9" /></td> 
                                                                                                        </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                    </tbody> 
                                                                                                </table> 
                                                                                            </div>                                                                                     
                                                                                        </NodeTemplate> 
                                                                                    </telerik:RadTreeNode> 
                                                                                </Nodes> 
                                                                            </telerik:RadTreeNode> 
                                                                        </Nodes> 
                                                                    </telerik:RadTreeNode> 
                                                                    <telerik:RadTreeNode Text="MULTIPLA" Checkable="False"> 
                                                                        <Nodes> 
                                                                            <telerik:RadTreeNode Text="No" /> 
                                                                            <telerik:RadTreeNode Text="SI"> 
                                                                                <Nodes> 
                                                                                    <telerik:RadTreeNode Text="" Checkable="false"> 
                                                                                        <NodeTemplate> 
                                                                                           <div class="entry"> 
                                                                                                <table class="plain"> 
                                                                                                    <tbody> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="opt" GroupName="optionB" /></td> 
                                                                                                            <td>STANDARD</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton1" GroupName="optionB" /></td> 
                                                                                                            <td>NEUTRA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton2" GroupName="optionB" /></td> 
                                                                                                            <td>PERZONALIZZATA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton3" GroupName="optionB" /></td> 
                                                                                                            <td>SKIN PACK</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton4" GroupName="optionB" /></td> 
                                                                                                            <td>BLISTER</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td> 
                                                                                                            <td>SACCHETTO</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton6" GroupName="optionB" /></td> 
                                                                                                            <td>SCATOLA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><b>Codice Confezione</b></td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td>Etichette</td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td> 
                                                                                                        </tr>                                                                                                  
                                                                                                        <tr> 
                                                                                                            <td><b>COD</b></td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td> 
                                                                                                        </tr>   
                                                                                                        <tr> 
                                                                                                            <td>NOTE</td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox8" /></td> 
                                                                                                        </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                    </tbody> 
                                                                                                </table> 
                                                                                            </div>                                                                                     
                                                                                        </NodeTemplate> 
                                                                                    </telerik:RadTreeNode>                                                                                     
                                                                                </Nodes> 
                                                                            </telerik:RadTreeNode>                                                                             
                                                                        </Nodes> 
                                                                    </telerik:RadTreeNode> 
                                                                    <telerik:RadTreeNode Text="INDUSTRIALE" Checkable="False"> 
                                                                        <Nodes> 
                                                                            <telerik:RadTreeNode Text="No" /> 
                                                                            <telerik:RadTreeNode Text="SI"> 
                                                                                <Nodes> 
                                                                                    <telerik:RadTreeNode Text="" Checkable="false"> 
                                                                                        <NodeTemplate> 
                                                                                           <div class="entry"> 
                                                                                                <table class="plain"> 
                                                                                                    <tbody> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton2" GroupName="optionB" /></td> 
                                                                                                            <td>PERZONALIZZATA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td> 
                                                                                                            <td>SACCHETTO</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton6" GroupName="optionB" /></td> 
                                                                                                            <td>SCATOLA</td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td><b>Codice Confezione</b></td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td>Etichette</td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td> 
                                                                                                        </tr>                                                                                                  
                                                                                                        <tr> 
                                                                                                            <td><b>COD</b></td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td> 
                                                                                                        </tr> 
                                                                                                        <tr> 
                                                                                                            <td>NOTE</td> 
                                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox10" /></td> 
                                                                                                        </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                    </tbody> 
                                                                                                </table> 
                                                                                            </div>                                                                                     
                                                                                        </NodeTemplate> 
                                                                                    </telerik:RadTreeNode>                                                                                     
                                                                                </Nodes> 
                                                                            </telerik:RadTreeNode>                                                                             
                                                                        </Nodes> 
                                                                    </telerik:RadTreeNode> 
                                                                    <telerik:RadTreeNode Text="" Checkable="false" Expanded="true"> 
                                                                        <NodeTemplate> 
                                                                           <div class="entry"> 
                                                                                <table class="plain"> 
                                                                                    <tbody> 
                                                                                        <tr><th colspan="2">IMBALLAGGIO PER SPEDIZIONE</th></tr> 
                                                                                        <tr> 
                                                                                            <td>Etichette</td> 
                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td> 
                                                                                        </tr>                                                                                                  
                                                                                        <tr> 
                                                                                            <td><b>COD</b></td> 
                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td> 
                                                                                        </tr>   
                                                                                        <tr> 
                                                                                            <td>NOTE</td> 
                                                                                            <td><telerik:RadTextBox runat="server" ID="RadTextBox8" /></td> 
                                                                                        </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                    </tbody> 
                                                                                </table> 
                                                                            </div>                                                                              
                                                                        </NodeTemplate> 
                                                                    </telerik:RadTreeNode>                                                                                                                                        
                                                                </Nodes> 
                                                            </telerik:RadTreeNode> 
                                                        </Nodes> 
                                                    </telerik:RadTreeNode> 
                                                    <telerik:RadTreeNode Text="ETICHETTE SU PRODOTTO" Value="5"> 
                                                        <Nodes> 
                                                            <telerik:RadTreeNode Checkable="false"> 
                                                                <NodeTemplate> 
                                                                    <div class="entry"> 
                                                                        <table class="plain"> 
                                                                            <tbody> 
                                                                                <tr> 
                                                                                    <td>Allegato</td> 
                                                                                    <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td> 
                                                                                </tr>                                                                                                  
                                                                                <tr> 
                                                                                    <td><b>COD</b></td> 
                                                                                    <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td> 
                                                                                </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
                                                                            </tbody> 
                                                                        </table>                                                                         
                                                                    </div> 
                                                                </NodeTemplate> 
                                                            </telerik:RadTreeNode> 
                                                        </Nodes> 
                                                    </telerik:RadTreeNode> 
                                                    <telerik:RadTreeNode Text="Codice a Barre:" Value="6"> 
                                                        <Nodes> 
                                                            <telerik:RadTreeNode Checkable="false"> 
                                                                <NodeTemplate> 
                                                                    <div class="entry"> 
                                                                        <table class="plain"> 
                                                                            <tbody> 
                                                                                <tr> 
                                                                                    <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td> 
                                                                                    <td>SENZA CODICE A BARRE</td> 
                                                                                </tr> 
                                                                                <tr> 
                                                                                    <td><asp:RadioButton runat="server" ID="RadioButton7" GroupName="optionB" /></td> 
                                                                                    <td>CON CODICE A BARRE DELL'ARTICOLO PADRE</td> 
                                                                                </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                            </tbody> 
                                                                        </table>                                                                         
                                                                    </div> 
                                                                </NodeTemplate> 
                                                            </telerik:RadTreeNode> 
                                                        </Nodes> 
                                                    </telerik:RadTreeNode> 
                                                    <telerik:RadTreeNode Checkable="false" Expanded="true"> 
                                                        <NodeTemplate> 
                                                            <div class="entry"> 
                                                                <table class="plain"> 
                                                                    <tbody> 
                                                                        <tr>                                                                             
                                                                            <td>NOTE</td> 
                                                                            <td> 
                                                                                <asp:CheckBox runat="server" ID="chkc" /> 
                                                                                COMMESSA APPARTENENTE AD UN SET 
                                                                            </td> 
                                                                        </tr> 
                                                                        <tr> 
                                                                            <td><telerik:RadTextBox runat="server" ID="txtMul" TextMode="MultiLine" /></td>                                                                             
                                                                        </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                    </tbody> 
                                                                </table>                                                                         
                                                            </div>                                                             
                                                        </NodeTemplate> 
                                                    </telerik:RadTreeNode>                                                
                                                </Nodes> 
                                            </telerik:RadTreeNode> 
                                        </Nodes> 
                                    </telerik:RadTreeView>      

what i want is when i unchecked parentnode i want all childnode to be unchecked too

how can i do it?

regards
webster
Nikolay Tsenkov
Telerik team
 answered on 06 Jul 2010
5 answers
92 views
Hi,

I am trying to adding a drop down for filter in my child grid,but i am facing problem in it.
Please help, is there any tutorial for the same.
I have already gone through below link.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx

But i am getting error like "You must override Clone() for a derived grid column".
Pavlina
Telerik team
 answered on 06 Jul 2010
1 answer
132 views
hI,

Is there any other alternative to delete rows from the grid apart from using GridClientDeleteColumn. I cannot use GridClientDeleteColumn if I have a scenario where user selects the rows and on click of some button, I need to delete the rows from the grid using Javsacript.

Please let me know.
Pavlina
Telerik team
 answered on 06 Jul 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?