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
1
vote
1 answer
How to pass node id for each node clicked in kartik treeview?
I have multiple nodes. I want to show different views on each node click. For this, I have to pass the node id. Below is my code in which I have tried to explain the total scenario
`=
TreeView::widget([
'query' =>…

Moeez
- 494
- 9
- 55
- 147
1
vote
0 answers
Yii2 Kartik ExpandRowColumn - concatenate string with action button/icon to expand
It's possible add code in action column to expand ExpandRowColumn like with anonymous function?
I need add in this column total rows in each ExpandRowColumn like in in the following image.
example in expandIcon property:
[
'class' =>…

Moutinho
- 339
- 8
- 22
1
vote
1 answer
Update data in Kartik Detailview is not working
I've detail showed using Kartik Detail View. This widget has Edit inline function by clicking pencil icon button in top right side like this.
But then the table doesn't be editable :
And nothing happen, my data still the same, my update not…

Angelo De Giacomo
- 17
- 4
1
vote
1 answer
How to change file name in kartik export yii2
Hi I am using kartik export in my yii2 project.
=
ExportMenu::widget([
'dataProvider' => $dataProvider,
'columns' => $gridColumns,
'dropdownOptions' => [
'label' => 'Export All',
…

Moeez
- 494
- 9
- 55
- 147
1
vote
0 answers
Row Grouping in ActionColumn in Yii2 GridView
I'm newbie in yii2. Grouping options are working properly in field column. But i need grouping in actionColumn in yii2 gridview.
I want to show a single button for multiple row which has common attribute value.
My table data:
details_table:
id …

Salman Quader
- 195
- 2
- 13
1
vote
0 answers
Using more than one widget in an attribute INPUT_WIDGET on kartik Form Builder
So I am doing a form using the kartik form builder and I am using the input_widget kartik\date\datepicker. When I use the datepicker only it submits but when I go to the item view the date is set like 30/11/-0001. The solution I found when I first…

FreestyleSkills
- 11
- 2
1
vote
2 answers
Yii2 Using Select2 with tabular step of yii2-formwizard
I am using yii2-formwizard which is a handy tool in my project with kartik\select2. Everything is work perfectly except when I press add to get next group select2 drop-down on previous groups are disappeared.
This has happen when I modify my…

chandee77
- 37
- 6
1
vote
1 answer
Kartik fileInput CSS overrides other stylesheets
I have a form which contains kartik fileInput. This is how my form looks like:
'login-form',
'layout' => 'horizontal',
'fieldConfig' => [
…

Grigory Volkov
- 472
- 6
- 26
1
vote
1 answer
JavaScript/krajeeDialog.alert seems to be faulty in GridView
My intention is getting alert message, if checkBox in GridView has been activated. Unfortunately, I will get nothing, neither an error nor message. What’s wrong with this code. Action in Controller actually will do its job, JavaScript will do its…

Thomas Kipp
- 13
- 1
- 4
1
vote
1 answer
When I use Kartik Editable Widget I got error - Uncaught TypeError: elem.replace is not a function
In my Yii2 Framework project I have a form where I am using Kartik Editable Widget for input. There is two rows with this widget. When I open my first input and entering something, in my console appears error message like - 'Uncaught TypeError:…

Javid Ahadov
- 781
- 2
- 6
- 13
1
vote
3 answers
How to set errorPlacement after form-group in Yii2
How can I set errorPlacement in Yii2 activeform or using kartik active form just after form-group?
Below are code for view file.
1
vote
1 answer
How to disable /override dependencies in Yii2
Problem:
The 'kartik-v\yii2-dialog' which is used by 'kartik-v\tree-manager' overrides Sweetalert dialog/message box.
How does one disable the treeview-manager's dependency 'kartik-v\yii2-dialog' in order to use SweetAlerts?
Tried:
'assetManager'…

aalesund
- 313
- 1
- 4
- 13
1
vote
1 answer
Yii2: How to change style of excel sheet with kartik export widget (ExportMenu)
I use the kartik export widget (ExportMenu) and I want to change the style in the excel sheet. I want a table without border. I have tried this:
$style = [
'borders' => [
'outline' => [
'borderStyle' => Border::BORDER_NONE,
…

Shorty
- 55
- 1
- 7
1
vote
1 answer
Sweetalert overridden by bootstrap alert/confrim message box in yii2
Problem (see title)
Yii2: Replace default confirmation message used by Gridview with Sweet alert
describes the initial problem and the fix that used to work. Now the fix no longer works. Something has changed in either bootstrap or kartik…

aalesund
- 313
- 1
- 4
- 13
1
vote
0 answers
Posisition Absolute on Mpdf Kartik not working
Continue from the question Yii2 mPdf Kartik: Set Height and Width Paper
I have problem width position absolute on page footer.
I have set it up position: absolute; and bottom: 0;
But page footer not in actual position.
The position should be like…

Triwahyu Pamungkas Pribadi
- 208
- 2
- 11