I got 3 questions / feature requests which are inspired by magentos backend user interface and the list-mode they use.
Within TbExtendedGridView: For example when searching for product-ids. Would it be possible to search for numbers between 1 and 30?
Within TbExtendedGridView: Is is possible to have a generate a select box of the column values as a filter?
Bulk-Actions: I saw that you already have some bulk action features. Magento has a cool feature on this one too: First of all the bulk actions are on top of the list. Furthermore it features a liste of actions and (if needed) an action-value input-field for extra target-value user-input.
For example: There might be a Select-Box for 3 Bulk-Actions "Delete/Change Category/Change Attribute". And then when you select a bulk action you can set the target bulk-value before pressing the button. For example: I select 10 products out of the list, select "change category" and enter a "10" for the category ID. Then I press the action button. BOOOM. Very powerful.
I think that this framework is really close to getting those features in. What do you guys think?
public function actionCliente() {
$cliente = Cliente::model()->findAll();
$data = array();
foreach ($cliente as $value) {
$data[] = array(
'id' => $value->id,
'text' => $value->nombre." ".$value->apellido,
);
}
echo CJSON::encode($data);
}
my questions is… how i can make the client validation work… only work the server validation and… the pagination… really work =? i send the page by javascript but in my action i think mised something…
When using a DateRange, I noticed that when you click Apply, the mouse cursor can still be focused on the DateRange input field. When this happens the callback keeps being called. Any ideas how to unselect the field or limit the callback?
<?php echo $form->dateRangeRow($model, 'dateRangeField',
array('hint'=>'Click inside! An even a date range field!.',
'prepend'=>'<i class="icon-calendar">>/i>',
'options' => array('callback'=>'js:function(start, end){console.log(start.toString("MMMM d, yyyy") + " - " + end.toString("MMMM d, yyyy"));}')
)); ?>
You’re right but the question is clear: How to use the initSelection to fill the box with values from the database ?
I need an example of how to pass “something” to initSelection to ‘pre-select’ one or more options .
Sorry again
EDIT: I add this snippet from Select2.js; probably what we’re trying to do is simply not possible !
if (select) {
// these options are not allowed when attached to a select because they are picked up off the element itself
$.each(["id", "multiple", "ajax", "query", "createSearchChoice", "initSelection", "data", "tags"], function () {
if (this in opts) {
throw new Error("Option '" + this + "' is not allowed for Select2 when attached to a <select> element.");
}
});
}
My application works very slow with this bootstrap. Any idea how i can fix that? I search this issue in this topic but found nothing. Sorry for my bad English.
First: people are shy. And will continue to post in the same topic, even if they get an entire subforum to post in.
Second: we already have enough trouble as it is to try and get people to post about Yii extensions in the Extensions forum. I don’t think adding to that complexity would be a good idea.
Third: what about other extensions? Shouldn’t they have their own subforum?
Ok - then I will just open a seperate topic within in the extension forum. I missunderstood it and thought that it was ment for developers to introduce their extensions…