Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views
Hi,

I am currently having a few problems with nested RadGrids. I have created a custom class called "Project" which has the following properties:

  • ProjectId (Guid)
  • ProjectName (string)
  • Status (string)

I then retrieved all Projects from a database, and stored them within a List<Project> object. I then bound my RadGrid to this list. This displays the grid in the following way:

ProjectID                                                                               ProjectName                                Status
4304e5b6-6264-df11-8942-00155d031a14                         Test 1                                          In Development

I don't want to show the ProjectId column from the grid. I cannot remove the ProjectId property from the Project class because I need to set this value so I can later on retrieve all "Tasks" belonging to the Project. Is there any way I can remove the column from the grid?

Thanks,
Roshan

Princy
Top achievements
Rank 2
 answered on 01 Jun 2010
1 answer
162 views
hi

i have a problem getting all checkbox checked in data grid..

when i try to debbug all checkbox were unchecked eventhough they were checked from my page..

here is my page
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Main.Master" CodeBehind="NotificaDiVariazione.aspx.vb" Inherits="WebBIODemo.NotificaDiVariazione" %> 
<%@ Register TagPrefix="wuc" TagName="pgModAnagUC" src="~/WUCnotifica/pgModAnag.ascx" %> 
<%@ Register TagPrefix="wuc" TagName="pgModAttUC" src="~/WUCnotifica/pgModAtt.ascx" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server">    
<telerik:RadCodeBlock runat="server" ID="rdbScript"
    <!-- content start --> 
    <script type="text/javascript"
          var myWidth = 0myHeight = 0
           
          function setWH(){ 
              if( typeof( window.innerWidth ) == 'number' ) { 
                //Non-IE 
                myWidth = window.innerWidth; 
                myHeight = window.innerHeight; 
              } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 
                //IE 6+ in 'standards compliant mode' 
                myWidth = document.documentElement.clientWidth; 
                myHeight = document.documentElement.clientHeight; 
              } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 
                //IE 4 compatible 
                myWidth = document.body.clientWidth; 
                myHeight = document.body.clientHeight; 
              }  
               
              myWidthmyWidth = myWidth * (90 / 100); 
              myHeightmyHeight = myHeight * (90 / 100);  
               
              return [myWidth, myHeight];   
          }   
           
        function Set_Cookie(nomeCookie, value, expires, path, domain, secure ) 
        { 
            // set time, it's in milliseconds 
            var today = new Date(); 
            today.setTime( today.getTime() ); 
 
            if ( expires ) 
            { 
            expiresexpires = expires * 60 * 1000; 
            } 
            var expires_date = new Date( today.getTime() + (expires) ); 
 
            document.cookie = nomeCookie + "=" + unescape(value) + 
            ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
            ( ( path ) ? ";path=" + path : "" ) + 
            ( ( domain ) ? ";domain=" + domain : "" ) + 
            ( ( secure ) ? ";secure" : "" ); 
        } 
                       
        function btnSearch(n){ 
            var combo = $find("<%= UFFICIO.ClientID %>"); 
            var value = combo.get_value(); 
            var id = document.getElementById("<%= ID.ClientID %>"); 
                         
            if(value == "" || value == null){ 
                alert("Select Ufficio"); 
                return false 
            };                         
             
            if (n == "RappresentantiLegali_Ricerca" && (id.value == null || id.value == "")){ 
                alert("Scegliere Prima il Dichiarante"); 
                return false 
            }; 
                                    
 
            var v = setWH(); 
 
            var oWindow = radopen("CercaDichiarante.aspx?Uff=" + value + "&P=" + unescape(n), "rwdCerca"); 
            oWindow.setSize (v[0], v[1]);   
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close); 
            oWindow.set_modal(true); 
            oWindow.center();  
            oWindow.set_status("");           
            return false;          
        }  
         
        function EditDich(){ 
 
            var id = document.getElementById("<%= ID.ClientID %>"); 
             
            if(id.value == "" || id.value == null){ 
                alert("Manca il dichiarante"); 
                return false 
            };                                             
 
            var v = setWH(); 
             
            alert(id.value); 
 
            var oWindow = radopen("Dichiaranti.aspx?MMod=M&DA=C&id=" + id.value, "rwdCerca"); 
            oWindow.setSize (v[0], v[1]);   
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close); 
            oWindow.set_modal(true); 
            oWindow.center();  
            oWindow.set_status("");           
            return false;          
        }                 
         
        function getId(arg) 
        { 
                var oArg = arg.split("|"); 
                 
                if (oArg[1] == "D"){ 
                    var id = document.getElementById("<%= ID.ClientID %>");              
                    id.value = oArg[0]; 
                    var btn = document.getElementById("<%= btnDupNotif.ClientID %>"); 
                    btn.disabled = false
                }  
                if (oArg[1] == "R"){     
                    var r = document.getElementById("<%= IDRAPPRESENTANTE.ClientID %>");                  
                    r.value = oArg[0]; 
                } 
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");                       
        }      
         
        function Rebind(arg){ 
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Refresh");  
        } 
                 
        function ShowUPOForm(){ 
            var txt = document.getElementById("<%= ID.ClientID %>"); 
            var combo = $find("<%= UFFICIO.ClientID %>"); 
            var value = combo.get_value();                
            var PR = null;         
             
            if(txt.value == "" || txt.value == null){ 
                alert("Scegliere prima il dichiarante"); 
                return false 
            }; 
            PR = txt.value + "|" + value //+ "|" + P.checked + "|" + T.checked + "|" + I.checked + "|" + Z.checked + "|" + A.checked;                              
 
            var v = setWH(); 
 
            var oWindow = radopen("EditUnitaProduttiva.aspx?P=" + PR, "rwdUPO"); 
            oWindow.setSize (v[0], v[1]);   
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Reload); 
            oWindow.set_modal(true); 
            oWindow.center();  
            oWindow.set_status("");           
            return false;          
        } 
         
        function EditUPOForm(n){                                
 
            var v = setWH(); 
 
            var oWindow = radopen("EditUnitaProduttiva.aspx?ID=" + n, "rwdUPO"); 
            oWindow.setSize (v[0], v[1]);   
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Reload); 
            oWindow.set_modal(true); 
            oWindow.center();  
            oWindow.set_status("");           
            return false;          
        }  
         
        function EditRappr(n){                                
 
            var v = setWH(); 
 
            var oWindow = radopen("RappresentantiLegali.aspx?MMod=M&DA=C&id=" + n, "rwdUPO"); 
            oWindow.setSize (v[0], v[1]);   
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Reload); 
            oWindow.set_modal(true); 
            oWindow.center();  
            oWindow.set_status("");           
            return false;          
        }  
         
        function InsRappr(){                                
 
            var v = setWH(); 
 
            var oWindow = radopen("RappresentantiLegali.aspx?Mod=I&DA=C", "rwdUPO"); 
            oWindow.setSize (v[0], v[1]);   
            oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Reload); 
            oWindow.set_modal(true); 
            oWindow.center();  
            oWindow.set_status("");           
            return false;          
        }   
         
            function Insert(c,n) 
            { 
               var rUrl; 
               var p; 
               var In = document.getElementById("<%= txtID.ClientID %>"); 
               var combo; 
               var value; 
                
                switch(c){ 
                    case "e": 
                        if (n == "" || n == null){ 
                            alert("Scegliere prima l'U.P.O."); 
                            return false                             
                        }; 
                        var IdD = $find("<%= txtIDDICHSCHEMA.ClientID %>"); 
                        p = n + "|" + In.value + "|" + IdD.get_value(); 
                        rUrl = "EditSezioneE.aspx?T=I&P=" + p 
                         
                        window.radopen(rUrl, "rwdInsEdit"); 
                        return false;    
                                              
                        break; 
                    case "f": 
                        combo = $find("<%= lstIDUPOF.ClientID %>"); 
                        value = combo.get_value() 
                        if (value == "" || value == null){ 
                            alert("Scegliere prima l'U.P.O."); 
                            return false                             
                        };                       
                        p = combo.get_value() + "|" + In.value;  
                        rUrl = "EditSezioneF.aspx?P=" + p   
                         
                        var v = setWH(); 
                        var oWindow = radopen(rUrl, "rwdSezF"); 
                        oWindow.setSize (v[0], "600px");   
                        oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Reload); 
                        oWindow.set_modal(true); 
                        oWindow.center();  
                        oWindow.set_status("");                              
                        return false; 
                                               
                        break;                                                                    
                }             
            }    
                      
            function refreshGrid(arg) 
            { 
             if(!arg) 
             { 
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("rebindSezioneE");             
                } 
                else 
                { 
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("rebindSezioneE");             
                } 
            }     
             
            function Edit(id, rowIndex, t) 
            { 
               var In = document.getElementById("<%= txtID.ClientID %>"); 
               var combo; 
               var IdD = $find("<%= txtIDDICHSCHEMA.ClientID %>"); 
               var rUrl; 
             
                var grid; 
                switch(t){                         
                    case "F": 
                        grid = $find("<%= grdAppezz.ClientID %>"); 
                        combo = $find("<%= lstIDUPOF.ClientID %>"); 
                        rUrl = "EditSezioneF.aspx?Id=" + id;   
                         
                        var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element(); 
                        grid.get_masterTableView().selectItem(rowControl, true);                         
                         
                        var v = setWH(); 
                        var oWindow = radopen(rUrl, "rwdSezF"); 
                        oWindow.setSize (v[0], "600px");   
                        oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Reload); 
                        oWindow.set_modal(true); 
                        oWindow.center();  
                        oWindow.set_status("");                              
                        return false;                         
                         
                        break; 
                                               
                }                                         
            }    
             
        function onBlur(sender, args){ 
            var boo = IsNumeric(sender.get_value()); 
             
            if (boo == false){ 
                alert("must be a numeric number"); 
            }             
        }  
            
        function IsNumeric(strString) 
           //  check for valid numeric strings   
           { 
           var strValidChars = "0123456789.-"
           var strChar; 
           var blnResult = true
 
           if (strString.length == 0) return false; 
 
           //  test strString consists of valid characters listed above 
           for (i = 0; i < strString.length && blnResult == true; i++) 
              { 
              strChar = strString.charAt(i); 
              if (strValidChars.indexOf(strChar) == -1) 
                 { 
                 blnResult = false
                 } 
              } 
           return blnResult; 
           } 
            
           function StrutturaInsMod(p, t){  
                var rUrl; 
                switch(t){ 
                    case "i":                        
                        if (p == "" || p == null){ 
                            alert("Scegliere prima l'U.P.O."); 
                            return false                             
                        }; 
                        var In = document.getElementById("<%= txtID.ClientID %>"); 
                        alert(In.value);                         
                        pp = p + "|" + In.value  
                        rUrl = "EditSezioneG.aspx?P=" + p                         
                        window.radopen(rUrl, "rwdInsEdit"); 
                        return false; 
                        break;  
                    case "m":                                              
                        rUrl = "EditSezioneG.aspx?Id=" + p;                                                  
                         
                        window.radopen(rUrl, "rwdInsEdit"); 
                        return false;                            
                         
                        break;                            
                } 
           }   
            
