Show Posts
|
Pages: [1] 2 3
|
4
|
General Category / EasyUI for jQuery / Datalist Background Color
|
on: March 17, 2016, 07:45:09 AM
|
PROBLEM:
I have one datalist. And when the DataList is loaded I execute this code $('#dlDivision').datalist('checkAll'), and all options have a yellow background color .
I don't want yellow background color appears ever.
If I check one by one, each option appears checked , and with the white background color.
I need the datalist always have white background color.
How should I do ?
MY CODE: function getDivisiones() { $('#dlDivision').datalist({ url: 'Ajax/GmapsFiltrosDivisiones.asp', method: 'get', textField:'Nombre', valueField: 'Codigo', singleSelect: false, onBeforeSelect: function(){return false;}, checkbox: true, lines:false, onLoadSuccess: function(data) { $('#dlDivision').datalist('checkAll'); } }); }
$( document ).ready( function(){ getDivisiones(); } );
|
|
|
6
|
General Category / EasyUI for jQuery / Re: Datagrid problem with lines, that have newline and carriage return characters
|
on: November 17, 2015, 05:47:44 AM
|
I have this datagrid.
// ******************************************************************** // Defino el datagrid para recuperar todas las informaciones de trabajo // ******************************************************************** $('#dgIT').datagrid({ url:'Ajax/get_IT.asp', width: '100%', height: '100%', autoRowHeight:true, autoSizeColumn:true, toolbar: '#tbDgIT', // Establece cual es el toolbar del grid collapsible:false, fitColumns:true, loadMsg: 'Procesando: Aguarde un momento.', striped:true, multiSort:false // habilita o sehabilita el multisort del grid });
this are the fields that I show in the datagrid. FechaCarga UsuarioCarga It --> (this text can contain multiple lines)
If the "It" field contain the newline character and carriage return character, any record are load into the grid.
And this is the ajax
<!-- #include virtual="Apl/SMR/Clases/ClassSMRIncidentes.asp" --> <!-- #include virtual="Global/Clases/ClassDbConnect.asp" --> <!-- #include virtual="Global/Clases/ClassAdoDb.asp" --> <% response.Charset="ISO-8859-1" Dim oSF Set oSF = New SMRIncidentes
' Vinieron los filtros f_NroIncidente = Request("NroInc") f_ItId = request("ItId")
Cantidad = oSF.getIT( f_NroIncidente, f_ItId ) rsa = oSF.rsRowsSet
sRow = "[" For i = 0 To Cantidad - 1 sRow = sRow & "{" sRow = sRow & "'NroIncidente':'" & rsa(i).Item("NroIncidente") & "'," sRow = sRow & "'ItId':'" & rsa(i).Item("ItId") & "'," sRow = sRow & "'FechaCarga':'" & rsa(i).Item("FechaCarga") & "'," sRow = sRow & "'It':'" & rsa(i).Item("It") & "'," sRow = sRow & "'DescAdjunto1':'" & rsa(i).Item("DescAdjunto1") & "'," sRow = sRow & "'DescAdjunto2':'" & rsa(i).Item("DescAdjunto2") & "'," sRow = sRow & "'DescAdjunto3':'" & rsa(i).Item("DescAdjunto3") & "'," sRow = sRow & "'ExtAdj1':'" & rsa(i).Item("ExtAdj1") & "'," sRow = sRow & "'ExtAdj2':'" & rsa(i).Item("ExtAdj2") & "'," sRow = sRow & "'ExtAdj3':'" & rsa(i).Item("ExtAdj3") & "'," sRow = sRow & "'UsuarioCarga':'" & rsa(i).Item("UsuarioCarga") & "'," sRow = sRow & "'OrgCodigo':'" & rsa(i).Item("OrgCodigo") & "' " sRow = sRow & "}" if i < Cantidad - 1 then sRow = sRow & "," end if Next sRow = sRow & "]" sRow = Replace(sRow,Chr(39),Chr(34)) sRow = Replace(sRow,Chr(10),Chr(32)) // Replace newline with space to work datagrid sRow = Replace(sRow,Chr(13),Chr(32)) // Replace carriage return with space to work datagrid response.write(sRow) %>
|
|
|
8
|
General Category / EasyUI for jQuery / Can I use 'selected=true' in combogrid?
|
on: September 18, 2015, 07:33:56 AM
|
Im use this command
$('#cbgSucursal').combogrid('enable').combogrid('reload', 'Ajax/get_Sucursales.asp?Nom=S&IdUnico=10000);
the return json is:
["DescSuc":"POSADAS","SucServDesc":"SUCURSAL","CajaSeguridad":"N","IdUnico":"10000" , "selected":"true" }, {"DescSuc":"RENTAS SAN MARTIN","SucServDesc":"ANEXO","CajaSeguridad":"N","IdUnico":"10001" }, {"DescSuc":"POSADAS","SucServDesc":"SECTORIZADO","CajaSeguridad":"N","IdUnico":"10101" }, {"DescSuc":"OBERA","SucServDesc":"SUCURSAL","CajaSeguridad":"N","IdUnico":"20000" }]
But de combogrid not display the selected row.
Regards
|
|
|
14
|
General Category / EasyUI for jQuery / how to get the value of other columns in a combogrid ?
|
on: September 08, 2015, 11:00:00 AM
|
I have this combogrid:
$('#cbgridSucursal').combogrid({ panelWidth: 500, panelHeight:250, required:true, singleSelect:true, missingMessage: 'Debe seleccionar una Sucursal.', idField: 'Codigo', textField: 'DescSuc', url: 'Ajax/get_Sucursales.asp?Nom=N', method: 'post', columns: [[ {field:'Codigo',title:'Numero',width:40, align:'right'}, {field:'DescSuc',title:'Nombre',width:120}, {field:'SucServCodigo',title:'SucServCodigo',width:120}, {field:'SucServDesc',title:'Servicio',width:150} ]], fitColumns: true, onSelect: function(rec){ var g = $('#cbgridSucursal').combogrid('grid'); // get datagrid object var r = g.datagrid('getSelected'); // get the selected row
selecting any combogrid row , always SucServCodigo is the first row of the combogrid
alert('Ajax/get_Sucursales.asp?SucCod='+r.Codigo+'&SucServCod='+r.SucServCodigo); Can I get the value of other columns in a combogrid ? $.ajax({ type: 'GET', url: 'Ajax/get_Sucursales.asp?SucCod='+r.Codigo+'&SucServCod='+r.SucServCodigo, contentType :'charset=ISO-8859-1', success: function (result,textStatus, jqXHR) { var DatSucInc = eval(result); }, error: function (req, status, error) { alert("ATENCION: Se produjo un error al buscar los datos de la Sucursal."); } }); } }); var grid = $('#cbgridSucursal').combogrid('grid'); grid.datagrid('enableFilter');
|
|
|
|