I'm using slickGrid and I'm having a problem with the row selection model.
I have a page with 3 grids - with values returned from 3 different queries.
When I click on a row in 2 of the sections, the row highlights fine - however, in one of the sections when I click a row then the first column isn't highlighted.
I played around by adding additional columns and found that in all 3 sections it doesn't highlight some columns.
I can't find how to solve this, nor do I know how to even make a work around - e.g. hightlight the row myself.
Has anyone come across this or can tell me how to highlight a row manually please?
Cheers.
You could add the following to your css file:
.slick-cell.selected {
background-color: #FFFFCC;
}
Related
I am trying to achieve what the "Select all instances" option does upon right clicking a Heading style. Recording a macro while clicking the button returns nothing.
The problem I am trying to solve is that when I paste a document into another one, the numbering of the headings do not update, even though the style is the same. This is fixed when I manually select the heading and click on its style again.
I have found this code:
docSource.GetCrossReferenceItems(wdRefTypeHeading)
But it only gives a string list of what each header contains, therefore I would have to do additional loops to find these in the document and reapply their styles.
Is there any other way to select or loop through the headings of each style in the document to update their numberings?
Is there perhaps another approach to solve the initial problem of the numberings not updating in the first place?
I'm trying to copy a row, columns A-J, representing a person and associated info, when column J is filled. I'd fill it with either w, x, y or z based on the reason people are away, and I'd like the row (A-J) copied to another sheet as soon as J is filled.
Here's a screenshot with both Excel documents. Please ignore the "Reason" column in the Pers sheet - I know it could be used, but my production one doesn't have this column, and will not. I just used it to illustrate for you guys.
That other sheet (Main) has headers, as you can see, for each reason why people would be away. This one would permanently be displayed on a big-screen TV. So, what I'm trying to do is :
Copy the rows to Main as soon as the "Departed?" row is filled in Pers;
Make sure those rows go into the proper category, in the first blank row;
Ensure each category remains collapsible.
You can see I've tried using the If function (syntax in screenshot). That worked OK, but :
Left blanks;
Biggest one : only worked row-for-row! (Also the cause of reason #1, I suppose...) Past row 11, nothing. Not too sure what to do about that...?
Hope this is somewhat clear? =) Let me know if you have any questions - thanks for your help!
I have a simple dropdown list named DD8. It uses 50 rows as control, the problem is that for now only 45 rows are used. That means that in the dropdown list there are 5 empty rows. The problem is that if someone select one empty row, or don't select anything (default is empty) the fallowing code will show error :
With Worksheets(1)
NameProf = .DropDowns("DD8").List _
(.DropDowns("DD8").ListIndex)
End With
I tried things like if .DropDowns("DD8").List (.DropDowns("DD8").ListIndex) != "" but ofc, it shows error. I searched how to select only used rows with the DropDown list of the development tab but it doesn't seem to be possible.
I have to select 50 rows because new customers can be added.
Do you know how it can be achieved ?
If new customers can be added, then I imagine, and hope for you, that it goes above 50.... so it's not just an issue of having 5 blanks for now to not be an option, but also allowing customers 50-2,483 also be on there when they come along. ---- Without more details on your code, I believe this suggestion should help 'guide' you but not immediately solve your issue.
Essentially, whenever you call to have your dropdown populated, you want some code to find the last row of data in the customers column, and then assign your dropdown to populate with the starting row of your customers to the lastrow. This way no matter how many customers you have 2, 48, 189... they will show in your dropdown without that issue occurring. A simple google search will yield how to find the last row in excel.
Sorry I couldn't just bust out the code to make it work for you right this second, but I think this should be a good starting point for you.
Problem: DataTables 1.10.4: I need to reduce the width of some of the column filter input boxes in my table.
I am using jquery.dataTables.css and jquery.dataTables.js as provided with the exception of adding some colour and border styling to the css file.
My table will eventually have more than 100 rows and there are 15 columns. Here is a link http://www.stockportwalkers.org.uk/development/walking_routes_w_datatables.html
I would like to make the widths of some of the column filter input boxes much narrower. For example the data in one of the columns is a single character. From tests I have done it seems to me that the minimum width of the input box is fixed preventing narrower columns. This means that some of my columns are far too wide for the data and my table is too wide to be easily manageable.
If I remove the filter input boxes at the top of each column the columns resize themselves nicely, but the column filters are essential.
I have seen a lot of posts for similar problems but nothing I have tried has changed the column widths. I have tried defining the columns to fixed widths using css width, js aocolumns, column, columndef. I have set "bAutoWidth": false. Nothing has helped. I have been unable to find where the column filter input box is sized.
I have been struggling with this for a while and would very much appreciate a solution. Please let me know if you need anymore information.
Thank you for your help.
Checkout this column search plugin for DataTables that you can include which may help your formatting issue. You don't have to worry about trying to insert the columns yourself or adding in the keyup event. It is all handled for you. It also works with the responsive tables to hide the search field if the column drops off.
https://github.com/zepernick/Plugins/tree/master/features/columnSearchField
Directions for the plugin can be found here
Here is an example usage of the plugin:
var dt = $("#mytable").DataTable();
//using defaults
new $.fn.dataTable.DtServerColSearch(dt);
//OR
new $.fn.dataTable.DtServerColSearch(dt, {
placement: "foot",
placeholders: false,
....
});
I'd like to have the value of a cell change if a specific set of grouped cells are hidden or not. Is there a worksheet change action for grouping and ungrouping cells? I can't seem to generate one with Macro Recorder; it doesn't seem to care if cells are hidden or unhidden in a group. Then, I can have a macro change the value of the cell in question - I presume easier than coding the cell itself.
Context:
There are 5 lines, one being a total, and the other 4 the accounts making up the total. There is a merged vertical cell across all 5 rows with the title. I like to hide the 4 accounts, but when I do, the merged title cell only diplays enough to fit into one line, so I'd like it to then revert to an abbreviation (which I would provide).
It's a bit esoteric and pointless, but any thoughts?
Solved. This post gives the essentials of what I needed:
http://www.ozgrid.com/forum/showthread.php?t=87457