I have another question regardless PF Extensions. Is it possible for example in one particular column to display custom (generic) column type. For example datePicker, Textarea, DecimalNumber, just Text or DropDown Menu. So for every single row it can be different content in this column. Is this idea possible or not really? Many thanks!
This issue has been raised before and its not so simple with the HandsonTable. Its doable just not simple.
See: https://github.com/primefaces-extensions/primefaces-extensions/issues/136
Related
The textarea-class in JavaFX should give me the option to add rows and columns, but the way I tried didn't work:
TextArea ta = new TextArea();
ta.setPrefRowCount(100);
ta.setPrefColumnCount(100);
I'm searching for columns/rows like in Microsoft Excel, inclusive the gridines.
.setGridLinesVisible(true);
doesn't work for this Type.
For use case similiar to Excel you're actually looking for TableView. Every table cell can contain anything, even another window so it is very flexible.
If you want grid lines on top of TextArea, but want to keep the standard TextArea behavior, you will have to combine the TextArea and TableView in a StackPane.
You will just have to clear the table's background using CSS.
However, matching the row and column sizes with the text will need some additional code.
Apologies for my English.
colums/rows like in Microsoft Excel, inclusive the gridines
TableView as recommended in Michael's answer is likely the right basic solution for.
There are some 3rd party controls you might consider which add some basic spreadsheet like functionality to the base JavaFX TableView control:
SpreadsheetView from the ControlsFX project.
TiwulFX from Panemu.
I would like to have first column in my table editable. That works fine. However table looks normal and only when I click on the editable cell, it looks like input box. I would like to have this look of inputbox as default on every editable column in my table, so user knows right away which cell he is able to modify and which one he cannot. I figured I will have to modify caspian.css, but I couldn't find anything there. Is there easier, programmatic way to do this?
Thanks
You need to set the cellFactory of your column, inside it you can specify what you want by default on your cell by setting is graphics
explanation
and here
I have developed a list in SharePoint. While entering new item in it, like name, if I keep on typing it gets spread over a line making the width of cloumn spread over page. I want to limit the width of site column so as the column's value spreads over multiple lines instead of spreading over one. How can I do this setting?
This is not a setting you can configure in SharePoint. You will need to write some custom code using css and possibly javascript that will set the width of the column. You can make a change like this in SharePoint Designer.
You must use min-width (CSS) in your block.
You have to create custom XSLT for this. There you have loop all the column and need to specify the overflow:auto, hidden,.. CSS property. So it automatically get effect based on your internal name of the field.
So whereever you have the field it automatically get affected. If it for one single view you can use JavaScript to achieve this but this is not right way to do.
The data you are entering can be displayed in many ways. Today in a table format, tomorrow in a dropdown etc. You should distinguish between:
limiting the amount of data that can be entered in a site column (can be done in SharePoint alone, when you design your list)
limiting the wrapping of the words in a table cell today or trimming the values in a dropdown tomorrow (can be done using HTML/CSS "nowrap" if you display the list values in a browser app, or differently if you show the values in a WinForms app)
There was a similar question asked but it wasn't exactly what I am trying to do.
Here is a link to the question: Auto Number Column in SharePoint List with Link to Item
Two solutons were offered to that question.
Could either of these solutions work for an imported list I have where Sharepoint has decided which column links to the item with edit menu? I want to change which column does this as I need to change the format and this means removing the column that has defaulted to being the link to item with edit menu.
You cannot dynamically change the menu column OOTB in SharePoint. To "move" the menu to a different column, you should create a new computed column and wrap the rendering (DisplayPattern) with the _EditMenuTableStart and _EditMenuTableEnd fields.
To see an example of how to do this, take a look at the "AddMenuColumn" PowerShell script from the iLoveSharePoint project on CodePlex. The script is pretty straightforward, so you should be able to translate it into code if you need that (or add declarative using features).
You could also just use the script as it is, to add the new menu column to your list.
I`v added a hyperlink (SPFieldUrl class) column (field) with GUI to my list.
Pity, but I cannot filter those values when viewing the list.
alt text http://img5.imageshack.us/img5/5126/ss20090505152613.png
(It reads that you cannot filter this column type)
Is there any way to have it easy filterable with clicking on columns besides creating a custom view?
Thank you.
Depending on how you are using the url, you may be able to do something with calculated columns.
Another option is to use a text field rather than a url field - The url field type is effectively a combination of two fields, so you may be able to get what you are looking for by creating those two field seperately.