Getting values from clicked CGridView row
The task in this post is quite simple. Obtain ID (keyField) of a record holding data for clicked CGridView row and one or more values from it’s columns. If you can/want use jQuery, this isn’t to hard job.
The task in this post is quite simple. Obtain ID (keyField) of a record holding data for clicked CGridView row and one or more values from it’s columns. If you can/want use jQuery, this isn’t to hard job.
Regular expression was always a nightmare for me. Even though I understand how powerful these can be and I’m trying to use them in many places of my code, they’re still a huge mystery for me.
For this reason I have wrote a simple memo-article with a links to useful blogs, pages and tools for or about regular expressions.
Read More “Pages and tools on regular expressions”A word about interaction between DOM objects in master view (website) and slave view (iframe).
It is quite easy for not showing something in the first row in CGridView. You need to use 'visible'=>'$row > 0'
row expression. But, it becomes difficult, when we want to show something in every row except last one.
Read More “Show value in every CGridView’s row except first and last”
You may notice, that many MP3 players (both Windows programs — not tested on other OSs — as good as external hardwares) are making their file lists in some strange order. This may not be a big deal, when talking about music (though, when listening to a particular album, you may get yourself pissed-off as well), but became a really pain in the ass, if we’re talking about audiobooks.
Read More “Incorrect music or audiobook order in MP3 player”
If you’re an “old-school” MP3 user, and ID3 Tag version 1 data is all you need to get happy, you may find a shit stick to version 2 of ID3 Tag a little bit annoying. If it is so, then the big question is, how to quickly get rid of ID3v2 data for many files? Many programs are allowing to do a massive ID3 tags (both versions) change/edit, but there aren’t many of them that allows to delete particular tag version out of many files massively. And here comes my little trick.
Read More “Get rid of ID3v2 tag from many files at once using Winamp”
When CD or DVD is ejected from drive, Total Commander “resets” contents of the pane to nearest available drive (usually C:
). It is normal and obvious because contents of CD or DVD are no longer available. But, the same thing happens even if Total Commander is in background. This might be seen as an annoying feature, because each time you change CD or DVD in drive, you have to manually again select that drive in Total Commander. Fortunately, there is an easy solution for this.
Read More “Disable refreshing of removable drive contents in Total Commander”
Since I have been developing in Yii for my “entire life”, I’m bound to MVC model. And since it suits me very good, I don’t want to and don’t plan to change it. Even though, it is nearly always good to know, what are the alternatives — MVP and MVVP.
When you right-click Windows Explorer icon on the taskbar in Windows 7, you can see list of recent items (i.e. recently opened folders) with an option to pin some of them permanently. On some Windows 7 systems user may experience issues with recent items and pinned entries list not being displayed, missing or cleared without reason. New items cannot be added to these lists.
Read More “Can’t pin folders to my Windows Explorer icon on the taskbar”
The CGridView
class in Yii is a state of art solution, that gives you out-of-the-box full model browsing features including filtering, pagination and sorting. The picture would be perfect, if not for default look of grid view, which is a little bit “nasty”! :> It is understandable, as Yii author focused himself on delivering perfectly working framework, that does not necessary have to be pretty in the same time.
However, basing on famous flexibility of all components in Yii, with a help of few simple steps, you can completely change the look & feel of your grid view.