jQWidgets Forums
Forum Replies Created
-
Author
-
June 12, 2020 at 10:30 am in reply to: jqxgrid problem with createeditor jqxgrid problem with createeditor #112211
Hi Hristo,
I think that now works perfectly.
I did two modifications.
OnhandleKeys
function andiniteditor
function, I added the conditionelse
because when you edit the cell and you go to another and press enter key, the value will be the last key or last value of the last cell edited.Thanks.
June 9, 2020 at 9:27 am in reply to: jqxgrid problem with createeditor jqxgrid problem with createeditor #112171Hi Hristo,
You can see the image to reproduce the problem.
On this case, I need press two times the number on keyboard to edit the cell.However, on cell of Unit Price works perfectly because don’t have
createeditor
Thanks.
June 8, 2020 at 4:22 pm in reply to: jqxgrid problem with createeditor jqxgrid problem with createeditor #112160Hi Hristo,
The problem persist in your example.
If you start to write on cell of quantity, before thejqxinput
was visible, the first number that you write are not put into thejqxinput
. Only will start to write when you type two times the number.
I know that i can use decimals with the propertydecimalDigits
.
If I use for example 2 decimals onjqxinput
, when is executecellvaluechanged
orcellendedit
, independently of if I change or not the original value, the value that will put, only will be with two decimals.
I edited your exemple. On cell of total, if you enter with enter key and finish one more time with enter, you will edit the cell, but really you didn’t edit the number, only you executed to see thejqxinput
Thanks.June 5, 2020 at 1:38 pm in reply to: jqxgrid problem with createeditor jqxgrid problem with createeditor #112146Hi Hristo,
You can see the example
When i havecolumntype: "numberinput"
and I opend the cell to edit, the number is not the same.
I will have this types of number with 10 decimals to edit.
I cant usecellsformat: "D2"
because i will lost all number and when is executecellvaluechanged
orcellendedit
, the value will have only 2 decimals.
ThanksHi Hristo,
Is it possible define min-width of column onjqxgrid
?Can i reset the width for the first width (default or first time that was defined)?
For example:
Myjqxgrid
have about 20 columns and a few cells are editable and some cells are little.
So, I did:
1) Save the width of cell withgetcolumnproperty
when it was runcellbeginedit
2) Set the width of cell withsetcolumnproperty
with a fixed width
3) Set the width of cell withsetcolumnproperty
with a width saved on 1)
Sometime this dont work perfectly and not execute the 3) step and the width was set forever …
Can I reset the all widths ofjqxgrid
or do this more simplified?Hi Peter,
I don’t tried the validator and form widget because my input are into the jqxgrid to edit any cell with values.
I would like have something like this on the editor of jqxgridrule: function (value) { // rule or validate or validation function into jqxinput var d1 = 10; // can be any value. Its varible by row var d2 = 5; // can be any value. Its varible by row var disc = 0; if(d1 > 0 && d2 >0){ var tmp = (value) * (d1 / 100); disc = tmp + (((value) - tmp) * (d2 / 100)); }else if(d1 > 0){ disc = value * (d1 / 100); }else if(d2 > 0){ disc = value * (d2 / 100); } var unit_price = (value) - (desc_total); if (last_cost > unit_price){ // last_cost is another value of row and its variable return false; // cant edit the value of jqxinput and cant execute cellendedit }else{ return true; } }
Thanks
May 21, 2020 at 4:52 pm in reply to: jqxgrid with property autorowheight and cellsrenderer jqxgrid with property autorowheight and cellsrenderer #112040Hi Hristo,
I know that I can use thesetcellvalue
on the cells that I need.
I simplified the exemple to see that the margin-top is not calculate when the cell have the functioncellsrenderer
In my grid I will have morecellsrenderer
, for example, to put buttons and/or icons and depends of more options to show this buttons.
Thanks for create a work.
I will wait for news.May 19, 2020 at 3:36 pm in reply to: jqxgrid with property autorowheight and cellsrenderer jqxgrid with property autorowheight and cellsrenderer #112021Hi Hristo,
I think that usebeforeLoadComplete
isn’t solution for this purpose.
My jqxGrid have the cells quantity and price editables. When one of cell is edit, automaticly will be calculate the total.
For this reason, I think that the best solution is usecellsrenderer
.
Thanks.May 18, 2020 at 8:21 am in reply to: jqxgrid with property autorowheight and cellsrenderer jqxgrid with property autorowheight and cellsrenderer #111992Hi Hristo,
My grid have a few cell with calculations.
I will have the columns, among others, Quantity, Price, Total…
Total = Quantity * Price
Some cells, I need to calculate the value and only I can set the value withcellsrenderer
Thanks.May 14, 2020 at 4:14 pm in reply to: jqxgrid with property autorowheight and cellsrenderer jqxgrid with property autorowheight and cellsrenderer #111977 -
AuthorPosts