Hi every body i have a code that always put the column aligment center
any ideas? thanks
heres my code:
<%@ Page Language=“C#” AutoEventWireup=“true” CodeBehind=“Bancos.aspx.cs” Inherits=“SubastasGobChih.Bancos” %>
<link href="Scripts/dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_black.css" type="text/css" rel="STYLESHEET" />
<link href="Scripts/dhtmlxGrid/codebase/dhtmlxgrid.css" type="text/css" rel="STYLESHEET" />
<link href="Scripts/dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_black.css" type="text/css" rel="STYLESHEET" />
<script type="text/javascript" src="scripts/dhtmlxGrid/codebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="scripts/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
<script type="text/javascript" src=" scripts/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
<style type="text/css">
.encabezado1
{
/*font-family: 'Gotham-book';*/
font-family: 'Open Sans', sans-serif;
color:white;
font-weight: bold;
font-size: 28px;
margin-top: 0px;
margin-bottom: 0px;
}
.even_row {
background-color: #3399FF;
}
.odd_row {
background-color: #F69A4E;
}
div.gridbox {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
</style>
<script type="text/javascript">
var id_banco = -1;
var banco, representante, user, password;
var grdBancos;
function clearForm() {
$("input[type='text']").val('');
$("input[type='password']").val('');
id_banco = -1;
banco = ""; representante = ""; user = ""; password = "";
}
$(function () {
id_banco = -1;
banco = ""; representante = ""; user = ""; password = "";
[b]grdBancos = new dhtmlXGridObject("divBancos");
grdBancos.setStyle("font-size:14px", "font-size:14px");
grdBancos.setImagePath("scripts/dhtmlxGrid/codebase/imgs/");
grdBancos.setSkin("dhx_black");
grdBancos.enableAlterCss("even_row", "odd_row");
grdBancos.setHeader("Clave,Banco,Representante,Usuario,Contraseña");
grdBancos.setInitWidths("80,400,400,100,0");
grdBancos.setColAlign('center,left,left,left,left');
grdBancos.setColTypes('ro,ro,ro,ro,ro');
grdBancos.init();[/b]
});
function getBancos(){
var args = '';
var l = arguments.length;
for (var i = 0; i < l - 1; i += 2) {
if (args.length != 0) args += ',';
args += '"' + arguments[i] + '":"' + arguments[i + 1] + '"';
}
var data = "{" + args + "}";
var loc = window.location.href;
loc = (loc.substr(loc.length - 1, 1) == "/") ? loc + "Bancos.aspx" : loc;
try
{
$.ajax({
type: "POST",
async: false,
url: loc + "/" + "lookBanco",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: data,
success: cbgetBancos,
fail: null,
error: function (objeto, quepaso, otroobj) {
alert("Estas viendo esto por que fallé");
alert("Pasó lo siguiente: " + quepaso);
}
});
}
catch (err) {
}
}
function cbgetBancos(response) {
grdBancos.clearAll();
rdo = eval('(' + response.d + ')');
if (rdo.length > 0) {
var trow = new Array();
for (var i = 0; i <= rdo.length - 1; i++) {
trow[0] = rdo[i].cve_banco;
trow[1] = rdo[i].des_banco;
trow[2] = rdo[i].representante;
trow[3] = rdo[i].uuser;
trow[4] = rdo[i].password;
grdBancos.addRow(rdo[i].cve_banco, trow);
}
}
}
</script>
<%--menu--%>
<%--
–%>