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
7
votes
1 answer
Kartik Grid Editable Column with expandrow styling not applying
When I pull in a kartik expandable row grid, using pjax the editablecolumn styling is not being applied. What can I do to apply css to this column?
$dataProvider,
'filterModel' =>…

madphp
- 1,716
- 5
- 31
- 72
6
votes
1 answer
Yii2: Get selected rows data from gridView checkbox columns into controller
I've view page(index.php) in my Yii2 project, and I'm using Kartik gridView for showing the data
This the view from index.php:
On the right side of view, I've a checkbox column.
And I've an Export button.
I want to export the selected name…

Blackjack
- 1,016
- 1
- 20
- 51
4
votes
3 answers
Prevent from scientific notation numbers in Yii2 kartik export to excel cell format
I'm using kartik export widget for exporting my grid view in excel. I am able to export all the data but there is an issue, I have a column name imsi which is in text, but after exporting it this column is having all the same numbers i.e. all the…

Moeez
- 494
- 9
- 55
- 147
4
votes
1 answer
Kartik Select2 not working after appending it with jquery
I have problem with kartik select2 widget. I am trying to create dynamic form with jquery. First, I created two fields with kartik select2 in div element. Then I cloned all content of the div and append it into the div. But, cloned select2 not…

Alisher Nasrullayev
- 565
- 1
- 6
- 22
4
votes
0 answers
javascript add form model name to formdata
Update: Here is how to add files by dropping from computer on folders in treeview widget from kartik:
function allowDrop(event) {
event.preventDefault();
}
function drop(event) {
event.preventDefault();
var…

aalesund
- 313
- 1
- 4
- 13
4
votes
2 answers
How to use Yii2 kartik gridview editable column with mulitple model relations
Question:
I have 2 models, user model and user profile model, both are related with primary and forien key user_id,
user table has fields id,username, password, email etc
user_profile table has filed id, user_id, company, phone etc
I have created…

J.Rob
- 436
- 1
- 5
- 22
3
votes
1 answer
kartik tree view show different views on each node click
I am working on Yii2. I have created a tree using kartik tree manager. By default on each node click it shows me ID, name etc. But I want to show other data. Below is my code
=
TreeView::widget([
'query' =>…

Moeez
- 494
- 9
- 55
- 147
3
votes
1 answer
How to render empty grid table in Yii?
I am working on the Yii2 project. In this, on page load, I want to display an empty grid table. Data should get loaded to the Kartik GridView only after button click. I am able to display the grid view table with data on button click, but not able…

AmarjaPatil4
- 1,640
- 3
- 28
- 41
3
votes
2 answers
Yii2 kartik select2 widget showing values too issue
I have created a yii2 kartik select2 widget to select multiple car models like below
= Select2::widget([
'name' => 'drp-make',
'data' => Car::getCarMakesEnglish(),
'value' => explode(",",$model->drp_make),
'options'…
user12617954
3
votes
1 answer
Wait for Sweetalert2 async confirm before continuing filepredelete event in bootstrap-fileinput
Having some issues with the plugin Bootstrap File Input and SweetAlert2
This is for showing a dialog box to confirm if the user really wants to proceed with deleting the file.
I need to return a boolean for filepredelete event if I'm going to abort…

Vince Parker
- 173
- 1
- 3
- 13
3
votes
2 answers
Yii2 Kartik EditableColumn Dropdown Relation Returns wrong Value
I have an issue with a Gridview using kartik\grid\EditableColumn, after changing the value I am returned the wrong value for the column when it updates. I am returned the dropdown key/main table integer rather than the string contained in a linked…

The Humble Rat
- 4,586
- 6
- 39
- 73
3
votes
1 answer
Cannot install Kartik Dialog
This is my composer .json file
{
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-nav-x": "*",
…

ron
- 175
- 3
- 14
3
votes
1 answer
Yii2 required validation rule on "select2" widget
I'm using kartik select2 widget in Yii2 framework. Required validation rule doesn't work on it.
Here is my view code:
$form->field($model, 'city')->widget(\kartik\select2\Select2::classname(), [
'data' => $cities,
'options'…

Ali Tavafi
- 443
- 1
- 10
- 28
3
votes
3 answers
filter for custom column in grid view which is not in table yii2
I have added this 'sla_status' field in gridview and every thing is working fine only issue is I am unable to set filter values for this.
'sla_status' is not in my table.
[
'label' => Yii::t('app','Sla Status'),
'format' =>…

deepak
- 62
- 2
- 8
3
votes
2 answers
kartik GridView Yii2 - How To Configure the Export Configuration For PDFs (Header, Footer, Title)
I'm trying to figure out a way to modify the header for the PDFs when I do the export.
Right now the header say something like Yii2 Grid Export (PDF) Grid Export.
Here is the code I'm using to try to modify it:
'exportConfig' => [
…

O2U
- 429
- 2
- 8
- 22