//function javascript per checkbox            
            function RowSelected(sender, args) 
            { 
                var idca = document.getElementById("<%= itemID.ClientID %>"); 
                alert(args.getDataKeyValue("kiave")); 
                idca.value =  args.getDataKeyValue("kiave");                       
            }                                                
    </script>                 
</telerik:RadCodeBlock> 
 
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" EnableRoundedCorners="false"  /> 
 
<telerik:RadWindowManager ID="rwmZoom" runat="server" Behavior="Close,Move" InitialBehaviors="None" ReloadOnShow="true" VisibleStatusbar="false"
    <Windows> 
        <telerik:RadWindow ID="rwdInsEdit" runat="server" Animation="Resize" Width="650px" Height="600px" Modal="true" Behaviors="close,Move,Reload" 
            VisibleStatusbar="false"
        </telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
    <AjaxSettings>    
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="ucModAnag" /> 
                <telerik:AjaxUpdatedControl ControlID="ucModAtt" /> 
                <telerik:AjaxUpdatedControl ControlID="grdDich" /> 
                <telerik:AjaxUpdatedControl ControlID="txtIDDICHSCHEMA" /> 
                <telerik:AjaxUpdatedControl ControlID="txtID" /> 
                <telerik:AjaxUpdatedControl ControlID="ID" /> 
                <telerik:AjaxUpdatedControl ControlID="lblErrorMsg" /> 
                <telerik:AjaxUpdatedControl ControlID="IDDICHSCHEMA" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting>  
        <telerik:AjaxSetting AjaxControlID="grdValutazione"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="grdValutazione" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting>                                
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="grdAppezz" /> 
                <telerik:AjaxUpdatedControl ControlID="grdValutazione" />      
            </UpdatedControls> 
        </telerik:AjaxSetting>                                                                  
    </AjaxSettings>     
</telerik:RadAjaxManager> 
<div style="position:absolute; left:500px; top:255px"
    <telerik:RadAjaxLoadingPanel  ID="RadAjaxLoadingPanel1" runat="server" Skin="" Transparency="30" IsSticky="true"
        <asp:Image  ID="Image1" runat="server" ImageUrl="~/_img/status.gif" AlternateText="loading" /> 
    </telerik:RadAjaxLoadingPanel> 
