Open pzavoli71 opened 2 years ago
@pzavoli71 problem in GridViewTrait::initLayout()
is not optimized: method render widget, but not display.
@pzavoli71
'{toolbarContainer}' => $this->renderToolbarContainer(),
'{toolbar}' => $this->renderToolbar(),
$this->renderToolbarContainer()
call $this->renderToolbar()
too i.e. method called twice, but may never displayed
Hello, i noticed that using
kartik\grid\GridView
with bootstrap5 I can't no more use filters on gridviews. The page being created contains the following statement in a script:(new bootstrap.Dropdown('#w1-button', {}));
but nothing exists with id="w1-button", so the script ends with a blocking exception and filtering no more works.
This is the view:
I resolved substituting row 103 of BootstrapWidgetTrait.php with the following statement:
$view->registerJs("if ($('#$id').length > 0) (new bootstrap.$name('#$id', $options));");
instead of$view->registerJs("(new bootstrap.$name('#$id', $options));");
Additional info