Used for questions related to kartik widgets, components, behaviors developed mostly for Yii2 Framework. Some of the popular widgets are katik\select2, kartik\dateTimePicker etc
Questions tagged [kartik-v]
281 questions
0
votes
1 answer
Yii2 ActiveForm validation error on Kartik's FileInput widget
I have an ActiveForm with Kartik's FileInput widget. It is a type of Edit Form.
I am fetching db data in it along with images.
Case 1 - If Image is already added, it is showing large-image field as required whenever I click on update button.Case 2 -…

Gru
- 80
- 1
- 8
0
votes
1 answer
mPDF - Show table footer (tfoot) only once
I am creating a PDF file from HTML table using Kartik's mPDF extension for Yii2.
The table footer is visible in all pages, but I want it to be shown only at the end of the entire table (in the last page).
How can I achieve this? I am using GridView…

eggnukes
- 180
- 3
- 20
0
votes
1 answer
Export problems with Kartik's gridview loaded with ExpandRowColumn
I'm rendering a Kartik's Gridview which loads another Gridview via ajax by ExpandRowColumn widget.
I'd like to export this secondary loaded grid using grid tools, but when I enable the export menu and try exporting it it will download the main grid…

Maxxer
- 1,038
- 1
- 18
- 37
0
votes
1 answer
The 'pluginOptions["url"]' property has not been set
I have a problem with Kartik/DepDrop. I have used it many times in the past but are now having an issue
My view
'contentBefore'=>'',
'attributes'=>[ // 2 column…

Liam
- 536
- 8
- 23
0
votes
1 answer
Yii2 Kartik connect Select2 and SortableInput
I'm using the select2 and sortableinput widget from kartik. I want to select something with select2 and have the selected element in the sortableinput widget. I was wondering how i can achieve this. Only with js? or do i have to use ajax/pjax? Since…

Luc
- 365
- 4
- 22
0
votes
1 answer
Undefined variable: dataProvider in yii2 kartik grid
I'm trying to learn about kartik grid view and I'm having trouble with dataProvider.
Controller Code
this is the full controller code (not all though, i just show the code until code containing the dataProvider that i asked why it's undefined)
class…

Elsa Maudina
- 3
- 5
0
votes
1 answer
Yii2 kartik depend dropdown doesnt load next drop down list
I am using kartik DepDropdown widget. When I choose the region it must load all the cities from it in the particular dropdown (e.g. the one with id city_id).
In the chrome network tab I can see that the action returns the expected result json format…

Toma Tomov
- 1,476
- 19
- 55
0
votes
0 answers
"Edit" and "Close" Sign symbol while exporting Excel
When I try to export data in excel using "kartik\editable\Editable::widget" and "ExportMenu::widget" then "Edit" and "Close" sign symbols are also exported in my excel.
How to remove that "Edit" and "Close" Sign symbol while exporting Excel?
return…

Ankit Sompura
- 765
- 6
- 10
0
votes
1 answer
Kartik Select2 load ajax when other input change value
I need to load data with ajax to a Kartik Select2 but only when certain input changes values. Kind of like...
= $form->field($model, 'id_list')->widget(Select2::classname(), [
'data' => [],
'theme' => Select2::THEME_BOOTSTRAP,
…

Arturo Verbel De León
- 55
- 2
- 8
0
votes
1 answer
How to get checked value of Kartik radioList in javascript
I would like to know how to get checked value in javascript. Here is my _form.php
= $form->field($model, 'rdo')->radioList(["0"=>"Free","1"=>"Paid"], ['id' => 'rdo'])->label('Select Contribution') ?>

Zoe
- 29
- 1
- 6
0
votes
2 answers
Yii2: how to show data from two related tables?
I have the table persons(id_person, name_person, id_color) and the table colors(id_color, name_color).
I need to show names of the persons and the color name of every person inside a Select2 component.
I am using a Select2 component very similar to…

Roby Sottini
- 2,117
- 6
- 48
- 88
0
votes
1 answer
Removing unwanted header of ActionColumn
I'm using ActionColumn of kartik, which creates unwanted header(see my attachement)
This header is nowhere coded!!
Any ideas how to remove it?
Here is code
[
'class' => 'kartik\grid\ActionColumn',
'dropdown' => false,
'headerOptions' =>…

tklustig
- 483
- 6
- 24
0
votes
0 answers
Yii2 select2 widget return saved results
How can I display saved database rows on kartik Select2 widget? I set the multiple option to true and it works fine. I saved 3 records in database table and now I am trying to display them on model update. Tried to put them in the value property of…

Toma Tomov
- 1,476
- 19
- 55
0
votes
3 answers
Yii2 send pdf to mail not working?
I am using kartik mpdf extension to generate using the mention below code it work and show the pdf in next tab
$pdf = new Pdf([
'mode' => Pdf::MODE_UTF8, // leaner size using standard fonts
'filename' =>…

rajwa766
- 604
- 13
- 31
0
votes
1 answer
Yii2: Increasing FileInput width using ActiveForm of kartik
A simple question, but unfortunately no answer available:
I'm using ActiveForm of kartik like this
'dynamic-form',
'type' => ActiveForm::TYPE_INLINE,
…

tklustig
- 483
- 6
- 24