</div>     
<telerik:RadAjaxPanel runat="server" ID="rapPanel" LoadingPanelID="RadAjaxLoadingPanel1">          
<div style="height:100%"
 
            <center> 
            <asp:HiddenField runat="server" ID="IDDICHSCHEMA" /> 
            <div style="display:none"
                <asp:Button runat="server" ID="btnGetIDdichSchema" /> 
                <telerik:RadTextBox runat="server" ID="txtID" /> 
                <telerik:RadTextBox runat="server" ID="IDNOTIFICAP" /> 
                <asp:TextBox runat="server" ID="ID" /> 
                <telerik:RadTextBox runat="server" ID="txtIDDICHSCHEMA" /> 
                <asp:TextBox runat="server" ID="txtORGANISMO" Text="ICA" /> 
                <asp:TextBox runat="server" ID="txtTIPO" Text="1" /> 
                <asp:TextBox runat="server" ID="IDRAPPRESENTANTE" /> 
                <asp:TextBox runat="server" ID="ModeT" Text="I" /> 
            </div> 
            <table width="100%" align="center" cellpadding="0" cellspacing="0"
                <tr> 
                    <td align="right"><asp:Label runat="server" ID="lblDTCOMPILAZIONE" Text="Data Compilazione: " /></td
                    <td align="left"
                        <telerik:RadDatePicker ID="rdpDTCOMPILAZIONE" runat="server" Culture="Italian (Italy)" Width="150px" MinDate="01/01/1900" MaxDate="12/31/2100"
                            <Calendar ID="calDT" runat="server" Width="160px"></Calendar> 
                            <DateInput ID="DateInput1" runat="server" DateFormat="d/M/yyyy" ></DateInput
                        </telerik:RadDatePicker > 
                    </td> 
                    <td align="right"><asp:Label runat="server" ID="lblDTPROTOCOLLO" Text="Data Protocollo: " /></td
                    <td align="left"
                        <telerik:RadDatePicker ID="rdpDTPROTOCOLLO" runat="server" Culture="Italian (Italy)" Width="150px" MinDate="01/01/1900" MaxDate="12/31/2100"
                            <Calendar ID="Calendar1" runat="server" Width="160px"></Calendar> 
                            <DateInput ID="DateInput2" runat="server" DateFormat="d/M/yyyy" ></DateInput
                        </telerik:RadDatePicker >                         
                    </td> 
                </tr> 
                <tr> 
                    <td align="right"><asp:Label runat="server" ID="lblUFFICIO" Text="Ufficio: " /></td
                    <td align="left"
                        <telerik:RadComboBox ID="UFFICIO" runat="server" AppendDataBoundItems="true" EmptyMessage="No Record" AutoPostBack="true"
                            <Items> 
                                <telerik:RadComboBoxItem Value="" Text="Not Defined" /> 
                            </Items> 
                        </telerik:RadComboBox> 
                    </td> 
                    <td align="right"><asp:Label runat="server" ID="lblPROTOCOLLO" Text="Protocollo: " /></td
                    <td align="left"><telerik:RadNumericTextBox runat="server" ID="txtPROTOCOLLO" NumberFormat-DecimalDigits="0" EmptyMessage="N° protocollo" /></td
                </tr> 
            </table> 
                <table width="100%" align="center" cellpadding="0" cellspacing="0"
                    <tr>                         
                        <th colspan="2"><h5><asp:Label runat="server" ID="lblDichiarante" Text="Dichiarante" /></h5></th> 
                    </tr> 
                    <tr> 
                        <td>                             
                              <asp:Button runat="server" ID="btnDupNotif" Text="Duplica l'ultima notifica" OnClientClick="if(!confirm('Vuoi duplicare ultima notifica del dichiarante?')) return false;" /> 
                        </td>                     
                    </tr> 
                    <tr> 
                        <th class="subTitleCell"
                            <onclick="btnSearch('Dichiaranti_Ricerca'); return false;"
                                <img src="_img/Lens.gif" alt="search" /> 
                                <asp:label runat="server" ID="lblCercaD" Text="Cerca Dichiarante" /> 
                            </a> 
                        </th> 
                        <th class="subTitleCell"
                            <onclick="EditDich(); return false;"
                                <img src="_img/Editor.gif" alt="search" /> 
                                <asp:label runat="server" ID="lblEditD" Text="Edit Dati Dichiarante" /> 
                            </a>                                                          
                        </th> 
                    </tr>                      
                    <tr> 
                        <td colspan="2"
                            <telerik:RadGrid ID="grdDich" runat="server" 
                                 AllowAutomaticUpdates="true" ShowHeader="true" BorderWidth="0" 
                                GridLines="Horizontal" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"  
                                ShowStatusBar="true" Width="99%">                             
                                <MasterTableView DataKeyNames="ID" Width="100%" CommandItemDisplay="None"
                                    <Columns>    
                                        <telerik:GridBoundColumn ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" HeaderText="Denominazione" DataField="DENOMINAZIONE" SortExpression="DENOMINAZIONE" UniqueName="colDENOMINAZIONE"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" HeaderText="Nome" DataField="NOME" SortExpression="NOME" UniqueName="colNOME"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn HeaderText="Codice Fiscale" DataField="CODFISCALE" SortExpression="CODFISCALE" UniqueName="colCODICEFISCALE"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn HeaderText="Partita Iva" DataField="PARTITAIVA" SortExpression="PARTITAIVA" UniqueName="colPARTITAIVA"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn HeaderText="Indirizzo" DataField="INDIRIZZO" SortExpression="INDIRIZZO" UniqueName="colINDIRIZZO"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn HeaderText="Localita" DataField="LOCALITA" SortExpression="LOCALITA" UniqueName="colLOCALITA"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn HeaderText="Prov" DataField="PROVINCIA" SortExpression="PROVINCIA" UniqueName="colPROVINCIA_Descr"></telerik:GridBoundColumn> 
                                    </Columns> 
                                </MasterTableView> 
                            </telerik:RadGrid>                         
                        </td> 
                    </tr> 
                    <tr> 
                        <td colspan="2">&nbsp;</td> 
                    </tr> 
                </table> 
        <div> 
            <div style="width:250px; float:left"
                <table width="100%" align="center" cellpadding="0" cellspacing="0"
                    <tr> 
                        <td style="width:190px"
                            <telerik:RadPanelBar runat="server" ID="rpbNotifica" Visible="false"
                                <Items> 
                                    <telerik:RadPanelItem Text="Modifica Dati Anagrafici"
                                        <Items> 
                                            <telerik:RadPanelItem Text="Dati Anagrafici" Value="RD" /> 
                                            <telerik:RadPanelItem Text="Strutture Aziendali" Value="RS" />                                       
                                        </Items> 
                                    </telerik:RadPanelItem> 
                                    <telerik:RadPanelItem Text="Modifica Attività"
                                        <Items> 
                                            <telerik:RadPanelItem Text="Elimina Attività" Value="AE" /> 
                                            <telerik:RadPanelItem Text="Inserimento Attività" Value="AI" /> 
                                            <telerik:RadPanelItem Text="Produzione Vegetale" Value="PV" /> 
                                            <telerik:RadPanelItem Text="Produzione Zootecniche" Value="PZ" /> 
                                            <telerik:RadPanelItem Text="Preparazioni Alimentari" Value="PA" />     
                                            <telerik:RadPanelItem Text="Attività d'Importazione" Value="IM" />                                         
                                        </Items> 
                                    </telerik:RadPanelItem> 
                                    <telerik:RadPanelItem Text="Variazione Supefici"
                                        <Items> 
                                            <telerik:RadPanelItem Text="Aggiungi Particelle" Value="AP" /> 
                                            <telerik:RadPanelItem Text="Eliminazione Particelle" Value="EP" /> 
                                            <telerik:RadPanelItem Text="Accorpamento Particelle" Value="CP" /> 
                                            <telerik:RadPanelItem Text="Frazionamento Particelle" Value="FP" /> 
                                            <telerik:RadPanelItem Text="Modifica Superfici" Value="MS" /> 
                                        </Items> 
                                    </telerik:RadPanelItem>     
                                    <telerik:RadPanelItem Text="Modifica Appezzamenti" Value="AZ" />                                           
                                </Items> 
                            </telerik:RadPanelBar>                     
                        </td> 
                    </tr> 
                </table> 
            </div> 
            <div style="float:right"
                <table width="100%" align="center" cellpadding="0" cellspacing="0"
                    <tr> 
                        <td> 
    <telerik:RadMultiPage ID="rmpNotifica" runat="server" SelectedIndex="0"
        <telerik:RadPageView ID="pgTestata" runat="server"></telerik:RadPageView>                                          
         
        <telerik:RadPageView ID="pgVal" runat="server"
            <div style="height:100%"
                <table width="100%" cellpadding="0" cellspacing="0"
                    <tr> 
                        <td> 
                            <div style="display:none">                 
                                <asp:TextBox runat="server" ID="txtIDNOTIFICAE" />           
                            </div> 
                         
                            <div> 
                                <table width="100%" align="center" cellpadding="0" cellspacing="0"
                                    <tr> 
                                        <td>&nbsp;</td> 
                                    </tr>                 
                                    <tr> 
                                        <th align="right"><asp:Label runat="server" ID="lblIDUPOE" Text="U.P.O " /></th
                                        <th align="left" style="padding-left:30px"
                                            <telerik:RadComboBox runat="server" id="lstIDUPOE" AppendDataBoundItems="true" AutoPostBack="true" ZIndex="5"
                                            </telerik:RadComboBox> 
                                        </th> 
                                    </tr> 
                                    <tr> 
                                        <td colspan="2" class="subTitleCell">&nbsp;</td> 
                                    </tr> 
                                    <tr> 
                                        <td colspan="2">&nbsp;</td> 
                                    </tr>                     
                                    <tr> 
                                        <th colspan="2" class="subTitleCell"><style="font-size:14px">INFORMAZIONI RELATIVE ALLA SUPERFICIE AGRICOLA UTILIZZATA AZIENDALE</b></th
                                    </tr> 
                                    <tr> 
                                        <td colspan="2">&nbsp;</td> 
                                    </tr> 
                                    <tr> 
                                        <th> 
                                            <asp:ImageButton runat="server" ID="btnAcc" /> 
                                            <asp:HyperLink runat="server" ID="btnPart"
                                                <img src="../_img/Insert.gif" alt="aggiungi" /> 
                                                <asp:label runat="server" ID="Label1" Text="Aggiungi" /> 
                                            </asp:HyperLink> 
                                        </th> 
                                        <td> 
                                            <asp:ImageButton runat="server" ID="btnVis" ImageUrl="~/_img/show.png" ToolTip="Visualizza tutti le Particelle esistenti" /> 
                                            <asp:Label runat="server" ID="lblVis" Text="Visualizza"  /> 
                                        </td> 
                                    </tr>                                                            
                                    <tr> 
                                        <td colspan="2"
                                            <telerik:RadGrid ID="grdValutazione" runat="server" GridLines="None" 
                                                AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False" 
                                                ShowStatusBar="true" AllowAutomaticDeletes="True" AllowMultiRowSelection="false">                                                 
                                                <ClientSettings> 
                                                    <Selecting AllowRowSelect="True" /> 
                                                    <ClientEvents OnRowSelected="RowSelected"></ClientEvents>                                             
                                                </ClientSettings> 
                                                <MasterTableView CommandItemDisplay="none" GridLines="None" 
                                                    DataKeyNames="IDPAP,IDAPPEZZAMENTO,IDPARTICELLA,kiave" 
                                                     AllowFilteringByColumn="False" AllowSorting="True" ClientDataKeyNames="kiave"
                                                    <Columns>                          
                                                        <telerik:GridTemplateColumn UniqueName="colPulsante"
                                                            <ItemTemplate> 
                                                                <asp:ImageButton runat="server" ID="btnT" ImageUrl="" /> 
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn> 
                                                        <telerik:GridButtonColumn ConfirmText="Sei sicuro di voler eliminare la riga?" ButtonType="ImageButton" ImageUrl="../_img/Delete.gif" CommandName="Delete" Text="Elimina" UniqueName="colDelete"
                                                            <HeaderStyle Width="20px" /> 
                                                        </telerik:GridButtonColumn> 
                                                        <telerik:GridTemplateColumn UniqueName="colItemC"
                                                            <ItemTemplate> 
                                                                <asp:CheckBox runat="server" ID="chkItemC" /> 
                                                                <div style="display:none"
                                                                    <asp:TextBox runat="server" ID="Kiave" /> 
                                                                </div> 
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn> 
                                                        <telerik:GridClientSelectColumn UniqueName="colItemID" ></telerik:GridClientSelectColumn>                                                            
                                                        <telerik:GridTemplateColumn> 
                                                            <HeaderTemplate> 
                                                                <table id="Table1" style="width: 100%"
                                                                    <tr> 
                                                                        <td colspan="2" align="center"
                                                                            <b>Codice Istat</b> 
                                                                        </td> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td style="width: 50%"
                                                                            <asp:LinkButton CssClass="Button" ID="btnProv" Text="Prov" ToolTip="Sort by Provincia" 
                                                                            CommandName='Sort' CommandArgument='PROVINCIAPARTICELLA' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 50%"
                                                                            <asp:LinkButton CssClass="Button" ID="btnCom" Text="Comune" ToolTip="Sort by Comune" 
                                                                            CommandName='Sort' CommandArgument='COMUNEPARTICELLA' runat="server" /> 
                                                                        </td> 
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 50%"
                                                                            <%#Eval("PROVINCIAPARTICELLA")%> 
                                                                        </td> 
                                                                        <td style="width: 50%"
                                                                            <%#Eval("COMUNEPARTICELLA")%> 
                                                                        </td> 
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                            <ItemStyle HorizontalAlign="Center" /> 
                                                        </telerik:GridTemplateColumn> 
                                                        <telerik:GridTemplateColumn> 
                                                            <HeaderTemplate> 
                                                                <table id="Table2" style="width: 100%"
                                                                    <tr> 
                                                                        <td colspan="4" align="center"
                                                                            <b>RIFERIMENTI CATASTALI</b> 
                                                                        </td> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td style="width: 15%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnSez" Text="Sez" ToolTip="Sort by Sezione" 
                                                                            CommandName='Sort' CommandArgument='SEZIONE' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 25%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnFoglio" Text="Foglio" ToolTip="Sort by Foglio" 
                                                                            CommandName='Sort' CommandArgument='FOGLIO' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 45%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnPart" Text="Particella" ToolTip="Sort by Particella" 
                                                                            CommandName='Sort' CommandArgument='PARTICELLA' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 15%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnSub" Text="Sub" ToolTip="Sort by Sub" 
                                                                            CommandName='Sort' CommandArgument='SUB' runat="server" /> 
                                                                        </td>                                                         
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 15%" align="center"
                                                                            <%#Eval("SEZIONE")%> 
                                                                        </td> 
                                                                        <td style="width: 25%" align="center"
                                                                            <%#Eval("FOGLIO")%> 
                                                                        </td> 
                                                                        <td style="width: 45%" align="center"
                                                                            <%#Eval("PARTICELLA")%> 
                                                                        </td> 
                                                                        <td style="width: 15%" align="center"
                                                                            <%#Eval("SUB")%> 
                                                                        </td>                                                         
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate>                                          
                                                        </telerik:GridTemplateColumn> 
                                                        <telerik:GridTemplateColumn> 
                                                           <HeaderTemplate> 
                                                                <table id="Table3" style="width: 100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnTitP" Text="Titolo<br />Poss." ToolTip="Sort by Titolo possesso" 
                                                                            CommandName='Sort' CommandArgument='TITOLOPOSSESSO' runat="server" /> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <%#Eval("TITOLOPOSSESSO")%> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn> 
                                                        <telerik:GridTemplateColumn> 
                                                            <HeaderTemplate> 
                                                                <table style="width: 100%"
                                                                    <tr> 
                                                                        <td colspan="2" align="center"
                                                                            <b>SUP. CATASTALE</b> 
                                                                        </td> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td style="width: 50%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnHA1" Text="ha" ToolTip="Sort by HA" 
                                                                            CommandName='Sort' CommandArgument='HA1' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 50%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnARE1" Text="are" ToolTip="Sort by Are" 
                                                                            CommandName='Sort' CommandArgument='ARE1' runat="server" /> 
                                                                        </td>                                                  
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 50%"
                                                                            <%#Eval("HA1")%> 
                                                                        </td> 
                                                                        <td style="width: 50%"
                                                                            <%#Eval("ARE1")%> 
                                                                        </td>                                                
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                            <ItemStyle HorizontalAlign="Center" /> 
                                                        </telerik:GridTemplateColumn>     
                                                        <telerik:GridTemplateColumn> 
                                                            <HeaderTemplate> 
                                                                <table style="width: 100%"
                                                                    <tr> 
                                                                        <td colspan="6" align="center"
                                                                            <b>SUPERFICIE IN BASE AL METODO DI PRODUZIONE</b> 
                                                                        </td> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td colspan="2" align="center"
                                                                            convenzionale 
                                                                        </td> 
                                                                        <td colspan="2" align="center"
                                                                            biologico 
                                                                        </td>    
                                                                        <td colspan="2" align="center"
                                                                            in conversione 
                                                                        </td>                                                                                                          
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td style="width: 17%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnHA2" Text="ha" ToolTip="Sort by HA" 
                                                                            CommandName='Sort' CommandArgument='HA2' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 17%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnARE2" Text="are" ToolTip="Sort by Are" 
                                                                            CommandName='Sort' CommandArgument='ARE2' runat="server" /> 
                                                                        </td>  
                                                                        <td style="width: 17%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnHA3" Text="ha" ToolTip="Sort by HA" 
                                                                            CommandName='Sort' CommandArgument='HA3' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 17%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnARE3" Text="are" ToolTip="Sort by Are" 
                                                                            CommandName='Sort' CommandArgument='ARE3' runat="server" /> 
                                                                        </td>  
                                                                        <td style="width: 17%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnHA4" Text="ha" ToolTip="Sort by HA" 
                                                                            CommandName='Sort' CommandArgument='HA4' runat="server" /> 
                                                                        </td> 
                                                                        <td style="width: 15%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnARE4" Text="are" ToolTip="Sort by Are" 
                                                                            CommandName='Sort' CommandArgument='ARE4' runat="server" /> 
                                                                        </td>                                                                                                                                                                  
                                                                    </tr>                                                     
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 17%"
                                                                            <%#Eval("HA2")%> 
                                                                        </td> 
                                                                        <td style="width: 17%"
                                                                            <%#Eval("ARE2")%> 
                                                                        </td>      
                                                                        <td style="width: 17%"
                                                                            <%#Eval("HA3")%> 
                                                                        </td> 
                                                                        <td style="width: 17%"
                                                                            <%#Eval("ARE3")%> 
                                                                        </td>      
                                                                        <td style="width: 17%"
                                                                            <%#Eval("HA4")%> 
                                                                        </td> 
                                                                        <td style="width: 15%"
                                                                            <%#Eval("ARE4")%> 
                                                                        </td>                                                                                                                                                                
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                            <ItemStyle HorizontalAlign="Center" /> 
                                                        </telerik:GridTemplateColumn> 
                                                        <telerik:GridTemplateColumn> 
                                                           <HeaderTemplate> 
                                                                <table id="Table4" style="width: 100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnIDA" Text="N° Appezzamento" ToolTip="Sort by Idappezzamento" 
                                                                            CommandName='Sort' CommandArgument='IDAPPEZZAMENTO' runat="server" /> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <%#Eval("IDAPPEZZAMENTO")%> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn>                                          
                                                        <telerik:GridTemplateColumn> 
                                                           <HeaderTemplate> 
                                                                <table id="Table5" style="width: 100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnOrien" Text="Orientamento" ToolTip="Sort by orientamento" 
                                                                            CommandName='Sort' CommandArgument='ORIENTAMENTO1' runat="server" /> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <%#Eval("ORIENTAMENTO1")%> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn>     
                                                        <telerik:GridTemplateColumn> 
                                                           <HeaderTemplate> 
                                                                <table id="Table6" style="width: 100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnSpe" Text="Specie" ToolTip="Sort by Specie" 
                                                                            CommandName='Sort' CommandArgument='PSPECIE' runat="server" /> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <%#Eval("PSPECIE")%> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn>   
                                                        <telerik:GridTemplateColumn> 
                                                           <HeaderTemplate> 
                                                                <table id="Table7" style="width: 100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <asp:LinkButton CssClass="Button" ID="btnVar" Text="Varietà" ToolTip="Sort by Varieta" 
                                                                            CommandName='Sort' CommandArgument='PVARIETA' runat="server" /> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table cellspacing="0" width="100%"
                                                                    <tr> 
                                                                        <td style="width: 100%" align="center"
                                                                            <%#Eval("PVARIETA")%> 
                                                                        </td>                                                        
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                        </telerik:GridTemplateColumn>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                                                    </Columns> 
                                                </MasterTableView> 
                                            </telerik:RadGrid>                       
                                        </td> 
                                    </tr>                     
                                </table> 
                            </div>          
                        </td> 
                    </tr> 
                </table>   
            </div> 
        </telerik:RadPageView> 
         
        <telerik:RadPageView ID="pgApp" runat="server"
            <div style="display:none">                 
                <asp:TextBox runat="server" ID="txtIDNOTIFICAF" />           
            </div> 
         
            <div> 
                <table width="100%" align="center" cellpadding="0" cellspacing="0"
                    <tr> 
                        <td>&nbsp;</td> 
                    </tr>                 
                    <tr> 
                        <th align="right"><asp:Label runat="server" ID="lblIDUPOF" Text="U.P.O " /></th
                        <th align="left" style="padding-left:30px"
                            <telerik:RadComboBox runat="server" id="lstIDUPOF" AppendDataBoundItems="true" AutoPostBack="true" ZIndex="6"
                            </telerik:RadComboBox> 
                        </th> 
                    </tr> 
                    <tr> 
                        <td colspan="2" class="subTitleCell">&nbsp;</td> 
                    </tr> 
                    <tr> 
                        <td colspan="2">&nbsp;</td> 
                    </tr>                     
                    <tr> 
                        <th colspan="2" class="subTitleCell"><style="font-size:14px"><asp:Label runat="server" ID="lblTitoloSF" Text="INFORMAZIONI RELATIVE AGLI APPEZZAMENTI AZIENDALI" /></b></th> 
                    </tr> 
                    <tr> 
                        <td colspan="2">&nbsp;</td> 
                    </tr> 
                    <tr> 
                        <th colspan="2"
                            <a> 
                                <img src="_img/Insert.gif" alt="aggiungi" /> 
                                <asp:label runat="server" ID="Label3" Text="Aggiungi" /> 
                            </a> 
                        </th> 
                    </tr>                                                            
                    <tr> 
                        <td colspan="2"
                            <telerik:RadGrid ID="grdAppezz" runat="server" GridLines="None" 
                                AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False" 
                                ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
                                AllowAutomaticUpdates="True"
                                <MasterTableView CommandItemDisplay="none" GridLines="None" 
                                    DataKeyNames="KIAVE" AllowFilteringByColumn="False" AllowSorting="True" Name="Master"
                                    <Columns> 
                                        <telerik:GridTemplateColumn> 
                                            <ItemTemplate> 
                                                <asp:ImageButton runat="server" ID="btnEdit" ImageUrl="~/_img/Editor.gif" /> 
                                            </ItemTemplate> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table id="Table1" style="width: 100%"
                                                    <tr> 
                                                        <td style="width: 100%"
                                                            <asp:LinkButton CssClass="Button" ID="btnAPP" Text="N° App." ToolTip="Sort by N° Appezzamento" 
                                                            CommandName='Sort' CommandArgument='IDUPO' runat="server" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 100%"
                                                            <%#Eval("IDAPPEZZAMENTO")%> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table id="Table1" style="width: 100%"
                                                    <tr> 
                                                        <td colspan="2" align="center"
                                                            <b>Codice Istat</b> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="width: 50%"
                                                            <asp:LinkButton CssClass="Button" ID="btnProv" Text="Prov" ToolTip="Sort by Provincia" 
                                                            CommandName='Sort' CommandArgument='PROVINCIA' runat="server" /> 
                                                        </td> 
                                                        <td style="width: 50%"
                                                            <asp:LinkButton CssClass="Button" ID="btnCom" Text="Comune" ToolTip="Sort by Comune" 
                                                            CommandName='Sort' CommandArgument='COMUNE' runat="server" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 50%"
                                                            <%#Eval("PROVINCIA")%> 
                                                        </td> 
                                                        <td style="width: 50%"
                                                            <%#Eval("COMUNE")%> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn>                                    
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table style="width: 100%"
                                                    <tr> 
                                                        <td colspan="3" align="center"
                                                            <b>SUP. CATASTALE</b> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="width: 34%" align="center"
                                                            <asp:LinkButton CssClass="Button" ID="btnHA1" Text="ha" ToolTip="Sort by HA" 
                                                            CommandName='Sort' CommandArgument='HA1' runat="server" /> 
                                                        </td> 
                                                        <td style="width: 33%" align="center"
                                                            <asp:LinkButton CssClass="Button" ID="btnARE1" Text="are" ToolTip="Sort by Are" 
                                                            CommandName='Sort' CommandArgument='ARE1' runat="server" /> 
                                                        </td>   
                                                        <td style="width: 33%" align="center"
                                                            <asp:LinkButton CssClass="btnCRE1" ID="LinkButton1" Text="cre" ToolTip="Sort by cre" 
                                                            CommandName='Sort' CommandArgument='CRE1' runat="server" /> 
                                                        </td>                                                                                                          
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 34%"
                                                            <%#Eval("HA1")%> 
                                                        </td> 
                                                        <td style="width: 33%"
                                                            <%#Eval("ARE1")%> 
                                                        </td>   
                                                        <td style="width: 33%"
                                                            <%#Eval("CRE1")%> 
                                                        </td>                                                                                                        
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridBoundColumn DataField="METODOPRODDICHIARATO" HeaderText="Metodo" SortExpression="METODOPRODDICHIARATO"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="DTCESSAZIONECONV" HeaderText="Data Cessato" SortExpression="DTCESSAZIONECONV" DataFormatString="{0: dd/MM/yyyy}"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridTemplateColumn> 
                                            <HeaderTemplate> 
                                                <table style="width: 100%"
                                                    <tr> 
                                                        <td style="width: 100%" align="center"
                                                            <asp:LinkButton CssClass="Button" ID="btnOrient" Text="Orientamenti" ToolTip="Sort by Orientamenti" 
                                                            CommandName='Sort' CommandArgument='ORIENTAMENTO1' runat="server" /> 
                                                        </td>                                                                                                      
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellspacing="0" width="100%"
                                                    <tr> 
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO1")%> 
                                                        </td> 
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO2")%> 
                                                        </td>   
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO3")%> 
                                                        </td>   
                                                        <td style="width: 25%"
                                                            <%#Eval("ORIENTAMENTO4")%> 
                                                        </td>                                                                                                                                                                
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
                                    </Columns> 
                                    <DetailTables> 
                                        <telerik:GridTableView AutoGenerateColumns="false" Caption="Particella Appezzamenti" AllowSorting="false" 
                                           Width="100%" Name="Dettaglio" DataSourceID="objDSP"
                                            <ParentTableRelation> 
                                                <telerik:GridRelationFields DetailKeyField="KIAVE" MasterKeyField="KIAVE" /> 
                                            </ParentTableRelation> 
                                            <PagerStyle AlwaysVisible="false" />                                             
                                            <Columns> 
                                                <telerik:GridBoundColumn SortExpression="Part" HeaderText="Part." DataField="Part" UniqueName="colParticella"
                                                </telerik:GridBoundColumn>                                                      
                                                <telerik:GridBoundColumn SortExpression="SUPERFICIECONVENZ" HeaderText="Sup. Convenzionale" DataField="SUPERFICIECONVENZ" UniqueName="colSUPERFICIECONVENZ"
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn SortExpression="SUPERFICIEBIO" HeaderText="Sup. Biologico" DataField="SUPERFICIEBIO" UniqueName="colSUPERFICIEBIO"
                                                </telerik:GridBoundColumn>    
                                                <telerik:GridBoundColumn SortExpression="SUPERFICIECONVERS" HeaderText="Sup. In Converzione" DataField="SUPERFICIECONVERS" UniqueName="colSUPERFICIECONVERS"
                                                </telerik:GridBoundColumn>                                      
                                            </Columns> 
                                        </telerik:GridTableView> 
                                    </DetailTables>                                      
                                </MasterTableView>                                
                            </telerik:RadGrid>                       
                        </td> 
                    </tr>                     
                </table> 
            </div>    
        </telerik:RadPageView>              
         
        <telerik:RadPageView ID="pgModAnag" runat="server"
           <wuc:pgModAnagUC runat="server" ID="ucModAnag" /> 
        </telerik:RadPageView> 
         
        <telerik:RadPageView ID="pgModAtt" runat="server"
            <wuc:pgModAttUC ID="ucModAtt" runat="server" /> 
        </telerik:RadPageView>         
                                                                                          
    </telerik:RadMultiPage>                         
                        </td> 
                    </tr> 
                </table> 
            </div> 
        </div> 
            </center> 
            
     
     
 
     
    <table width="90%" align="center" class="tbContorno" border="0"
    <tr><td colspan="2">&nbsp;</td></tr>             
    <tr> 
        <td colspan="2"><asp:Label runat="server" ID="lblErrorMsg" Text="" CssClass="ErrMsg"></asp:Label></td
    </tr>     
