How to freeze columns on both side of angular material data table? - angularjs

I'm using md-data-table where i have achieved fixed headers but somehow fixed columns is not working in my favor. Can someone please help me as i'm almost dead of searching an appropriate solution where both the functionalities will work.
Below is the link which i'm refering for my development.
http://danielnagy.me/md-data-table/

Make a separate table that contains the data you want fixed. and align it with your other table. I’ve done the same in one of my projects and it works just fine.
A few issues are are raised on the github project you mentioned concerning fixed columns and there are a few workarounds you can attempt there if you want.
https://github.com/daniel-nagy/md-data-table/issues/311
https://github.com/daniel-nagy/md-data-table/issues/396

Related

How to use ng-grid in Hawtio?

I believe that ng-grid requires at least AngularJS 1.2.x.
I noticed that there is an ng-grid module in Hawtio. Is it possible to use this ng-grid module in Hawtio's current AngularJS version 1.1.5?
Can someone give an example how to use this? We tried but were getting errors, maybe due to version dependency.
Yeah you can use that, though we used ng-grid in the start with hawtio, but it has some issues (not all data was shown in all browsers etc) and was slow. And we needed a simple grid, so we wrote a simpletable we used instead.
But you should be able to use it,maybe search the source code of hawtio-web and find the few spots left where ng-grid may still be in use.

Why Ext.grid.plugin.RowEditing not working properly while using extended store?

I'm facing an issue using Ext.grid.plugin.RowEditing inside an ExtJS 4.1.1 MVC application. As far as I know, I have to provide my own Ext.data.Store extension for use inside an Ext MVC architecture, but doing this, form fields displayed inside the editing ruler remain empty, even though the corresponding record is fully filled. Indeed, before installing the plugin in my MVC project, I made a quick test in which the store is instanciated from the core class and everything works correctly.
I have googled a bit about that and found some quite close topics, but nothing that could help me so far. So, I hope anyone here has encountered the same problem.
Update
I have tried to reproduce this bug here http://jsfiddle.net/hcNgP/ with no success. I currently suspect my version of ExtJS (Ext.getVersion() gives me 4.1.1.1). I'll go back here with more details as soon as possible. Thanks everyone.
Not sure what you mean by extended store, but here is a full example that works as designed.
http://jsfiddle.net/dbrin/uu56M/

extjs grid filter example not loading data

I'm attempting to learn a bit more about out how grid filtering works in Extjs.
I'm using the example that comes with the JS 4 download, i.e.
http://docs.sencha.com/ext-js/4-0/#!/example/grid-filtering/grid-filter-local.html
I can run it on my local server such that it displays the grid outline (with filter options in the column headers), but no data gets loaded at all. I was hoping that I could just use the local flag with the accompanying JSON file without the need to get involved with the SQLlite aspects, for a start.
I can't figure out why the JSON data isn't loading though. Any help, hints or tips would be much appreciated. I've spent ages on this, looking at other examples, both via here, Google and the Sencha website.
Mark as complete (see above) though I don't know detail on why it's started working.

drupal 7 content type programmatically

I want to create modules for my content types. Looking over the drupal field api as well as some examples of creating content types programmatically, i have a basic module. But theres a few things I can't seem to get working.
On text_with_summary, I have no idea how to set the number of rows, and how to set it so it actually has the summary. I've tried numerous settings in my code, and my field still has 20 rows, and the summary is unchecked. Be happy if anyone can even point me toward some good examples.
I tend to look at the examples modules when trying to learn.
http://drupal.org/project/examples

Adding a filter header row to ExtJS GridPanel

I know that it's possible to add a filter row UNDER the column title because I've seen it done with Coolite. But since I'm a total newbie with Sencha (ExtJS), I have trouble finding how to do it with the ExtJS.grid.GridPanel directly in the script. Would you point me in the right direction with some samples please ?
If possible, I would like to do so without plugins, but if there's one out there doing great and easy to use, I could change my mind.
Thanks !
Here you have a link to the GridHeaderFilters Plugin. There you have an easy example of how to use it.
And regarding your comment about trying to do this without a plugin I recommend you not to do it. Because this might seem like a easy code to write but I believe it is not. And that is why this plugin has hundreds of lines. I think this is not a plugin full of features that you won't use, this plugin just does the filtering the way you need it.
And as a final note, if you are expecting the exact same behavior as in this coolite example I think you are out of luck. Because if you get the javascript source code of that example and run it through jsbeautifier you will see that this example is not using any ExtJS plugin and is not a easy code as is using a really complex template for the headers.

Resources