Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
I'm using ASP.NET Ajax Q2 2011 and have a problem with changing css class for selected div.

I have two divs for photos and some text, by default both div has same css class, my client need to select the div that include the second photo and change its css class from "PhotoBoxRight" to "PhotoBoxLeft".

<div class="PhotoBoxRight" style="width: 300px;"><div><a href="PhotoDetail.aspx?ImageId=2007052318"><img src="images/2007/2007052318.jpg" border="0"></a></div><div class="PhotoBoxCredit">Text: <a href="photo">Text</a></div><div class="PhotoBoxCaption">Text</div></div>
More text here
<br><br>
 
<div class="PhotoBoxRight" style="width: 300px;"><div><a href="PhotoDetail.aspx?ImageId=2007052320"><img src="images/2007/2007052320.jpg" border="0"></a></div><div class="PhotoBoxCredit">Text: <a href="photo">Text</a></div><div class="PhotoBoxCaption">Text</div></div>

I configured the RAD Editor to read from an external CSS, and every thing is ok

<telerik:RadEditor ID="radBody" runat="server" Skin="Windows7" Width="750px" Height="690px"
                                StripFormattingOptions="AllExceptNewLines" NewLineBr="False" ToolsFile="~/SharedResources/Rad/Editor/ToolsFileReport.xml"
                                ContentAreaCssFile="./RTL/EditorContentArea_RTL.css" ContentFilters="None">
                                <CssFiles>
                                    <telerik:EditorCssFile Value="~/SharedResources/Rad/Editor/Report.css" />
                                </CssFiles>
                            </telerik:RadEditor>

When I test the page I got different behavior as following:
On FireFox 6.0.1: when I select the container div of the second photo, the "Apply CSS Class" menu reflect the current class of the div, when I change the class, it change it for the first div.

On Safari 5.1 and Chrome 13: the Apply CSS Class does not show css class of the selected div, when I select "PhotoBoxLeft" it apply it to the img tag.
<div class="PhotoBoxRight" style="width: 300px;"><div><a href="PhotoDetail.aspx?ImageId=2007052320"><img src="images/2007/2007052320.jpg" border="0" class="photoboxleft"></a></div><div class="PhotoBoxCredit">Text: <a href="photo">Text</a></div><div class="PhotoBoxCaption">Text</div></div>

On IE9: it adds font tag with PhotoBoxLeft class

<div style="width: 300px;" class="PhotoBoxRight"><div><a href="PhotoDetail.aspx?ImageId=2007052319"><font class="photoboxleft"><img border="0" src="images/2007/2007052319.jpg"></font></a></div><div class="PhotoBoxCredit"><font class="photoboxleft">Text: </font><a href="photo"><font class="photoboxleft">text</font></a></div><div class="PhotoBoxCaption"><font class="photoboxleft">Text</font></div></div>

I test the code on IIS7 on windows 7 and IIS6 on windows 2003.

Could you help please.
Rumen
Telerik team
 answered on 08 Sep 2011
3 answers
179 views
Hi,

I'm using the AsyncUpload control and I'm facing a big problem. Always I try to upload an Office file that is open, a JavaScript error is throwed. I searched at Telerik forum and found some similar problems, the Telerik team says this problem is being corrected.

http://www.telerik.com/community/forums/aspnet-ajax/async-upload/file-sharing-violation.aspx

Is there some update about this?

Rafael Esquiçato
Dimitar Terziev
Telerik team
 answered on 08 Sep 2011
2 answers
143 views
Hi

I am looking to see whether RadGRid has inbuilt databinding validation. For example, if you have NOT NULL field and trying to insert the column with null, it should throw an error without any code. I see this exists in devexpress. It helps to bind the data and allow the validations to be binded against data fields instead of field validators. I hope this may be possible.

Let me know.

Vijai
Vijaianand
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
215 views
Hello All,

I am having an issue with my radgrid in that when a user resizes the window, the filter boxes don't resize with the column size and get lost.  Is there any ways to constrain the filter inputs to the size of the columns?  I don't want to just blindly resize them, I want them to remain the width of the column.

Thanks so much!

Andy
Top achievements
Rank 1
 answered on 08 Sep 2011
4 answers
142 views
I would like to have a linkbutton at the top of my edit form when the user selects to edit a row.  I don't want to have it as a column, as I want just the LinkButton displayed (no header) and aligned to the left.  Is there any way to do this?
Jeremy
Top achievements
Rank 1
 answered on 08 Sep 2011
11 answers
178 views
i am trying to do some ajaxRequest via  javascript and not having alot of success with other browsers except IE.
here is the code


function SendClientMessage() {
var msgtext = document.getElementById("<%= message.ClientID %>");
if (msgtext != null) {
var eventArgs = "AddClientMsg";
clientMsgAdded = true;
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(eventArgs);
}
}
function KeyDown(e) {
var keyPressed;
if (window.event) {
keyPressed = window.event.keyCode;
} else {
keyPressed = e.which;
e.preventDefault();
}
if (keyPressed == 13) // checks whether the ENTER key
// is pressed
{
window.event.cancelBubble = true;
window.event.returnValue = false;
SendClientMessage();
}
}

and then in my code behind i have this.
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
if (e.Argument.ToLower().Equals("addclientmsg"))
{
ChatMessage msg = new ChatMessage();
msg.SentAt = DateTime.Now;
msg.UserID = anonymousUser.AnonymousUserID;
msg.UserType = ChatUserEnum.ChatUserType.Client;
msg.UserName = anonymousUser.FirstName + " " + anonymousUser.LastName;
msg.Message = message.Text;
int roomID = 0;
int.TryParse(hidRoomID.Value, out roomID);
ChatClientEngine.AddMessageToRoom(msg, roomID);
message.Text = "";
}
else if (e.Argument.Equals("closeChatRoom"))
{
CloseChatRoom();
}
}
now with IE it all works fine...even the closechatroom which is 
 function closeChatRoom() {
                    try {
                        var eventArgs = "closeChatRoom";
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(eventArgs);
                    } catch (e) {
                        alert(e);
                    }
//                    var strArg = "closeChatRoom";
//                    __doPostBack('closeChatRoom', strArg);
                }

and is set on onbeforeunload="closeChatRoom();"

again with IE it all works fine...
however with Firefox it does not....i can place alert in javascript and i get the alert..but i never get anything in the code behind...except on IE