</table> 
<div style="display:none"
    <asp:TextBox runat="server" ID="itemID" /> 
</div> 
</div>    
</telerik:RadAjaxPanel> 
<asp:ObjectDataSource   
    ID="objDSRappr"   
    runat="server"   
    SelectMethod="selectRapprLegal" 
    SortParameterName="orderBy"  
    TypeName="GestioneProcessi" >  
    <SelectParameters>  
        <asp:QueryStringParameter Name="NomeSP" DefaultValue="NotificheTestata_RicercaRapprLegal" Direction="Input" Type="String" /> 
        <asp:Parameter Name="filterby" DefaultValue="" Type="String" Direction="Input" /> 
    </SelectParameters>  
</asp:ObjectDataSource> 
<asp:ObjectDataSource   
    ID="objDSDich"   
    runat="server"   
    SelectMethod="selectRapprLegal" 
    SortParameterName="orderBy"  
    TypeName="GestioneProcessi" >  
    <SelectParameters>  
        <asp:QueryStringParameter Name="NomeSP" DefaultValue="Dichiaranti_Ricerca" Direction="Input" Type="String" /> 
        <asp:Parameter Name="filterby" DefaultValue="" Type="String" Direction="Input" /> 
    </SelectParameters>  
</asp:ObjectDataSource>   
<asp:ObjectDataSource   
    ID="objDSUPO"   
    runat="server"   
    SelectMethod="selectRapprLegal" 
    SortParameterName="orderBy"  
    TypeName="GestioneProcessi" >  
    <SelectParameters>  
        <asp:QueryStringParameter Name="NomeSP" DefaultValue="NotificheTestata_RicercaUPO" Direction="Input" Type="String" /> 
        <asp:Parameter Name="filterby" DefaultValue="" Type="String" Direction="Input" /> 
    </SelectParameters>  
