jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: Fire closewindow event Fire closewindow event #7042

    WaveTeam
    Member

    Hi,

    I am trying to get exportLayout after deleting window but yes.. I did not get updated json (updated with removing deleted window).

    thanks

    in reply to: Fire closewindow event Fire closewindow event #7010

    WaveTeam
    Member

    Hi Peter,

    Thank you for your quick response. It is working now.

    in reply to: Fire closewindow event Fire closewindow event #6989

    WaveTeam
    Member

    Hi Peter,

    I have tested jquery ‘bind’ method with click event for one div – it working fine with my current jquery library, so it wont be issue. Also I am using same ids window1, window2…. to my window. but it did not work, I did not get any alert for above code. Please advice.

    Thank you.

    in reply to: Fire closewindow event Fire closewindow event #6981

    WaveTeam
    Member

    Hi,

    How can I fix close window event, I have to close/remove window when user click on close icon (X). I have to fire some code that will update and remove closed window records from database, so next time when user refresh page he cannot see closed window. I tried both way as above. It did not work for below code as well.


    $("#window1, #window2, #window3, #window4").bind('close', function (event) { alert('closed') });

    Please advice.

    -Thank you.

    in reply to: Get position of dragged window Get position of dragged window #6975

    WaveTeam
    Member

    I have done it. Thank you Peter for your quick response and support.

    Thank you.

    in reply to: Get position of dragged window Get position of dragged window #6958

    WaveTeam
    Member

    Hi Peter,

    It almost done, thank you for your support. I just need to set window as per user existing settings. How can I set window order (sequence) as per existing orders. I dont have position (left, top), I have order/sequence of each window

    Thank you.

    in reply to: Get position of dragged window Get position of dragged window #6944

    WaveTeam
    Member

    Thank you Peter,

    It seems.. it will work for me. I will check it.

    Thanks again.

    in reply to: Get position of dragged window Get position of dragged window #6941

    WaveTeam
    Member

    Hi Peter,

    Thank you for your reply. actually I need to insert order of each updated window into database. I wont need position (offset) of each window.
    e.g. default:
    window(1) – 1 (order)
    window(2) – 2
    window(3) – 3
    window(4) – 4

    After dragged:
    window(3) – 1 (order)
    window(2) – 2
    window(4) – 3
    window(1) – 4

    I need all window’ order, so in above case it will return –
    window3, position/order = 1.
    window2, position/order = 2.
    window4, position/order = 3.
    window1, position/order = 4.

    Thank you

    in reply to: Get position of dragged window Get position of dragged window #6932

    WaveTeam
    Member

    Hi,

    Sorry for last code, here are the proper code.

    $('#docking').jqxDocking({ theme: 'classic', orientation: 'horizontal', width: 935, mode: 'default' });
    $('#docking').jqxDocking({orientation: 'horizontal', mode: 'docked' });
    $('#docking').jqxDocking('disableWindowResize', 'window0');
    $('#docking').jqxDocking('disableWindowResize', 'window1');
    $('#docking').jqxDocking('disableWindowResize', 'window2');
    $('#docking').jqxDocking('disableWindowResize', 'window3');

    function displayWindowsPositions(window) {
    var parent = $('#' + window).parent(),
    windows = parent.children('.jqx-window'),
    current;
    $('#data').empty();

    for (var position = 0; position < windows.length; position += 1) {
    current = windows[position];

    $('#data').append(
    '

    ' + $(current).find('.jqx-window-header').text() + '

    '
    );
    if ($(window).attr('id') === window) {
    return position;
    }
    }
    }
    $('#docking').bind('dragEnd', function (event) {
    displayWindowsPositions(event.args.window);
    });
    });

    <div id="jqxWidget">
    <div id="docking">
    <div style="float: left; width:460px;">
    <div id="window0" style="height: 194px;">
    <div class="drag-panal-header">Cash Summary</div>
    <div id="box1"></div>
    </div>
    <div id="window1" style="height: 194px;">
    <div class="drag-panal-header" >Cash Receviables</div>
    <div id="box2"></div>
    </div>
    </div>
    <div style="width:460px;float: left;">
    <div id="window2" style="height: 194px;">
    <div class="drag-panal-header">Cash Payables</div>
    <div id="box3"></div>
    </div>
    <div id="window3" style="height:194px;">
    <div class="drag-panal-header">Profit and Loss</div>
    <div id="box4"></div>
    </div>
    </div>
    </div>
    </div>
    <div id="data" style="border-width: 0px; float: left; margin-left: 30px;"></div>

    In ‘#data div’ I did not get all windows location/order. Here I added only 4 window but in my case it would be max 9 or less window.

    Thanks again.


    WaveTeam
    Member

    Hi Peter,

    We fixed it. Thank you for your quick response always and support, 5 star rating to your response and JQwidget API.

    Regards,
    WaveTeam.


    WaveTeam
    Member

    Hi Peter,

    Thank you. I almost done now – one error popup – I did checkall/uncheckall functionality done successfully. But checkall are checked only current screen (current grid view records without moving scroller) when I move vertical scroll down it seem other checkboxes are not checked with checkall functionality. I tried to find solution, I seen I cannot get total records count by using,
    var rowscount = $(“#jqxgrid”).jqxGrid(‘getdatainformation’).rowscount;

    I have more than 200+ records and it showing me only count 54 or less every time. Also I got js error in consule
    TypeError: $(“.summary_” + i).attr(“id”) is undefined

    virtually there are all id comes dynamically and they present. it seems issue occurred with items which are comes next to item when we move down vertical scroll . as we get 54 total count of items – so loop executed for 54 rows – but actually there are only 15 records active on current grid. error occurred with items that are next to last item ( = after scroller movedown)

    Please help how can i resolve this error.

    Thanks again.


    WaveTeam
    Member

    Please let me know if we can get checkbox value or at least I need to get index row values. or please help me to custom html checkboxes remain checked even I move vertical scroll bar of grid.


    WaveTeam
    Member

    Hi Peter,

    Thank you. It seem, everything going good now, one more issue addressed in last message, I used ‘getcellvalue’ event and i got “true /false” vaule only, but I need actual value that I assigned during array creation. In my case I assigned checkbox value as –
    $summaryData[$i][‘available’] = $accSum[‘currentId’];

    I need this id should I get in code – so I do some calculation with that value.

    Thanks again for your help.


    WaveTeam
    Member

    Thanks peter,

    Its working, Button click did not uncheck all checkboxes, it is default checked all when click on button, but vise varsa is not worked. how can I get all checkbox values in button click code which are checked, I need all checkbox values – to do total calculation.

    Regards,
    Waveteam.


    WaveTeam
    Member

    Can you possible to give me an example source code for above, I know it may be hard to you, but it would be great help to me if you send code example for same.. I have created my checkbox array in my php page and in my phtml page i have used jqwidget grid code. I am using custom html checkbox – then checkall/uncheckall functionality.

    regards,
    WaveTeam

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