When using jqWidgets Grid! Everything works fine except for putting the price values in order.
Example 1 <1.2 <10 <12 <2 <23 <3 instead of
1 <1.2 <2 <3 <10 <12 <23
He is understanding the numbers as letters and not values does anyone know how to make the Grid work properly?
Original:
Ao utilizar o jqWidgets Grid! Tudo funciona perfeitamento exceto ao colocar em ordem os valores de preço.
Exemplo 1<1.2<10<12<2<23<3 ao invés de
1<1.2<2<3<10<12<23
Ele está entendendo os numeros como letras e não valores alguém sabe como fazer o Grid trabalhar corretamente?
Now yes! It works perfectly!
I changed row [“value”] = fields (3) by row [“value”] = Number (fields (3))
For x = 1 To UBound (record)
fields = Split (record (x), "@@")
var row = {};
row ["code"] = fields (1)
row ["description"] = fields (2)
row ["value"] = Number (fields (3))
y = x-1
data [y] = row;
Next
Agora sim! Está funcionado perfeitamente!
troquei row[“valor”]=campos(3) por row[“valor”]=Number(campos(3))
For x=1 To UBound(registro)
campos=Split(registro(x),"@@")
var row = {};
row["codigo"]=campos(1)
row["descricao"]=campos(2)
row["valor"]=Number(campos(3))
y=x-1
data[y]=row;
Next
Grid for Language Portuguese Brasil ns Basic in Basic
Sub Main()
JavaScript
var localizationobj = {};
localizationobj.currencysymbol = "R$";
localizationobj.currencysymbolposition = "before";
localizationobj.decimalseparator = ",";
localizationobj.thousandsseparator = ".";
localizationobj.percentsymbol = "%";
localizationobj.pagergotopagestring = “Registro:”;
localizationobj.pagershowrowsstring = “Exibir Página:”;
localizationobj.pagerrangestring = " de “;
localizationobj.pagernextbuttonstring = “Próxima”;
localizationobj.pagerpreviousbuttonstring = “Anterior”;
localizationobj.sortascendingstring = “Ordem Crescente”;
localizationobj.sortdescendingstring = “Ordem Descedente”;
localizationobj.sortremovestring = “Remover Ordem”;
localizationobj.emptydatastring = “Sem dados para exibir”;
// apply localization.
$(”#Grid1").jqxGrid(‘localizestrings’, localizationobj);
End JavaScript
end sub