</asp:ObjectDataSource>  
    
<asp:ObjectDataSource   
    ID="objDSM"   
    runat="server"   
    SelectMethod="SelectRapprLegal" 
    SortParameterName="orderBy"  
    TypeName="GestioneProcessi" >  
    <SelectParameters>  
        <asp:QueryStringParameter Name="NomeSP" DefaultValue="Appezzamenti_Ricerca" Direction="Input" Type="String" /> 
        <asp:Parameter Name="filterBy" Type="String" /> 
    </SelectParameters>  
</asp:ObjectDataSource>    
<asp:ObjectDataSource   
    ID="objDSP"   
    runat="server"   
    SelectMethod="SelectParticellaApp" 
    SortParameterName="orderBy"  
    TypeName="GestioneProcessi" >  
    <SelectParameters>  
        <asp:QueryStringParameter Name="NomeSP" DefaultValue="ParticelleAppezzamenti_Ricerca" Direction="Input" Type="String" /> 
        <asp:Parameter Name="KIAVE" Type="String" /> 
    </SelectParameters>  
</asp:ObjectDataSource>   
<asp:ObjectDataSource   
    ID="objDSV"   
    runat="server"   
    SelectMethod="SelectRapprLegal" 
    SortParameterName="orderBy"  
    TypeName="GestioneProcessi" >  
    <SelectParameters>  
        <asp:QueryStringParameter Name="NomeSP" DefaultValue="Particelle_RicercaNotifica" Direction="Input" Type="String" /> 
        <asp:Parameter Name="filterby" Type="String" /> 
    </SelectParameters> 
