jqgrid click select all, but not all of them selected - jqgrid-php

I use jqgrid with multiple selection. When i clicked select all for a multiple rows data, not all of them automatically checked. What was wrong with this?
If my grid has only one row, select all works.

The root reasons is that the there are duplicated row id in json data. Following example show that there exists the duplicated row id for 2 and 3. One the first of the duplicated row id will be selected when select all.
{"page":"1","total":"1","records":"10","rows":[
{"id":"10","cell":["firstaceha","Evebdfg","5","10","2000-01-30","12:30","notesss"]},{"id":"9","cell":["firstaceh","Evebdfg","7","9","2000-01-30","12:30","notesss"]},
{"id":"2","cell":["firsta","Eve","1","2","2000-01-30","12:30","notesss"]},{"id":"2","cell":["firsta","Eve","9","2","2000-01-30","12:31","notesss"]},
{"id":"3","cell":["firsta","Eveb","6","3","2000-01-30","12:30a","notesss"]},{"id":"2","cell":["firsta","Eve","8","2","2000-01-30","12:30ab","notesss"]},
{"id":"2","cell":["firsta","Eve","2","2","2000-01-30","12:30a","notesss"]},{"id":"3","cell":["firsta","Eveb","10","3","2000-01-30","12:30aa","notesss"]},
{"id":"3","cell":["firsta","Eveb","4","3","2000-01-30","12:30","notesss"]},{"id":"1","cell":["first","Eve","3","1","2000-01-30","12:30","notesss"]}]}

Related

Disable tab click on some editors in table

Would it be possible to disable "Tab" events on specific columns.
My current table has 4 input, 1 of which is a dropdown for status and the rest are text fields.
The scenario is that the users are inputting data on the text fields but they don't want the dropdown to open up on the next row and just proceed on the next text field.
If the values are static, you could use a custom editor to do your work.
Working Demo: https://codesandbox.io/s/disable-tab-some-editors-ud5vit?file=/src/index.js
In the demo, I used the column "Status" as a select field with three possible values. Tab won't make dropdown appear by default.
Hope it helps!

Check for duplicate value among 10 combox boxes when summit excel vba

I have 10 comboboxes on my userform that share 10 same selections, and I would like to check for duplicated value before summit.
As far as I can imagine, there are two ways to get the result, the first one is to check for same value among these ten boxes when summit by using message box OR to hide the selections from other comboboxes once the option is being selected by any one of the boxes.
Since I am new to vba, I am having a hard to grasp this idea in to code, please help.Userform with 10 comboboxes that share the same selections
I think your second idea is the best, because it prevents the unwanted behavior instead of correcting it.
You can either build a responsive sql which filters out the already selected values, or you could create 10 queries, one for each combobox.
Start by creating a table with values you want to have for your selection.
Make a query like this: (Combobox1) SELECT value FROM Table;
This is the input query for your first combobox.
Create a second query (Combobox2) based on the first query. SELECT value FROM Query1 WHERE value <> Forms!formname!Combobox1
This will be the input query for your second combobox.
Now create a third query based on the second like: SELECT value FROM Query2 WHERE value <> Forms!formname!Combobox2; Which will be the input for your third combobox.
Keep on doing this untill you have a query for each combobox.

Kendo UI For Angular2 - Grid Row Select

I have a working <kendo-grid> component with 10 visible rows over a data set of 34 rows (approx 4 pages). Sorting and selecting is working as expected.
<kendo-grid [data]="gridView"
[pageSize]="pageSize"
[skip]="skip"
[pageable]="true"
[height]="300"
(pageChange)="pageChange($event)"
[sortable]="{ mode: 'single' }"
[sort]="sort"
[selectable]="true"
(sortChange)="sortChange($event)"
(selectionChange)="selectionChange($event)">
Say I select second row. Then I sort the table and the selection stays on row two but of course it's highlighting a different record. It's always selecting the second row on the grid, which of course, it's what I want.
How do I clear the selected row in my (sortChange) event so at least the user isn't presented with a different selection that they one they already chose. I am open to some kind of data binding attribute for selected row that I could set to null or some property on gridView or even poking around inside #ViewChild .
Any help would be appreciated.
Normal Sort
Ascending Sort
Descending Sort
I had a similar question here: Select grid row item from code
Basically, you also need to select the grid row item from code without user interaction and this is currently not supported in the current beta build of the Kendo UI Angular2 controls.
In my application, I resort to triggering a click event on the row I want to select. :/
I do this in a case where I have 'up' and 'down' buttons to rearrange the grid and want to maintain my selection when I switch items.
var grid = document.getElementById('myGrid');
var rows = grid.getElementsByTagName('tr');
rows[idx].click(); // add one to the desired row index to skip the header row
Here's a (sloppy, minimal) Plunkr of this scenario: http://plnkr.co/edit/09dlqdl0Xchoy0e5zKRq

Excel pivot table search filter with and / or

I am trying to filter a field in a pivot table so that it only shows some values.
I have a field which is product code and I want to only show the product codes that are H01, P07, F04, L43, ... and the list continues. For the moment, I have to click the little arrow next to the field, do a search on the code and then click on the checkbox add current filter to selection and hit ok. I have to do this 20 times for the 20 different product codes.
Is there a way to enter in the search box immediately H01, P07, F04, L43, ... just once and then hit ok and I ll see all the product codes immediately?
Thanks,
John.
You can loop through pivot items and select the ones that match your criteria using VBA as suggested here:
Looping through report filters to change visibility doesn't work
The only issue I've had with this sort of approach is that you cannot deselect the only selected item, so if you are going to be deselecting then you should make sure to select particular items as well.

Dynamic Filters in Excel

I'm using Office 2013, and working on a worksheet in Excel.
My question is, is there a way to create a dynamic filter in Excel?
To explain in more detail, I have a dynamic worksheet, where upon opening the user will get a few drop-down options. After the user has selected one option from each of the drop-downs, the worksheet will display a table of data based on the user's inputs. The user can change their selections from the drop-downs after the table has been displayed, and can also clear their selections. If they clear their selection, the table will disappear.
Now, the first column in the result Table will contain Text values, but can also contain blanks. These values or blanks are all decided based on the user's selections in the previously mentioned drop-downs, which are displayed permanently to the left of the table. I want to add a filter to this first column of the result table (and to the rest of the table with it) such that only the non blank cells are displayed in the table every time the drop-downs are changed.
As I understand your need correct, I can give you this solution:
For getting a better result make your range to Table.
Select Power View from Insert items;
A sheet Power View 1 will added to your workbook;
From right pane select Table1 and its fields;
From Filter pane select as you want for filtering.

Resources