Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - devspec

Pages: [1]
1
Help for ParamQuery Pro / Strange view of pagination (5.2)
« on: September 01, 2018, 11:42:56 pm »
Pagination looks like:

Span with select is empty:

Page model is:

I use bootstrap and this hack:
Code: [Select]
$.fn.bootstrapBtn = $.fn.button.noConflict();What I'm doing wrong?

2
Suggest new features / Re: Avoid blinking
« on: March 22, 2018, 02:41:37 pm »
Hi! Is this implemented in any way?

3
Suggest new features / Re: Avoid blinking
« on: November 27, 2017, 07:01:35 pm »
Yes, I thought about that.
But it's very hard work - to consider all the possible moments like - adding one task, adding several tasks, deleting task, deleting several tasks etc.
Maybe you, as owner of the grid, can develop a method like refreshPartially or refreshChanges that will refresh only changed data in grid in view of pagination and so on?
I think, it will be very useful method for everyone.

4
Suggest new features / Re: Avoid blinking
« on: November 26, 2017, 04:29:48 pm »
Ok, I elaborate SAAS-service with behaviour like:
1. User adds to queue new long-running task with progress reporting. It looks like: http://joxi.ru/BA0pZydSJjDBbA
2. The service in background do this task and reports progress to user. Every 5 second data from server reloads and change appears in right places - in columns with progress, summ etc.
3. User can check checkbox near this task or other tasks and delete it or export it's results during any task execution
Now it works with Knockout table, but it's not very comfortable for me as a developer to work with it.
So, the main question is: how to refresh pqgrid according to only changed data?
As an example:
- if user add one task - only first row appears and the last row goes to second page (if pagination).
- if data in JSON from server was changed only in "progress" field - only a "progress" cell of according row need to be changed.
I think, it's very useful option - it's redundantly to refresh all the table if only one cell really needs to be refreshed.

5
Suggest new features / Re: Avoid blinking
« on: November 24, 2017, 08:47:19 pm »
Oh, I found another one important problem: every 5 seconds (when I refresh grid) all checked checboxes becames unchecked.
Video is here

6
Suggest new features / Avoid blinking
« on: November 24, 2017, 07:07:03 pm »
As you suggested me here, I reload data and refresh the whole grid:

Code: [Select]
setInterval(function () { ReloadList() }, 5000);

function ReloadList() {
  $.getJSON("/api/Parse/TasksList?type=0&page=&api_key=", function (data) {
    $grid.pqGrid('option', 'dataModel.data', data.data);
    $grid.pqGrid('refreshView');
  });
}

But every 5 seconds selected cell is blinking - I recorded the video, you can see this behaviour here on youtube.
And if a cell selected on top of a table and I scrolled a page down, every 5 seconds page scrolls by her own to selected cell position. I also recorded it and you can see it here.

So, the questions are:
1. How to avoid blinking of selected cell during grid refresh?
2. How to avoid upscroll of page to selected cell during grid refresh?

Thank you

7
Help for ParamQuery Pro / Re: Progress bar and refresh cells
« on: November 10, 2017, 10:13:23 pm »
Can you please provide me a sample of integration of jqui progress bar to pqgrid cell?

8
Help for ParamQuery Pro / Progress bar and refresh cells
« on: November 10, 2017, 08:24:57 pm »
Hi guys!

Didn't found the answer not here nor in google, so...

I have a list of json objects like

Code: [Select]
[
{
    status : 0,
    progress: 75,
    count: 1432
},
{
    status : 1,
    progress: 100,
    count: 435
},
...
]

I reload it with ajax from my server every 5 seconds. List can be more than 10000 records.

How to:
1. Add a simple progress bar to cell that will be changed after every reload of json?
2. How to refresh only the cells with "count" and "progress" binding and only with progress value < 100? I don't need to refresh rows/cells than already done (progress=100%)



Thank you for answers!

Pages: [1]