</asp:ObjectDataSource>   
</asp:Content> 
 
   Protected Sub ParticelleItemcreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles grdValutazione.ItemCreated 
        Try 
            If TypeOf e.Item Is GridDataItem Then 
                Dim DataItem As GridDataItem = DirectCast(e.Item, GridDataItem) 
                Dim pulsante As GridTemplateColumn = DirectCast(DataItem.OwnerTableView.Columns.FindByUniqueName("colPulsante"), GridTemplateColumn) 
                Dim colItemC As GridTemplateColumn = DirectCast(DataItem.OwnerTableView.Columns.FindByUniqueName("colItemC"), GridTemplateColumn) 
                Dim colItemID As GridClientSelectColumn = DirectCast(DataItem.OwnerTableView.Columns.FindByUniqueName("colItemID"), GridClientSelectColumn) 
                Dim colDelete As GridButtonColumn = DirectCast(DataItem.OwnerTableView.Columns.FindByUniqueName("colDelete"), GridButtonColumn) 
                Dim btnT As ImageButton = DirectCast(DataItem.FindControl("btnT"), ImageButton) 
                Dim P As Integer = DirectCast(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("IDPARTICELLA"), Integer) 
                Dim D As String = DataItem.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("IDPAP").ToString 
                Dim A As String = DataItem.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("IDAPPEZZAMENTO").ToString 
                Dim kiave As String = DataItem.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("kiave").ToString 
                Dim txt As TextBox = CType(DataItem.FindControl("Kiave"), TextBox) 
 
                If rpbNotifica.SelectedItem.Value = "AP" Then 
                    pulsante.Visible = False 
                    colDelete.Visible = False 
                    colItemC.Visible = False 
                    colItemID.Visible = False 
                ElseIf rpbNotifica.SelectedItem.Value = "EP" Then 
                    pulsante.Visible = False 
                    btnVis.Visible = False 
                    btnPart.Visible = False 
                    colDelete.Visible = True 
                    colItemC.Visible = False 
                    colItemID.Visible = False 
                ElseIf rpbNotifica.SelectedItem.Value = "FP" Then 
                    pulsante.Visible = True 
                    btnVis.Visible = False 
                    btnPart.Visible = False 
                    colDelete.Visible = False 
                    colItemC.Visible = False 
                    colItemID.Visible = False 
                    btnT.ImageUrl = "~/_img/copy.png" 
                    btnT.CommandArgument = P 'uso commandargument per memorizzare la kiave di ogni riga 
                    AddHandler btnT.Click, AddressOf Me.DuplicaParticella 'associo al click del pulsante una routine 
                ElseIf rpbNotifica.SelectedItem.Value = "CP" Then 
                    colItemC.Visible = True 
                    colItemID.Visible = True 
                    pulsante.Visible = False 
                    btnVis.Visible = False 
                    btnPart.Visible = False 
                    colDelete.Visible = False 
                    txt.Text = kiave 
                End If 
            End If 
        Catch ex As Exception 
            SentMessage("error databound(grdLegale): " + ex.Message) 
        End Try 
    End Sub 
    Protected Sub AccorpaParticelle(ByVal sender As Object, ByVal e As ImageClickEventArgs) Handles btnAcc.Click 
        Dim chkItemC As CheckBox 
        Dim Kiave2 As TextBox 
        Try 
            'cerco kiave 2 e modifico i dati nel database 
            v = Split(itemID.Text, "|") 
            ReDim param(6) 
            ReDim paramVal(6) 
 
            param(0) = "IDWS" 
            paramVal(0) = Request.UserHostAddress 
            param(1) = "IDUPODA" 
            paramVal(1) = v(0) 
            param(2) = "IDNOTIFICADA" 
            param(3) = "IDPARTICELLADA" 
            paramVal(2) = v(1) 
            paramVal(3) = v(2) 
            param(4) = "IDUPOA" 
            param(5) = "IDNOTIFICAA" 
            param(6) = "IDPARTICELLAA" 
 
            ApriConnessioni() 
            If grdValutazione.Items.Count > 0 Then 
                For intIx = 0 To grdValutazione.Items.Count - 1 
                    chkItemC = grdValutazione.Items(intIx).FindControl("chkItemC") 
                    If chkItemC.Checked = True Then 
                        Kiave2 = grdValutazione.Items(intIx).FindControl("Kiave") 
                        v = Split(Kiave2.Text, "|") 
                        paramVal(4) = v(0) 
                        paramVal(5) = v(1) 
                        paramVal(6) = v(2) 
 
                        If itemID.Text <> Kiave2.Text Then EseguiStored("Particelle_Accorpa", param, paramVal, kAggiornaDati, kUpdate) 
                        If TestoMessaggio.Length > 0 Then 
                            lblErrorMsg.Text = "Error Accorpa Particelle: " + TestoMessaggio 
                            Exit For 
                        End If 
                    End If 
                Next 
            End If 
            ChiudiConnessioni() 
            If lstIDUPOE.SelectedValue <> "" Then bind_grdValutazione(lstIDUPOE.SelectedValue, "C") 
        Catch ex As Exception 
            lblErrorMsg.Text = "Error Accorpa Particelle: " + ex.Message 
        End Try 
    End Sub 