any ideas?

thanks
Iana Tsolova
Telerik team
 answered on 08 Sep 2011
0 answers
190 views
When using RadFileExplorer with Black skin, the background of the Upload panel is white, but not black as expected. You can temporary fix the problem, until we fix it in the source, using one of the following solutions:

Solution 1 (CSS fix only):
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
       <title></title>
       <style type="text/css">
              div.RadWindow_Black td.rwExternalContent
              {
                     background-color: #2e2e2e;
              }
              .rfeUploadContainer
              {
                     color: #fff;
              }
               
              div.rfeUploadInfoPanel
              {
                     background-color: #464646;
                     border: 1px solid #080808;
              }
       </style>
</head>
<body>
       <form id="form1" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server">
       </asp:ScriptManager>
       <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="500px" Height="300px"
              Skin="Black" EnableOpenFile="false" EnableCreateNewFolder="true">
              <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" />
       </telerik:RadFileExplorer>
       </form>
</body>
</html>

Solution 2(using CSS and RadFormDecorator):
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <style type="text/css">
        div.rfeUploadInfoPanel
        {
            background-color: #464646;
            border: 1px solid #080808;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="Sc1" runat="server" />
    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" Skin="Black" DecoratedControls="All" />
    <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="500px" Height="300px"
        Skin="Black" EnableOpenFile="false" EnableCreateNewFolder="true">
        <Configuration ViewPaths="~/" UploadPaths="~/" DeletePaths="~/" />
    </telerik:RadFileExplorer>
    </form>
</body>
</html>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 08 Sep 2011
4 answers
119 views
Hello!

I wanted to know if is it possible to add row with CommandItems ("Add new" in my case) to DetailTable like MasterTable has. What I'd like to get is the same functionality the MasterTable has, but within the DetailTable.

Any help would be appreciated, especially if there are some samples that could be helpful.

EDIT: I was able to display the EditForm inside of the DetailTable by simply adding EditFormSettings, but Update/Insert and Cancel buttons aren't visible. I also don't know how to add the CommandItem row.
Tsvetina
Telerik team
 answered on 08 Sep 2011
1 answer
130 views
Hello dear Telerik Team,

I'm using Telerik 2009.3.1103.35 ( v2.0.50727 ) in Vs2008 and I have some problems by calling a postback
event for web controls that resides in Radgrid's editform.
Ajax works fine in Radgrid if I'm not in edit mode - sorting is successfully Ajaxified for instance -.


But if the eventddlTipoInstal_SelectedIndexChanged of the dropdownlist controlddlTipoInstal
is raised, then I'm receving a script error  "Sys.WebForms.PageRequestManagerServerErrorException".
Postback events are working fine if Ajax is disabled.

What I need to do to solve my problem?

Thank you very much in advance.


<
telerik:RadScriptManager ID="RgScriptManager1" runat="server" />
 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings>                        
                <telerik:AjaxSetting AjaxControlID="RgData"
                    <UpdatedControls
                        <telerik:AjaxUpdatedControl ControlID="RgData"  LoadingPanelID="RadAjaxLoadingPanel1"  /> 
                    </UpdatedControls
                </telerik:AjaxSetting>                
            </AjaxSettings
  </telerik:RadAjaxManager
 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"    />
 
 
                    <telerik:radgrid id="RgData" runat="server"   
                    OnNeedDataSource="RgData_NeedDataSource"
                    AutoGenerateColumns="False" AllowSorting="True"
                        GridLines="None"
                         
                        OnItemDataBound="RgData_ItemDataBound"
                        OnDeleteCommand="RgData_DeleteCommand"
                        OnUpdateCommand="RgData_UpdateCommand"
                        OnItemCommand="RgData_Command"
                        Width="99%"
                        Height="450px"
                        >
                        <FilterItemStyle BackColor="red" />
                         
                        <ItemStyle  Height="50px" />
                        <AlternatingItemStyle Height="50px" ></AlternatingItemStyle>
                        <GroupHeaderItemStyle  ></GroupHeaderItemStyle>
 
                        <MasterTableView CommandItemDisplay="None"  GridLines="None" Height="20px">
                            <RowIndicatorColumn UniqueName="RowIndicator" Visible="False">
                                <HeaderStyle Width="20px" ></HeaderStyle>
                                <ItemStyle ></ItemStyle>
                            </RowIndicatorColumn>
                             
                         
 
 
 
<editformsettings editformtype="Template" >
 
   <editcolumn uniquename="EditCommandColumn" ButtonType="ImageButton"></editcolumn>
 
      <formtemplate>
 
        <asp:Panel runat="server" id="pnlEdicion">
            <div align="left">
                <asp:Button runat="server" ID="btnGenerales"  Text="Datos generales"    onclick="btnGenerales_Click"   CssClass="textbox_general"    CausesValidation="false" />
                <asp:Button runat="server" ID="btnRegPersonal"  Text="Registro de personal"   onclick="btnRegPersonal_Click"   CssClass="textbox_general"   CausesValidation="false"  />
               </div>
                 
                <asp:Panel runat="server" ID="pnlGeneral">
                     
                                                 
                                                <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="'0" class="table_body_general"  >
                                                <tr>
                                                <td>
 
                                                <TABLE id="Table1E" cellSpacing="0" cellPadding="0" width="100%" border="0" class="table_body_general" >
                                                 
 
                                        <TR>
                                            <TD ><a name="controles"></a></TD>
                                            <TD colspan="1">
                                                 </TD>
                                            <TD >
                                                 </TD>
                                            <TD >
                                                 </TD>
                                        </TR>
 
 
                                        <TR>
                                            <TD  colspan="4"  align="center"><b>Edición de datos de reporte</b>
                                                 </TD>
                                        </TR>
 
                                        <TR>
                                            <TD  colspan="4"  align="center"
                                                 </TD>
                                        </TR>
                                        <TR>
                                            <TD bgcolor="#A6D2FF" >[ID]:</TD>
                                            <TD  bgcolor="#A6D2FF" >
                                                <asp:textbox id="txtFRMId" 
                                                    text='<%# DataBinder.Eval( Container, "DataItem.IdReporte" ) %>'
                                                    runat="server"  Enabled="False" Width="300px"></asp:textbox>
 
                                                    </TD>
                                            <TD  align="left" bgcolor="#A6D2FF" >
                                                [Fecha]:</TD>
                                            <TD bgcolor="#A6D2FF" >
                                                <asp:TextBox ID="txtFRMFecha" runat="server" Enabled="False"
                                                    text='<%# DataBinder.Eval( Container, "DataItem.FechaRep" ) %>' Width="300px"></asp:TextBox>
                                            </TD>
                                        </TR>
                                         
 
                                     
                                        <TR>
                                            <TD bgcolor="#A6D2FF" >[Depto/Coordinación:]:</TD>
                                            <TD bgcolor="#A6D2FF" >
                                                <asp:DropDownList ID="ddlFRMDeptoPers" runat="server" Width="300px">
                                                </asp:DropDownList>                                        
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlFRMDeptoPers" Text="[*]" ErrorMessage="[El departamento es un valor requerido]"></asp:RequiredFieldValidator>
                                                    </TD>
                                            <TD bgcolor="#A6D2FF" >
                                                [Tipo de instalación]:</TD>
                                            <TD  bgcolor="#A6D2FF" >
                                             
                <asp:DropDownList runat="server" ID="ddlTipoInstal" Width="300px"
                 AutoPostBack="True"                                                   
                OnSelectedIndexChanged="ddlTipoInstal_SelectedIndexChanged"
                >
                    <asp:ListItem Text="[Seleccione un tipo]" Value="%"></asp:ListItem>
                     
                      <asp:ListItem Text="ACUEDUCTO" Value="1"></asp:ListItem>
                    <asp:ListItem Text="ALMACENES Y BODEGAS" Value="2"></asp:ListItem>
                    <asp:ListItem Text="APROVECHAMIENTO DE AGUA SUPERFICIAL" Value="4"></asp:ListItem>
                    <asp:ListItem Text="AULA DE CAPACITACION" Value="7"></asp:ListItem>
                    <asp:ListItem Text="BACAZA DE CONSTRUCCION" Value="148"></asp:ListItem>
                    <asp:ListItem Text="BARCAZA DE PERFORACION LACUSTRE" Value="8"></asp:ListItem>
                    <asp:ListItem Text="BARCAZA DE PERFORACION MARINA" Value="9"></asp:ListItem>
                    <asp:ListItem Text="BARCO ABASTECEDOR" Value="145"></asp:ListItem>
                    <asp:ListItem Text="BARCO ABASTECEDOR-REMOLCADOR" Value="147"></asp:ListItem>
                    <asp:ListItem Text="BARCO CAUTIVO DE ALMACENAJE Y CARGA" Value="10"></asp:ListItem>
                    <asp:ListItem Text="BARCO CONTRAINCENDIO" Value="11"></asp:ListItem>
                    <asp:ListItem Text="BARCO DE INSPECCION Y GEOFISICA" Value="12"></asp:ListItem>
                    <asp:ListItem Text="BARCO DE POSICIONAMIENTO DINAMICO" Value="13"></asp:ListItem>
                    <asp:ListItem Text="BARCO DE PROCESO" Value="14"></asp:ListItem>
                    <asp:ListItem Text="BARCO GRUA" Value="15"></asp:ListItem>
                    <asp:ListItem Text="BARCO TALLER" Value="16"></asp:ListItem>
                    <asp:ListItem Text="BATERIA DE SEPARACION" Value="17"></asp:ListItem>
                    <asp:ListItem Text="BUQUE TANQUE" Value="18"></asp:ListItem>
                    <asp:ListItem Text="CABEZAL DE DESCARGA" Value="20"></asp:ListItem>
                    <asp:ListItem Text="CABEZAL DE RECOLECCION" Value="21"></asp:ListItem>
                    <asp:ListItem Text="CABEZAL DE SUCCION" Value="19"></asp:ListItem>
                    <asp:ListItem Text="CAMPAMENTO DE CORROSION" Value="22"></asp:ListItem>
                    <asp:ListItem Text="CAMPAMENTOS DE EXPLORACION" Value="23"></asp:ListItem>
                    <asp:ListItem Text="CAMPAMENTOS DE PERFORACION" Value="24"></asp:ListItem>
                    <asp:ListItem Text="CAMPO PRODUCTOR" Value="25"></asp:ListItem>
                    <asp:ListItem Text="CENTRAL CONTRAINCENDIO" Value="26"></asp:ListItem>
                    <asp:ListItem Text="CENTRAL DE ALMACENAMIENTO ESTRATEGICO" Value="27"></asp:ListItem>
                    <asp:ListItem Text="CENTRAL DE ALMACENAMIENTO Y BOMBEO" Value="28"></asp:ListItem>
                    <asp:ListItem Text="CENTRAL DE BOMBEO Y DISTRIBUCION" Value="29"></asp:ListItem>
                    <asp:ListItem Text="CENTRAL DE DISTRIBUCION DE ACEITE" Value="30"></asp:ListItem>
                    <asp:ListItem Text="CENTRAL DE DISTRIBUCION DE GAS" Value="31"></asp:ListItem>
                    <asp:ListItem Text="CENTRAL DE RECOLECCION DE AGUA RESIDUAL" Value="32"></asp:ListItem>
                    <asp:ListItem Text="CENTRO DE ADIESTRAMIENTO" Value="33"></asp:ListItem>
                    <asp:ListItem Text="CENTRO DE DISTRIBUCION DE GAS MARINO" Value="34"></asp:ListItem>
                    <asp:ListItem Text="CENTRO DE PROC. Y TRANSP DE GAS Y CONDENSADOS" Value="35"></asp:ListItem>
                    <asp:ListItem Text="CHALANES" Value="36"></asp:ListItem>
                    <asp:ListItem Text="COLECTOR DE ACEITE" Value="37"></asp:ListItem>
                    <asp:ListItem Text="COMPLEJO" Value="38"></asp:ListItem>
                    <asp:ListItem Text="CONEXIONES SUPERFICIALES D.D.VIA" Value="39"></asp:ListItem>
                    <asp:ListItem Text="CRUZAMIENTOS DE TUBERIAS" Value="40"></asp:ListItem>
                    <asp:ListItem Text="DERECHO DE VIAS" Value="41"></asp:ListItem>
                    <asp:ListItem Text="DIESELDUCTO" Value="42"></asp:ListItem>
                    <asp:ListItem Text="DOMOS SALINOS" Value="43"></asp:ListItem>
                    <asp:ListItem Text="DUCTOS" Value="44"></asp:ListItem>
                    <asp:ListItem Text="EDIFICIOS ADMINISTRATIVOS" Value="45"></asp:ListItem>
                    <asp:ListItem Text="EMBARCACIONES" Value="46"></asp:ListItem>
                    <asp:ListItem Text="EN CONSTRUCCION" Value="47"></asp:ListItem>
                    <asp:ListItem Text="EQ. DE REPARACION Y TERM. DE POZOS" Value="48"></asp:ListItem>
                    <asp:ListItem Text="EQUIPO DE PERFORACION MARINO" Value="49"></asp:ListItem>
                    <asp:ListItem Text="EQUIPO DE PERFORACION TERRESTRE" Value="50"></asp:ListItem>
                    <asp:ListItem Text="ESTACION DE BOMBAS" Value="51"></asp:ListItem>
                    <asp:ListItem Text="ESTACION DE CALENTADORES" Value="52"></asp:ListItem>
                    <asp:ListItem Text="ESTACION DE COMPRESORAS" Value="53"></asp:ListItem>
                    <asp:ListItem Text="ESTACION DE MEDICION" Value="54"></asp:ListItem>
                    <asp:ListItem Text="ESTACION DE RECOLECCION" Value="55"></asp:ListItem>
                    <asp:ListItem Text="ESTACION DE RECOLECCION Y COMPRESION" Value="56"></asp:ListItem>
                    <asp:ListItem Text="ESTACION DE REGULACION Y/O MEDICION" Value="57"></asp:ListItem>
                    <asp:ListItem Text="ETANODUCTO" Value="58"></asp:ListItem>
                    <asp:ListItem Text="FLOTELES" Value="59"></asp:ListItem>
                    <asp:ListItem Text="GASODUCTO" Value="60"></asp:ListItem>
                    <asp:ListItem Text="GASOLINERIAS (ESTACIONES DE SERVICIO)" Value="61"></asp:ListItem>
                    <asp:ListItem Text="GASOLINODUCTO" Value="62"></asp:ListItem>
                    <asp:ListItem Text="HELIPUERTO" Value="63"></asp:ListItem>
                    <asp:ListItem Text="HISTORICAS" Value="64"></asp:ListItem>
                    <asp:ListItem Text="HOSPITAL" Value="65"></asp:ListItem>
                    <asp:ListItem Text="INSTALACIONES CSM-209" Value="66"></asp:ListItem>
                    <asp:ListItem Text="JUEGO DE VALVULAS" Value="67"></asp:ListItem>
                    <asp:ListItem Text="LABORATORIOS" Value="68"></asp:ListItem>
                    <asp:ListItem Text="LAGUNA AZUL" Value="69"></asp:ListItem>
                    <asp:ListItem Text="LANCHA CONVENCIONAL" Value="70"></asp:ListItem>
                    <asp:ListItem Text="LANCHA DE INSPECCION" Value="71"></asp:ListItem>
                    <asp:ListItem Text="LANCHA DISPERSORA" Value="72"></asp:ListItem>
                    <asp:ListItem Text="LANCHA RAPIDA" Value="73"></asp:ListItem>
                    <asp:ListItem Text="LINEA DE BOMBEO NEUMATICO" Value="74"></asp:ListItem>
                    <asp:ListItem Text="LINEA DE DESCARGA DE POZOS" Value="75"></asp:ListItem>
                    <asp:ListItem Text="LINEA DE INYECCION DE AGUA" Value="76"></asp:ListItem>
                    <asp:ListItem Text="LINEAS DE TRANSMISION" Value="77"></asp:ListItem>
                    <asp:ListItem Text="LOCALIZACION DE POZOS" Value="78"></asp:ListItem>
                    <asp:ListItem Text="MANEJADOR ANCLA" Value="79"></asp:ListItem>
                    <asp:ListItem Text="MEJORADORA DE FLUJO" Value="80"></asp:ListItem>
                    <asp:ListItem Text="MODULO DE SEPARACION Y MEDICION" Value="81"></asp:ListItem>
                    <asp:ListItem Text="MONOBOYA" Value="82"></asp:ListItem>
                    <asp:ListItem Text="MUELLES O EMBARCADEROS" Value="83"></asp:ListItem>
                    <asp:ListItem Text="NGD" Value="84"></asp:ListItem>
                    <asp:ListItem Text="OFICINAS" Value="85"></asp:ListItem>
                    <asp:ListItem Text="OLEODUCTO" Value="86"></asp:ListItem>
                    <asp:ListItem Text="OLEOGASODUCTO" Value="87"></asp:ListItem>
                    <asp:ListItem Text="OTROS" Value="88"></asp:ListItem>
                    <asp:ListItem Text="PATIN DE MEDICION" Value="89"></asp:ListItem>
                    <asp:ListItem Text="PATIOS DE FABRICACION" Value="144"></asp:ListItem>
                    <asp:ListItem Text="PENDIENTES" Value="90"></asp:ListItem>
                    <asp:ListItem Text="PLANTA DE FLUIDOS" Value="91"></asp:ListItem>
                    <asp:ListItem Text="PLANTA DE INYECCION DE AGUA" Value="92"></asp:ListItem>
                    <asp:ListItem Text="PLANTA DE LODOS" Value="93"></asp:ListItem>
                    <asp:ListItem Text="PLANTA DE TRATAMIENTO DE AGUA" Value="94"></asp:ListItem>
                    <asp:ListItem Text="PLANTA DESHIDRATADORA" Value="95"></asp:ListItem>
                    <asp:ListItem Text="PLANTA DESHIDRATADORA DE GAS" Value="96"></asp:ListItem>
                    <asp:ListItem Text="PLANTA ENDULZADORA" Value="97"></asp:ListItem>
                    <asp:ListItem Text="PLANTA POTABILIZADORA" Value="98"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA CONTROL Y SERVICIO" Value="99"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA DE ENLACE" Value="100"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA DE EXPLORACION" Value="101"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA DE MEDICION" Value="102"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA DE PRODUCCION" Value="103"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA DE TELECOMUNICACIONES" Value="104"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA EXPLORATORIA DE PERFORACION" Value="105"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA FIJA CON EQ. DE BOMBEO" Value="106"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA FIJA CON EQ. DE COMPRESION" Value="107"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA FIJA CON EQ. DE INYECCION" Value="108"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA FIJA CON EQ. DE PERFORACION" Value="109"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA FIJA CON EQ. DE R. Y T.P." Value="110"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA FIJA DE POZOS EN COMPLEJO" Value="111"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA FIJA SIN EQUIPO" Value="112"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA HABITACIONAL" Value="113"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA SATELITE" Value="114"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA SATELITE DE PRODUCCION" Value="115"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMA TEMPORAL" Value="116"></asp:ListItem>
                    <asp:ListItem Text="PLATAFORMAS MARINAS" Value="117"></asp:ListItem>
                    <asp:ListItem Text="POBLADO" Value="118"></asp:ListItem>
                    <asp:ListItem Text="POLVORINES" Value="119"></asp:ListItem>
                    <asp:ListItem Text="POTABILIZADORA" Value="120"></asp:ListItem>
                    <asp:ListItem Text="POZO" Value="121"></asp:ListItem>
                    <asp:ListItem Text="PROPANODUCTO" Value="122"></asp:ListItem>
                    <asp:ListItem Text="PROVECHAMIENTO DE AGUA SUBTERRANEO" Value="3"></asp:ListItem>
                    <asp:ListItem Text="RECINTO SOCIAL" Value="123"></asp:ListItem>
                    <asp:ListItem Text="RECOLECTOR DE RESIDUOS METALICOS" Value="124"></asp:ListItem>
                    <asp:ListItem Text="REMOLCADORES" Value="125"></asp:ListItem>
                    <asp:ListItem Text="SALODUCTO" Value="126"></asp:ListItem>
                    <asp:ListItem Text="SDD" Value="127"></asp:ListItem>
                    <asp:ListItem Text="SECTOR NAVAL" Value="128"></asp:ListItem>
                    <asp:ListItem Text="SEPARADOR REMOTO" Value="129"></asp:ListItem>
                    <asp:ListItem Text="SUBESTACION ELECTRICA" Value="130"></asp:ListItem>
                    <asp:ListItem Text="TALLERES" Value="131"></asp:ListItem>
                    <asp:ListItem Text="TANQUE DE ALMACENAMIENTO" Value="132"></asp:ListItem>
                    <asp:ListItem Text="TERMINAL MARITIMA" Value="133"></asp:ListItem>
                    <asp:ListItem Text="TRAMO CARRETERO" Value="143"></asp:ListItem>
                    <asp:ListItem Text="TRAMPA DE ENVIO O RECEPCION DE DIABLOS" Value="134"></asp:ListItem>
                    <asp:ListItem Text="UNIDAD DE ALM. Y DISTRIB. DE ACIDOS" Value="135"></asp:ListItem>
                    <asp:ListItem Text="UNIDAD DEPORTIVA" Value="136"></asp:ListItem>
                    <asp:ListItem Text="UNIDADES DE GEOFISICAS" Value="137"></asp:ListItem>
                    <asp:ListItem Text="UNIDADES DE TRANSPORTE" Value="138"></asp:ListItem>
                    <asp:ListItem Text="VALVULAS DE SECCIONAMIENTO" Value="139"></asp:ListItem>
                    <asp:ListItem Text="ZONA FUERA DE LA INSTALACION" Value="140"></asp:ListItem>
                    <asp:ListItem Text="ZONA HABITACIONAL" Value="141"></asp:ListItem>
                    <asp:ListItem Text="ZONA INDUSTRIAL" Value="142"></asp:ListItem>
                    <asp:ListItem Text="ZONA MARINA" Value="146"></asp:ListItem>
                </asp:DropDownList>
                                             
                                        </TD>
                                        </TR>
 
                     
 
                                        <TR>
                                            <TD bgcolor="#A6D2FF" >
                                                <table bgcolor="#A6D2FF" cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td align="left" bgcolor="#A6D2FF">
                                                            [Dependencia/CIA]:
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlTipoDep" runat="server" AutoPostBack="True"
                                                                OnSelectedIndexChanged="ddlTipoDep_SelectedIndexChanged">
                                                                <asp:ListItem Value="-1">[Seleccione]</asp:ListItem>
                                                                <asp:ListItem Value="1">[Pemex]</asp:ListItem>
                                                                <asp:ListItem Value="2">[Cia]</asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </TD>
                                            <TD bgcolor="#A6D2FF"  align="left">    
                                                <asp:DropDownList ID="ddlFRMDepen" runat="server" Width="300px">
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                    ControlToValidate="ddlFRMDepen"
                                                    ErrorMessage="[La dependencia/CIA es un valor requerido]" Text="[*]"></asp:RequiredFieldValidator>
 
                                                    </TD>
                                            <TD bgcolor="#A6D2FF" >
                                                [Instalación]:</TD>
                                            <TD  bgcolor="#A6D2FF" >
                                                <asp:DropDownList ID="ddlFRMInstal" runat="server" Width="300px">
                                                </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlFRMInstal" Text="[*]" ErrorMessage="[La instalación es un valor requerido]"></asp:RequiredFieldValidator>
                                                    </TD>
                                        </TR>
 
                                        <tr>
                                        <td bgcolor="#A6D2FF">[Convenio/Contrato]:</td>
                                            <td align="left" bgcolor="#A6D2FF">
                                                <asp:TextBox ID="txtFRMFConvenio" runat="server"
                                                    text='<%# DataBinder.Eval( Container, "DataItem.Convenio" ) %>'
                                                    Width="300px" ></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                                    ControlToValidate="txtFRMFConvenio" ErrorMessage="[El convenio es requerido]"
                                                    Text="[*]"></asp:RequiredFieldValidator>
                                            </td>
                                            <td bgcolor="#A6D2FF">
                                                [Tramo ]:</td>
                                            <td bgcolor="#A6D2FF">
                                            <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                            <td>
                                                <asp:TextBox ID="txtFRMTramoIni" runat="server"  Enabled="false"
                                                    Width="100px"></asp:TextBox>                                            
                                            </td>
                                            <td>  
                                                    Km  <b> - </b>  
                                            </td>
                                            <td>
                                            <asp:TextBox ID="txtFRMTramoFin" runat="server"     Enabled="false"                                               
                                                    Width="100px"></asp:TextBox>
                                            </td>
                                            <td>  Km
                                            </td>
                                            </tr>
                                            </table>
 
                                            </td>
                                        </tr>
 
                                                                             
                                        <TR>
                                             
                                            <TD >
                                             
 
                                                [Ficha Responsable]:
                                                 
                                                 
                                            </TD>
                                            <TD >
                                                 
                                                <asp:textbox id="txtFRMFichaRespon"
                                                    text='<%# DataBinder.Eval( Container, "DataItem.FichaResponsable" ) %>' runat="server"
                                                     AutoPostBack="true"
                                                      OnTextChanged="txtFRMFichaRespon_TextChanged"
                                                     Width="300px"
                                                    ></asp:textbox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtFRMFichaRespon" Text="[*]" ErrorMessage="[La ficha del responsable es requerida]"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ValidationExpression="[0-9]*" ControlToValidate="txtFRMFichaRespon" Text="[Solo valores numericos]" ErrorMessage="[La ficha del responsable es un valor numerico]"></asp:RegularExpressionValidator>
                                                <br />
                                            </TD>
                                             
                                             
                                            <TD  >[Numero de personas]:</TD>
                                            <TD valign=bottom>
                                                <asp:textbox id="txtFRMNumP"
                                                    text='<%# DataBinder.Eval( Container, "DataItem.CantidadPersonas" ) %>' runat="server"
                                                    Width="300px"
                                                    ></asp:textbox>
                                                     
                                                        <asp:RangeValidator ID="RangeValidator2" runat="server"
                                                            ControlToValidate="txtFRMNumP" ErrorMessage="[El número de personas no es correcto]"
                                                            MinimumValue="1" Text="[*]" Type="Integer" MaximumValue="999999999"></asp:RangeValidator>
 
                                                     
                                                <asp:RegularExpressionValidator ID="ReqNumValidator" runat="server"
                                                    ControlToValidate="txtFRMNumP"
                                                    ErrorMessage="[El numero de personas debe ser un valor numerico]"
                                                    Text="[Solo valores numericos]" ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>
                                                     
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
                                                    ControlToValidate="txtFRMNumP"
                                                    ErrorMessage="[El numero de personas es un valor requerido]" Text="[*]"></asp:RequiredFieldValidator>
                                                     
                                            </TD>
                                             
                                        </TR>
 
          
 
 
                                        <TR>
                                        <td>[Nombre Responsable]:</td>
                                            <TD align="center" >
                                                     
                                                    <asp:TextBox ID="txtFRMResponsable" runat="server"
                                                        text='<%# DataBinder.Eval( Container, "DataItem.Responsable" ) %>'
                                                        Width="300px"></asp:TextBox>
                                                     
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
                                                        ControlToValidate="txtFRMResponsable"
                                                        ErrorMessage="[El nombre del responsable es un valor requerido]" Text="[*]"></asp:RequiredFieldValidator>
 
                                                </TD>
                                            <TD >
                                                [Unidad]:</TD>
                                            <TD >
                                                <asp:TextBox ID="txtFRMUnidad" runat="server"
                                                    Width="300px"></asp:TextBox>
                                                     
                                                    </TD>
                                        </TR>
 
          
                                                <tr>
                                                <td>[Categoría]</td>
                                                    <td align="center">
                                                        <asp:DropDownList ID="ddlCategoria" runat="server" 
                                                            Width="300px">
                                                        </asp:DropDownList>
                                                         
                                                        <asp:RangeValidator ID="RangeValidator1" runat="server"
                                                            ControlToValidate="ddlCategoria" ErrorMessage="[Seleccione una categoría]"
                                                            MinimumValue="0" Text="[*]" Type="Integer" MaximumValue="999999999"></asp:RangeValidator>
                                                         
                                                    </td>
                                                    <td>
                                                        [% Avance]:</td>
                                                    <td>
                                                        <asp:TextBox ID="txtFRMAvance" runat="server"
                                                            text='<%# DataBinder.Eval( Container, "DataItem.Avance" ) %>' Width="200px"></asp:TextBox>
                                                        <asp:RangeValidator ID="rngValidator" runat="server"
                                                            ControlToValidate="txtFRMAvance" ErrorMessage="[El % debe ser entre 0-100]"
                                                            MaximumValue="100" MinimumValue="0" Text="[*]" Type="Integer"></asp:RangeValidator>
                                                        <asp:RequiredFieldValidator ID="rfv_Avance" runat="server"
                                                            ControlToValidate="txtFRMAvance" 
                                                            ErrorMessage="[El dato Avance es un valor requerido]" Text="[*]"></asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                 
                                                 
                                                    <tr bgcolor="#A6D2FF" height="80px">
                                                        <td class="style1">
                                                            [Asunto]:</td>
                                                        <td class="style1">
                                                            <asp:TextBox ID="txtFRMAsunto" runat="server" BorderWidth="0" Height="50px"
                                                                Rows="2" text='<%# DataBinder.Eval( Container, "DataItem.Asunto" ) %>'
                                                                TextMode="MultiLine" Width="300px"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server"
                                                                ControlToValidate="txtFRMAsunto"
                                                                ErrorMessage="[El asunto es un valor requerido]" Text="[*]"></asp:RequiredFieldValidator>
                                                        </td>
                                                        <td>
                                                            [Capturista]:</td>
                                                        <td>
                                                            <asp:TextBox ID="txtFRMUsuario" runat="server" Enabled="False"
                                                                text='<%# DataBinder.Eval( Container, "DataItem.Usuario" ) %>' Width="300px"></asp:TextBox>
                                                        </td>
                                                    </tr>
 
                                                 
                                                 
                                                 
                                                </table>
                                                 
                                                     
                                                     
                                                    </TD>
                                        </TR>
 
          
 
 
          
 
 
                        </table>
 
 
 
                    </asp:Panel>
                     
                        <asp:panel ID="pnlPersonal" runat="server"   Visible="false" >
 
                        <uc1:wcPersonal ID="wcPersonal1" runat="server" />                                                       
                         
                </asp:panel>
 
 
 
                     
                     
 
 
 
                         
                     
                    <div align="center">
                                                <asp:button id="cmdFRMUpdate" text="Guardar" CssClass="textbox_general" runat="server" commandname="Update" CausesValidation="true" >
                                                </asp:button>
                                                <asp:button id="cmdFRMCancel" text="Cancelar" CssClass="textbox_general" runat="server" causesvalidation="False"
                                                    commandname="Cancel"></asp:button>
                    </div>                                                 
                   
                   
                  </asp:Panel>
                   
     </formtemplate>
 
 
</editformsettings>
 
                             
                            <CommandItemTemplate>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert"><img style="border:0px" alt="" src="./RadControls/Grid/Skins/AddRecord.gif" /> Agregar nuevo</asp:LinkButton>
                            </CommandItemTemplate>
 
        <COLUMNS>
         
             
 
                                <telerik:GridEditCommandColumn EditImageUrl="imagenes/im001.gif" ButtonType="ImageButton" UniqueName="EditCommandColumn">
                                    <ItemStyle Width="15px"></ItemStyle>
                                    <HeaderStyle Width="15px"></HeaderStyle>
                                </telerik:GridEditCommandColumn>
 
 
             
            <telerik:GRIDBUTTONCOLUMN Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton" CommandName="Delete"
                ImageUrl="imagenes/im016.gif">
                <ITEMSTYLE Width="10px"></ITEMSTYLE>
                <HEADERSTYLE Width="20px"></HEADERSTYLE>
            </telerik:GRIDBUTTONCOLUMN>
         
         
            <telerik:GRIDTEMPLATECOLUMN >          
            <HeaderStyle width="20px"></HeaderStyle>
                <ItemStyle   width="20px" />
                <ITEMTEMPLATE>
                    <asp:ImageButton  runat="server" ID="btnCopiar"
                    CommandName="Copy" 
                    ImageUrl="imagenes/guardar_copia.png" 
                    />
                     
                </ITEMTEMPLATE>
            </telerik:GRIDTEMPLATECOLUMN>
 
         
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdReporte"
                DataField="IdReporte" HeaderText="IdReporte" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdCentroInstal"
                DataField="IdCentroInstal" HeaderText="IdCentroInstal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdInstal"
                DataField="IdInstal" HeaderText="IdInstal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdCategoria"
                DataField="IdCategoria" HeaderText="IdCategoria" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="TramoIni"
                DataField="TramoIni" HeaderText="TramoIni" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="TramoFin"
                DataField="TramoFin" HeaderText="TramoFin" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="Unidad"
                DataField="Unidad" HeaderText="Unidad" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdTipoInstal"
                DataField="IdTipoInstal" HeaderText="IdTipoInstal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdDeptoPersonal"
                DataField="IdDeptoPersonal" HeaderText="Depto Personal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdTipoDep"
                DataField="IdTipoDep" HeaderText="Id Tipo Dep" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdDependencia"
                DataField="IdDependencia" HeaderText="Id Dependencia" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="EsEditable"  visible="false"
                DataField="EsEditable" >
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
                         
            <telerik:GRIDBOUNDCOLUMN UniqueName="FechaRep"
                DataField="FechaRep" HeaderText="Fecha"  DataType="System.DateTime"  >
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescDependencia"
                DataField="DescDependencia" HeaderText="Depen/Cia">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="CantidadPersonas"
                DataField="CantidadPersonas" HeaderText="Num Pers" DataType="System.Int32" >
                <HEADERSTYLE width="50px" ></HEADERSTYLE>              
            </telerik:GRIDBOUNDCOLUMN>
 
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="Responsable"
                DataField="Responsable" HeaderText="Responsable">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
             
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescDeptoPersonal"
                DataField="DescDeptoPersonal" HeaderText="Depto/Coord Personal">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
             
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescCentroInstal"    visible="false"
                DataField="DescCentroInstal" HeaderText="Centro">
                <HEADERSTYLE width="50px"  ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescInstal"
                DataField="DescInstal" HeaderText="Instalación">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
     
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="Convenio"
                DataField="Convenio" HeaderText="Contrato/Convenio">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>         
 
 
             
 
 
             
             
            <telerik:GRIDBOUNDCOLUMN UniqueName="Asunto"
                DataField="Asunto" HeaderText="Asunto">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>         
                                 
            <telerik:GRIDBOUNDCOLUMN UniqueName="Usuario"
                DataField="Usuario" HeaderText="Capturista">
                <HEADERSTYLE Width="50px"></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>           
         
    </Columns>
     
     
            <EXPANDCOLLAPSECOLUMN Visible="False" UniqueName="ExpandColumn" ButtonType="ImageButton">
            <HEADERSTYLE Width="19px"></HEADERSTYLE>
        </EXPANDCOLLAPSECOLUMN>
    </MASTERTABLEVIEW>
    <HEADERSTYLE ></HEADERSTYLE>
    <SELECTEDITEMSTYLE ></SELECTEDITEMSTYLE>
    <ACTIVEITEMSTYLE ></ACTIVEITEMSTYLE>
    <ITEMSTYLE ></ITEMSTYLE>
    <FOOTERSTYLE ></FOOTERSTYLE>
    <CLIENTSETTINGS >
        <RESIZING AllowColumnResize="True" ResizeGridOnColumnResize="True" EnableRealTimeResize="True"></RESIZING>
        <SCROLLING UseStaticHeaders="True" AllowScroll="True"></SCROLLING>
        <SELECTING AllowRowSelect="True"></SELECTING>
    </CLIENTSETTINGS>
     
    </telerik:radgrid>
Hello Telerik Team,

I'm using Telerik v2.0.50727 on VS2008, and I'm facing an error on Radgrid's edit form when some of the controlls area

                    <telerik:radgrid id="RgData" runat="server"   
                     
                    OnNeedDataSource="RgData_NeedDataSource"
                    AutoGenerateColumns="False" AllowSorting="True"
                        GridLines="None"
                         
                        OnItemDataBound="RgData_ItemDataBound"
                        OnDeleteCommand="RgData_DeleteCommand"
                        OnUpdateCommand="RgData_UpdateCommand"
                        OnItemCommand="RgData_Command"
                        Width="99%"
                        Height="450px"
                        >
                        <FilterItemStyle BackColor="red" />
                         
                        <ItemStyle  Height="50px" />
                        <AlternatingItemStyle Height="50px" ></AlternatingItemStyle>
                        <GroupHeaderItemStyle  ></GroupHeaderItemStyle>
 
                        <MasterTableView CommandItemDisplay="None"  GridLines="None" Height="20px">
                            <RowIndicatorColumn UniqueName="RowIndicator" Visible="False">
                                <HeaderStyle Width="20px" ></HeaderStyle>
                                <ItemStyle ></ItemStyle>
                            </RowIndicatorColumn>
                             
                         
 
<editformsettings editformtype="Template" >
 
   <editcolumn uniquename="EditCommandColumn" ButtonType="ImageButton"></editcolumn>
 
      <formtemplate>
 
<asp:DropDownList runat="server" ID="ddlTipoInstal" Width="300px"
                 AutoPostBack="True"                                                   
                OnSelectedIndexChanged="ddlTipoInstal_SelectedIndexChanged"
                >
 
     </formtemplate>
 
 
</editformsettings>
 
                             
                            <CommandItemTemplate>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert"><img style="border:0px" alt="" src="./RadControls/Grid/Skins/AddRecord.gif" /> Agregar nuevo</asp:LinkButton>
                            </CommandItemTemplate>
 
        <COLUMNS>
         
             
 
                                <telerik:GridEditCommandColumn EditImageUrl="imagenes/im001.gif" ButtonType="ImageButton" UniqueName="EditCommandColumn">
                                    <ItemStyle Width="15px"></ItemStyle>
                                    <HeaderStyle Width="15px"></HeaderStyle>
                                </telerik:GridEditCommandColumn>
 
 
             
            <telerik:GRIDBUTTONCOLUMN Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton" CommandName="Delete"
                ImageUrl="imagenes/im016.gif">
                <ITEMSTYLE Width="10px"></ITEMSTYLE>
                <HEADERSTYLE Width="20px"></HEADERSTYLE>
            </telerik:GRIDBUTTONCOLUMN>
         
         
            <telerik:GRIDTEMPLATECOLUMN >          
            <HeaderStyle width="20px"></HeaderStyle>
                <ItemStyle   width="20px" />
                <ITEMTEMPLATE>
                    <asp:ImageButton  runat="server" ID="btnCopiar"
                    CommandName="Copy" 
                    ImageUrl="imagenes/guardar_copia.png" 
                    />
                     
                </ITEMTEMPLATE>
            </telerik:GRIDTEMPLATECOLUMN>
 
         
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdReporte"
                DataField="IdReporte" HeaderText="IdReporte" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdCentroInstal"
                DataField="IdCentroInstal" HeaderText="IdCentroInstal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdInstal"
                DataField="IdInstal" HeaderText="IdInstal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdCategoria"
                DataField="IdCategoria" HeaderText="IdCategoria" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="TramoIni"
                DataField="TramoIni" HeaderText="TramoIni" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="TramoFin"
                DataField="TramoFin" HeaderText="TramoFin" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="Unidad"
                DataField="Unidad" HeaderText="Unidad" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdTipoInstal"
                DataField="IdTipoInstal" HeaderText="IdTipoInstal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdDeptoPersonal"
                DataField="IdDeptoPersonal" HeaderText="Depto Personal" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdTipoDep"
                DataField="IdTipoDep" HeaderText="Id Tipo Dep" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="IdDependencia"
                DataField="IdDependencia" HeaderText="Id Dependencia" visible="false">
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
 
 
        <telerik:GRIDBOUNDCOLUMN UniqueName="EsEditable"  visible="false"
                DataField="EsEditable" >
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
                         
            <telerik:GRIDBOUNDCOLUMN UniqueName="FechaRep"
                DataField="FechaRep" HeaderText="Fecha"  DataType="System.DateTime"  >
                <HEADERSTYLE width="60px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescDependencia"
                DataField="DescDependencia" HeaderText="Depen/Cia">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="CantidadPersonas"
                DataField="CantidadPersonas" HeaderText="Num Pers" DataType="System.Int32" >
                <HEADERSTYLE width="50px" ></HEADERSTYLE>              
            </telerik:GRIDBOUNDCOLUMN>
 
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="Responsable"
                DataField="Responsable" HeaderText="Responsable">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
 
             
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescDeptoPersonal"
                DataField="DescDeptoPersonal" HeaderText="Depto/Coord Personal">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
             
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescCentroInstal"    visible="false"
                DataField="DescCentroInstal" HeaderText="Centro">
                <HEADERSTYLE width="50px"  ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
             
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="DescInstal"
                DataField="DescInstal" HeaderText="Instalación">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>
     
 
            <telerik:GRIDBOUNDCOLUMN UniqueName="Convenio"
                DataField="Convenio" HeaderText="Contrato/Convenio">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>         
 
 
             
 
 
             
             
            <telerik:GRIDBOUNDCOLUMN UniqueName="Asunto"
                DataField="Asunto" HeaderText="Asunto">
                <HEADERSTYLE width="100px" ></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>         
                                 
            <telerik:GRIDBOUNDCOLUMN UniqueName="Usuario"
                DataField="Usuario" HeaderText="Capturista">
                <HEADERSTYLE Width="50px"></HEADERSTYLE>
            </telerik:GRIDBOUNDCOLUMN>           
         
    </Columns>
     
     
            <EXPANDCOLLAPSECOLUMN Visible="False" UniqueName="ExpandColumn" ButtonType="ImageButton">
            <HEADERSTYLE Width="19px"></HEADERSTYLE>
        </EXPANDCOLLAPSECOLUMN>
    </MASTERTABLEVIEW>
    <HEADERSTYLE ></HEADERSTYLE>
    <SELECTEDITEMSTYLE ></SELECTEDITEMSTYLE>
    <ACTIVEITEMSTYLE ></ACTIVEITEMSTYLE>
    <ITEMSTYLE ></ITEMSTYLE>
    <FOOTERSTYLE ></FOOTERSTYLE>
    <CLIENTSETTINGS >
        <RESIZING AllowColumnResize="True" ResizeGridOnColumnResize="True" EnableRealTimeResize="True"></RESIZING>
        <SCROLLING UseStaticHeaders="True" AllowScroll="True"></SCROLLING>
        <SELECTING AllowRowSelect="True"></SELECTING>
    </CLIENTSETTINGS>
     
    </telerik:radgrid>
Iana Tsolova
Telerik team
 answered on 08 Sep 2011
7 answers
704 views
Hi,

I am using the scolling feature in RADGrid. When there are more than 6 records in the grid it looks fine. If there are lesser records then I can see an empty area in the bottom of the grid. I set the height of the grid to 350 px. If I use StaticHeaders="true" I can see the space in both the sides, right and bottom. Please give me some workaround for this. Any suggestions are highly appreciated.
Ram
Top achievements
Rank 1
 answered on 08 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?