jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Round grid column Round grid column #45897

    plgeda
    Participant

    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 10

    Thanks

    in reply to: Round grid column Round grid column #45892

    plgeda
    Participant

    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..
    Thanks

    in reply to: Round grid column Round grid column #45888

    plgeda
    Participant

    That 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,

    in reply to: Round grid column Round grid column #45882

    plgeda
    Participant

    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

    in reply to: Validation on grid. Validation on grid. #32220

    plgeda
    Participant

    Please any one tell me..did i do anythindg wrong in these statements?

    in reply to: Validation on grid. Validation on grid. #32143

    plgeda
    Participant

    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.

    in reply to: Validation on grid. Validation on grid. #31907

    plgeda
    Participant

    Sorry Dimitar..

    This also does not work for me..

    Thank you…

    in reply to: Validation on grid. Validation on grid. #31856

    plgeda
    Participant

    Can anyone please help me?

    in reply to: Validation on grid. Validation on grid. #31850

    plgeda
    Participant

    Thank you Dimitar

    But it fails all my requirements.

    It doesn’t perform any of validations those i mensioned in my question.

    Thanks,

    in reply to: Validation on grid. Validation on grid. #31738

    plgeda
    Participant

    Any one please tell me how can i possible this?

    in reply to: Grid Date Filtering Grid Date Filtering #30553

    plgeda
    Participant

    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.

    in reply to: Grid Date Filtering Grid Date Filtering #30549

    plgeda
    Participant

    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.

    in reply to: Json tree structure with uuid Json tree structure with uuid #28167

    plgeda
    Participant

    Can anyone please tell me whether it is possible?

    in reply to: Set value property of li Set value property of li #27690

    plgeda
    Participant

    OK thanks,I fixed it..

    in reply to: Set value property of li Set value property of li #27680

    plgeda
    Participant

    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’

Viewing 15 posts - 1 through 15 (of 16 total)