Rosen
Telerik team
 answered on 01 Jun 2010
5 answers
102 views
"A Problem was encountered initializing commands and menus. The merged file was loaded, but it contained no valid commands. Please run setup and select Repair."

I uninstalled Q4 2009 and installed 2010_1_519 AJAX. Silverlight Q4 I uninstalled but did not install Silverlight 3 2010_1 because I need to locate RIA files for Silverlight 3.

I'm able to use VS 2008 but when I tried to fire up VS 2005, I got the following message.

Any advice on how to proceed? thank you -
Erjan Gavalji
Telerik team
 answered on 01 Jun 2010
4 answers
138 views
How to change the text "Add new record" to "Add More"? Is it possible to remove the REFRESH button?
Jun Ting
Top achievements
Rank 1
 answered on 01 Jun 2010
5 answers
205 views

I am trying to implement the telerik tabs into my site. Theywork fine however when it comes to the styling they have white gaps betweeneach tab.

Does anyone know how to remove the white spacing either inthe telerik tab template or by using css?

I have tried everything I can possibly think of and nothingseems to work 100%.

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"

ontabclick="RadTabStrip1_TabClick"SelectedIndex="1">

<Tabs>

<telerik:RadTab runat="server"Text="RootRadTab1" >

</telerik:RadTab>

