hierarchy problem

7 posts, 0 answers
  1. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 10 May 2010 Link to this post

    hi i have this grid w/ hierarchy table but its not expanding here is the code
                                <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="IDAPPEZZAMENTO,IDUPO,IDNOTIFICA" AllowFilteringByColumn="False" AllowSorting="True"
                                        <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" 
                                                DataSourceID="objDSPart" Width="90%" PageSize="7"
                                                <ParentTableRelation> 
                                                    <telerik:GridRelationFields DetailKeyField="IDUPO,IDNOTIFICA,IDAPPEZZAMENTO" MasterKeyField="IDUPO,IDNOTIFICA,IDAPPEZZAMENTO" /> 
                                                </ParentTableRelation> 
                                                <PagerStyle AlwaysVisible="false" /> 
                                                <Columns> 
                                                    <telerik:GridBoundColumn SortExpression="IDIDPARTICELLA" HeaderText="Part." DataField="IDIDPARTICELLA" UniqueName="colIDIDPARTICELLA" AllowSorting="false"
                                                    </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>   

    i have 3 relation fields

    w/ 1 relation field it always work but after i tried to add 2 more relation fields it stop on working
  2. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 11 May 2010 Link to this post

    i've tried w/ this but still not expading

                <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"
                                    <Items> 
                                    </Items> 
                                </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"
                                <onclick="Insert('f'); return false;"
                                    <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="IDIDPARTICELLA" HeaderText="Part." DataField="IDIDPARTICELLA" UniqueName="colIDIDPARTICELLA" AllowSorting="false"
                                                    </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>    
        Protected Sub grdAp_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles grdAppezz.ItemCreated 
            Try 
                If TypeOf e.Item Is GridDataItem And e.Item.OwnerTableView.Name = "Master" Then 
                    Dim editLink As ImageButton = DirectCast(e.Item.FindControl("btnEdit"), ImageButton) 
                    Dim P As String = DirectCast(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("KIAVE"), String) 
     
                    Dim id As String 
                    id = P.ToString() 
     
                    editLink.Attributes("onclick") = [String].Format("return Edit('{0}','{1}','{2}');", id.ToString(), e.Item.ItemIndex, "F") 
                End If 
            Catch ex As Exception 
                SentMessage("grdVal error: " + ex.Message) 
            End Try 
        End Sub 

    here is the asp and codebehind related to the page


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 13 May 2010 Link to this post

    Hello Webster,

    Every GridRelationFields object should have only one field name for DetailKeyField and MasterKeyField. For data relationships that are based on multiple fields, add multiple GridRelationFields objects to the ParentTableRelation collection.
    You could use the following code:
    <ParentTableRelation>
     <telerik:GridRelationFields
        DetailKeyField="IDUPO"
        MasterKeyField="IDUPO" />
     <telerik:GridRelationFields
        DetailKeyField="IDNOTIFICA"
        MasterKeyField="IDNOTIFICA" />
     <telerik:GridRelationFields
        DetailKeyField="IDAPPEZZAMENTO"
        MasterKeyField="IDAPPEZZAMENTO" />
    </ParentTableRelation>
    instead of:
    <ParentTableRelation>
        <telerik:GridRelationFields DetailKeyField="IDUPO,IDNOTIFICA,IDAPPEZZAMENTO" MasterKeyField="IDUPO,IDNOTIFICA,IDAPPEZZAMENTO" />
    </ParentTableRelation>

    I hope this helps.

    Greetings,
    Mira
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 13 May 2010 Link to this post

    i have another problem

    when i change the expand image button w/ my own images, it isnt expanding anymore

  6. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 14 May 2010 Link to this post

    Hello Webster,

    To customize the expand/collapse icons in an hierarchical grid, you could use the RadGrid's ColumnCreated event, check in the event arguments whether the column is GridExpandColumn and if so, set the ExpandImageUrl and CollapseImageUrl properties. These two properties work only if you set them programmatically:
    protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
    {
        if (e.Column is GridExpandColumn)
        {
            (e.Column as GridExpandColumn).ButtonType = GridExpandColumnType.ImageButton;
            
            (e.Column as GridExpandColumn).ExpandImageUrl = ".....";
            (e.Column as GridExpandColumn).CollapseImageUrl = ".......";
        }
    }

    Please give this approach a try and let me know whether it helps.

    Regards,
    Mira
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 26 May 2010 Link to this post

    same problem w/ another page.. its not expanding

    here is the 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;      
                        case "m": 
                            var IdD = $find("<%= txtIDDICHSCHEMA.ClientID %>"); 
                            combo = $find("<%= lstIDUPOE.ClientID %>");                     
                            var p = combo.get_value() + "|" + In.value + "|" + IdD.get_value();         
                            rUrl = "EditSezioneE.aspx?C=N&T=M&P=" + p + "&Id=" + id;                                                   
                             
                            window.radopen(rUrl, "rwdInsEdit"); 
                            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> 
            <telerik:AjaxSetting AjaxControlID="rapPanel"
                <UpdatedControls> 
                    <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> 
     

  8. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 31 May 2010 Link to this post

    Hello Webster,

    Based on the supplied information, it is hard to determine what is causing the unwanted behavior.
    Please open a formal support ticket and sent us a small working project, demonstrating your full setup and showing the issue.
    We will debug it locally and get back to you.

    Thank you in advance for the cooperation.

    Greetings,
    Mira
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017