jQWidgets Forums
Forum Replies Created
-
Author
-
Peter,
I’m running a test with jqxGrid and put a test example on the link below you can check that some selection boxes do not work.
REMOVED LINK
Appreciate your help.
That’s the problem, there is a way to set all checkboxes values to false?
Yes, this is what happens. I’ll check your tip!!!
October 25, 2016 at 11:58 am in reply to: Grid checkbox checked columns Grid checkbox checked columns #88473Christopher,
Thanks for support, try the way you suggest.
October 24, 2016 at 6:20 pm in reply to: Grid checkbox checked columns Grid checkbox checked columns #88444Christopher,
I am using matrizbidimensional to mount the grid, and have multiple checkboxes per line, and can store the row, column, and the state in this array:
bateriaperg.push({‘linha’:xlinha, ‘coluna’:xcolumn, ‘estado’:true, ‘escolha’:arraycolumn[xcolumn]});I need to reassemble the grid with true checkboxes based on the array ‘bateriaperg’, how do I to set based on this code that is working for me:
Function inicializador() Dim data1, source1, dataAdapter1 arraylinhas =["Honda", "Toyota", "Fiat", "VW", "Chevrolett", "Kia", "Hyunday", "Peugeot"]; arraycolumn =["Items","Branco","Preto","Prata","Cinza","Marrom","Vermelho"]; data1 = generatedata(arraylinhas) source1 = {localdata: data1, datatype: "array"}; dataAdapter1 = new $.jqx.dataAdapter(source1); NSB.jqxSettings["Grid5"].source = dataAdapter1; cln=[] For i=0 To UBound(arraycolumn) If i=0 Then cln[i]={ text: arraycolumn[i], editable: False, datafield: arraycolumn[i], width: 200 } Else cln[i]={ text: arraycolumn[i], datafield: arraycolumn[i], type: "bool", columntype: "checkbox", width: 200 } End If Next NSB.jqxSettings["Grid5"].columns = cln $("#Grid5").jqxGrid(NSB.jqxSettings["Grid5"]); End Function function generatedata(myarrayli) { var data = new Array(); var linharray=myarrayli for (var wl = 0; wl < linharray.length; wl++) { var row = {}; row["Items"] = linharray[wl]; data[wl] = row; } return data; }
October 21, 2016 at 9:12 pm in reply to: Grid checkbox checked columns Grid checkbox checked columns #88400Hello,
I successfully managed to obtain the values of the checked columns on each line.
I have checked these states in an array, I’m just not able to set the same rows and columns based on this array, which the command line to set the column of a row?October 14, 2016 at 7:45 pm in reply to: Grid checkbox checked columns Grid checkbox checked columns #88216Christopher,
Thank you by the way, I’ll try this way.
Another checkbox column which value is shown for me? False or true?August 18, 2014 at 6:47 pm in reply to: Put a variable to enter name of the header Put a variable to enter name of the header #58489Hello,
I saw an example that modifies the header.
I’m trying this way, but to no avail, where I am going wrong?
This property would change Q1_1 to Questão1, correct?$ (‘# GridExport’). JqxGrid (‘setcolumnproperty’, ‘firstname’, ‘Q1_1’, ‘Questão1’)
August 16, 2014 at 2:23 am in reply to: Display Checkboxes in the Grid Display Checkboxes in the Grid #58442I believe you may have a field on = 1, off = 0 and when you click it checks in which this and reverses, you can control it with a figure check and uncheck in one of the other columns, I think that might work.
August 15, 2014 at 9:41 pm in reply to: Put a variable to enter name of the header Put a variable to enter name of the header #58439Peter,
I tried this way and it did not work, where am I going wrong?
$ (“# GridExport”). JqxGrid (“setcolumnproperty”, “firstname”, “Q1_1”, “Questão1”)
August 15, 2014 at 9:31 pm in reply to: Put a variable to enter name of the header Put a variable to enter name of the header #58438Peter,
The example below modifies the width, as would be the following model by modifying the text name of the header? How do I tell which column header you want to modify?
$ (“# Objetives”) jqxGrid (‘setcolumnproperty’, ‘mValor’, ‘width’, 10).;
August 15, 2014 at 9:13 pm in reply to: Put a variable to enter name of the header Put a variable to enter name of the header #58437Following your instruction, you can adjust this line to the example below to see how I would change the text in the column?
�
$ (‘# grid’) jqxGrid (‘setcolumnproperty’, ‘firstname’, ‘renderer’, headercheckboxRenderer).;exemp1: data = {HERE NOT ACCEPT VARIABLE: pregistroa [“col_001”]}
exemp2: data = {Q1_1: pregistroa [“col_001”]} *** HERE IS OK, BUT NEED TO INFORM THE NAME OF THE HEADER WITH A VARIABLE AS ABOVE exemp1
value = $ (“# GridExport”). jqxGrid (“addrow”, null, data)
Thank you!
August 15, 2014 at 8:52 pm in reply to: Put a variable to enter name of the header Put a variable to enter name of the header #58433But in this case could not separate the columns, is it? Then there is the possibility of informing the text of a column property through a variable?
Hello,
I found what I needed, thank you!
$ (“# ListBox1”) jqxListBox (“UpdateItem”, item3, item2).;
April 9, 2014 at 7:07 pm in reply to: Text options larger than the screen Listbox Text options larger than the screen Listbox #52809Could you show a snippet of example code?
Thanks!
-
AuthorPosts