jQWidgets Forums
Forum Replies Created
-
Author
-
roundValue is just a method
var roundValue=function(num){
return (num.toString().indexOf(“.”) !== -1) ? num.toFixed(2) : num;
};if we pass 10.23232 ,it returns 10.23
if we pass 10, it returns 10Thanks
Ok..can you please tell me how can i set a value for a edited cell.
After i perform an inline editing i need to round that value and set into that cell.
here is my code.
$(“#itemDetailsGrid”).on(‘cellendedit’, function (event) {
var value = args.value;
$(“#itemDetailsGrid”).jqxGrid(‘setcellvalue’, args.rowindex, “quantity”, roundValue(value));//roundValue is a method which return a number.
});
But it is not working..
ThanksThat is ok..but my need is if the quantity has no decimal part,Then it wll be displayed as a non decimal number..
Can i possible with this?
Thanks,OK thank you Peter Stoev..
Now at grid loading time it is ok..but after i perform a grid inline edit, it does not work.
I mean if edited 10 as 10.232212,then it returns 10.232212..i need to display 10.23.
Thanks
Please any one tell me..did i do anythindg wrong in these statements?
In my side..
2ed scenario does not work for me.. decimal (1.235, 12.258) .Other casues are fine.
it does not return anything such as true or false.
Here is my other codes related to this column.
{ name: 'qty', type: 'number' }, { text: 'Qtuanty', datafield: 'qty', width: 90, minwidth: 90,sortable:false, validation: function (cell, value) { if ((value / 1) != (value / 1)) { return { result: false, message: "Invalid Quantity" }; }; return true; } },
please tell me what is worng in these statements.
Thanks.
Sorry Dimitar..
This also does not work for me..
Thank you…
Can anyone please help me?
Thank you Dimitar
But it fails all my requirements.
It doesn’t perform any of validations those i mensioned in my question.
Thanks,
Any one please tell me how can i possible this?
Ok Thaks ,Peter Stoev
Please try with this rage of dates, from 10/8/2013 – 10/10/2013.
You should get more than one reords with Ship Date by 10/10/2013
But If u try with this this rage of dates, from 10/10/2013 – 10/10/2013 (double click that particular date)
Then you will get 0 records.This is what i meant.
Thanks.
Thanks, Peter Stoev
Yes iam sure about the same that my grid has such dates.And your demo is same effect.
Double-clicking on a Date will not filter by that Date in jqwidgets’s demo page.September 2, 2013 at 1:41 pm in reply to: Json tree structure with uuid Json tree structure with uuid #28167Can anyone please tell me whether it is possible?
OK thanks,I fixed it..
I have one more doubt..
I am creating a dynamic tree in JSON, how I can insert and remove items (parent nodes and child nodes). I am using the the same structure of the data object mentioned in examples.
Thanks’
-
AuthorPosts