Wiki

Articles in category "tips", sorted by ratingX
Displaying 81-90 of 133 result(s).

Update Gridview with Dropdown Selection

Created 2 months ago by lgastmansTips0 comments – viewed 1,908 times – ( +3 ) – version 1.1
I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

A simple action for XUpload extension

Created 3 years ago by tydeas_drTips1 comment – viewed 12,539 times – ( +3 ) – version 1.1
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Adding a link to a CDataColumn

Created about a year ago by le_topTips6 comments – viewed 7,888 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

View a related field in CGridView

Created 15 days ago by Rafael J TorresTips1 comment – viewed 894 times – ( +3 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

CjuiDatepicker

Created about a year ago by hiral darjiTips1 comment – viewed 5,208 times – ( +3 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

Inline views, write less

Created about a year ago by FirebreakerTips0 comments – viewed 3,688 times – ( +3 )
Sometimes writing views like

Using CJuiDialog to edit rows in a CGridView

Created 3 years ago by Russell EnglandTips8 comments – viewed 26,129 times – ( +4 / -1 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Search a file size range in CGridView

Created about a year ago by CrazyCatTips0 comments – viewed 3,214 times – ( +2 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".

Rendering Views and Updating them with Ajax

Created 8 months ago by Manish GuptaTips4 comments – viewed 11,134 times – ( +2 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

Custom Archive in Blog system

Created about a year ago by nirmalrokaTips0 comments – viewed 3,758 times – ( +2 ) – version 1.1
Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.