Row rendering in Qooxdoo - javascript

I am trying to display rows of my tables in different colors .
Please help me to achieve this. Please provide sample code to do same.
Thanks.
Regards,
vyankatesh

Vyankatesh,
you probably saw the answers on the qooxdoo mailing list.
To sum it up here: You either create your own RowRenderer and set it via qx.ui.table.Table.setDataRowRenderer(). Or you set up a conditional CellRenderer and set it via qx.ui.table.Table.getTableColumnModel().setDataCellRenderer(). (There might be a unified way to do either through the Table or the TableModel, but I'm not aware of it).

Related

AG-Grid column drop panel custom message

I have been playing around with AG-Grid and vue. I am looking to replace the default message in the Column drop panel for grouping (circled in the screenshot).
I have looked through the documentation but I did not find a way to overwrite it (not sure if i have missed reading some).
Am thinking of using the document selector to override the text but thought of checking with the community here to see if there's a cleaner approach. Thanks.
You can define localeText to achieve this.
Use rowGroupColumnsEmptyMessage key for localeText.
Reference: Using localeText
<ag-grid-angular
...
[localeText]="localeText"
></ag-grid-angular>

Sencha Grid - How to add/remove columns based on a condition dynamically without knowing order

I have a Sencha grid where I want to be able to add or remove a column based on some criteria but don't want to rely on knowing the order. I would like to preferably do this using name, or dataIndex, etc so that the solution is not tied to the column ordering. I tried looking at things like columnManager, which is the closest thing to what I am looking for but it is private and not recommended in production code. Please advise. Thanks.
For my understand, you want to dynamically create the columns based on the data you can get, right?
You can use grid.reconfigure([store], [columns]) method which [columns] is the config object. You can modify the object as your requirement.

Add excel-like element list in HTML table header

I would like to realise a table with a specific functionnality on header, in fact I would like to do like in Excel spreadsheet, a header capable of displaying a list of any elements in the column...
I looked over datatable for Jquery and others plugin, but no one could realize what I want. Does anyone know if such functionnality already exists ? And if not, what would be the easiest to implement it..?
Thanks
Not sure if I understand what you are looking for but doesnt this example of data tables achieve what you need ?
http://www.datatables.net/release-datatables/examples/api/multi_filter_select.html

Is there some good javascript grid that can be filled using ajax?

I need a grid that can be filled using ajax.
I need to sort, filter and select.
Thanks!
The ext grid is rather full featured
http://www.extjs.com/deploy/dev/examples/#sample-3
Check out jqGrid - it has all of the features you need and more :)
As mentioned jqGrid is probably your best bet. If you are wanting to be able to intercept the data before passing to the grid, that's pretty easily done too. by setting datatype to a function, you can manipulate the loading however you like, then push tlo the grid via addJSONData() when you are done frobbing.
If you have some more specific questions, I'd suggest expanding a bit. Also, it looks like you might want to check existing questions and answers here.
The dojox grid is also a good option: Documentation here.
Check out the YUI library.

jQuery Scrollable, Sortable, Filterable table

I'm looking to utilize jQuery to handle a few very common requests we get for data tables of varying sizes: scrolling, sorting, and dynamic filtering.
I've handled scrolling in the past by having two separate tables with fixed width columns, along with associated div containers for the "actual" scrolling. However, this method doesn't work with any of the jQuery-based sorting table extensions that I've come across (tablesorter being my favorite so far) as they want everything in a single table.
For filtering, they're requesting something akin to how Excel and SharePoint lists do it (basically all column values are listed in a dropdown, allowing the user to select/deselect them). I haven't seen anything like that yet, although it sounds possible.
One other related nice-to-have feature would be the ability to "freeze" a column for horizontal scrolling.
Ideally I'd like an existing extenstion, but if none are out there I'd also appreciate suggestions from any jQuery gurus on how to best implement it. My current thoughts are to dive into tablesorter and extend/update it as necessary.
To hopefully keep things focused, paging is not an option (along with anything server based, for that matter).
Update:
I do appreciate the answers so far, but none of the options given so far touch on the filtering aspect at all (that said, I must admit that jqGrid looks very good for some future projects I have). In the meantime I'll work on a custom filtering solution; if it works out I'll update again.
I came across this question as I was searching for a sortable table plugin myself; I really wasn't impressed with any of the suggested widgets, but later I discovered DataTables, and I was quite impressed. I recommend checking it out.
Maybe this excellent plug-in could do it:
Demo page
It's called jQGrid, here is the project page:
http://plugins.jquery.com/project/jqGrid
I would encourage you to try out the Flexigrid.
It has a lot of great features and I personally think it looks more professional than the jqGrid.
It doesn't have some of the features that you asking for, but I think it could be a good start. It would be great if you could work on adding some of those features to the code base.
If you are coding in c#, then I posted a blog entry about how to use LINQ to Reflection to bind JSON to the Flexigrid... if you are using another language there are other examples you can find on Flexigrid's Website & Google Group page.
a simple jQuery Scrollable Table Plugin
As mentioned in my update, I ended up using a custom filtering extension (closed source, unfortunately). I've recently started using SlickGrid and it's now my go-to grid.
I'd like to add the Laravel flavored DataTables (GitHub, jquery DataTables API) - perfect if you already work with PHP/Laravel.
Extra, koalyptus/TableFilter another custom filter table (actually, my fav).

Categories

Resources