<telerik:RadTab runat="server"Text="RootRadTab2""  Selected="True">

</telerik:RadTab>

<telerik:RadTab runat="server"Text="RootRadTab3" >

</telerik:RadTab>

<telerik:RadTab runat="server"Text="RootRadTab4" >

</telerik:RadTab>

</Tabs>

</telerik:RadTabStrip>

Ben Godfrey
Top achievements
Rank 1
 answered on 01 Jun 2010
2 answers
130 views
I have a RadGrid with a GridDropDownColumn that is bound to a datasource - the RadGrid itself is bound, and the drop-down is bound to a separate datasource (I made a simple datasource for "Yes" and "No" values - seemed easiest). My trouble is that my GridDropDown 1) does not show the SelectedValue in Edit mode, and 2) does not show the SelectedValue in Item mode. My data source has three text values """, "Yes" and "No", and three corresponding values "", "Y" and "N". The DataField for the column will have a value of "", "Y" or "N". The value from the drop-down saves to the database correctly. It just doesn't show in the RadGrid column - nothing does. Here is the source for the column. Any help?

 

<telerik:GridDropDownColumn DataField="CLEARANCE" DataSourceID="dsYesNo"

 

 

HeaderText="Clearance" ListTextField="TEXT" ListValueField="VALUE"

 

 

UniqueName="CLEARANCE">

 

 

</telerik:GridDropDownColumn>

 

Graham
Top achievements
Rank 1
 answered on 01 Jun 2010
11 answers
390 views
Hi,

is there any possibility to extend or overwrite the behaviour of the insert-button in the Image Manager (see my attached screenshot)?
Currently I use my own EditorDialogs which consist of the copied RadEditor/EditorDialogs with some minor modifications.

My main target is to replace the default <img src="/images/image.jpg"...>-insertion that is added to the text after clicking "insert" by my own that uses a streaming-component as src like this one: <img src="getImage.ashx?file=image.jpg"...>

Do you have some source code for me?

Thank you very much!

Greeting from germany,
Ricky Mattischeck
gkennedy
Top achievements
Rank 1
 answered on 31 May 2010
3 answers
66 views
I have a grid with say 5 pages of rows in a Rad Window.

What have others done to print all the rows in the grid?  Currently I have a javascript print button that prints using the GetRadWindow().GetContentFrame().contentWindow.print(); function.  Of course this only gets the rows in the first page.

Any solutions? I'm trying to avoid a print preview popup over the popup.  Maybe printer friendly version that reloads page with no paging and prints? not sure if that's possible or a good idea.
Daniel
Telerik team
 answered on 31 May 2010
4 answers
428 views
Hi,

Is there any way to customize the sheet name while exporting data to the excel using RadGrid. Please let me know. Any Help would be appreciated.
Daniel
Telerik team
 answered on 31 May 2010
2 answers
173 views

Is there an easy way to make the RadToolBarSplitButton look/act like a regular RadToolBarButton when one of its items are selected?  I want to use a couple of RadToolBarSplitButtons with a RadToolBarButton and be able to have it act and look like I'm using three RadToolBarButtons that are in the same group.  I have them unchecking the RadToolBarButton when on of the SplitBarButtons are selected, but the RadToolBarSplitButtons don't look "selected" like the regular tool bar buttons when they are pressed.

Here is what I have.

<telerik:RadToolBar runat="server" style="display:block; float: none" Skin="WebBlue" ID="tbInventory">  
    <Items> 
        <telerik:RadToolBarButton Group="Inventory" CheckOnClick="true" Text="Pending"></telerik:RadToolBarButton> 
        <telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton> 
        <telerik:RadToolBarSplitButton > 
            <Buttons> 
                <telerik:RadToolBarButton Group="Inventory" CheckOnClick="true" Text="Sold: Last 30 Days"></telerik:RadToolBarButton> 
                <telerik:RadToolBarButton Group="Inventory" CheckOnClick="true" Text="Sold: Last 60 Days"></telerik:RadToolBarButton> 
                <telerik:RadToolBarButton Group="Inventory" CheckOnClick="true" Text="Sold: Last 90 Days"></telerik:RadToolBarButton> 
            </Buttons> 
        </telerik:RadToolBarSplitButton> 
        <telerik:RadToolBarButton IsSeparator="true"></telerik:RadToolBarButton> 
        <telerik:RadToolBarSplitButton> 
            <Buttons> 
                <telerik:RadToolBarButton Group="Inventory" CheckOnClick="true" Text="For Sale"></telerik:RadToolBarButton> 
                <telerik:RadToolBarButton Group="Inventory" CheckOnClick="true" Text="For Sale: Not At TDA"></telerik:RadToolBarButton> 
                <telerik:RadToolBarButton Group="Inventory" CheckOnClick="true" Text="For Sale: Not Listed"></telerik:RadToolBarButton> 
            </Buttons> 
        </telerik:RadToolBarSplitButton> 
    </Items> 
</telerik:RadToolBar> 


Any ideas?
Doug

kbtech
Top achievements
Rank 1
 answered on 31 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?