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
Yii2 mPdf Kartik: Set Height and Width Paper
How to set custom height and width on PDF format like this:
I want set height: 13.6cm and width: 21.2cm
if I export to PDF, paper size is always in A4 format,
how to make paper size to be 13.6cm (height) and **21.2cm (width) as in the picture…

Triwahyu Pamungkas Pribadi
- 208
- 2
- 11
1
vote
1 answer
Wrap database image sources stored in database as array for Yii2 Carousel
I am using yii\bootstrap\Carousel and my image filename are stored in the database. Therefore, I need to retrieve the image file names and wrap them as image source and valid url before passing them to the Carousel widget. I have tried to perform…

japheth
- 373
- 1
- 10
- 34
1
vote
1 answer
Pass Data Directly to yii2-tree-manager
I have a tree node in my form. I am using kartik-v's Tree Manager.
This is my view code:
echo TreeViewInput::widget([
'query' => Tree::find()->addOrderBy('root, lft'),
'headingOptions' => ['label' => 'Set Permission'],
'name' …

Sruthy
- 47
- 5
1
vote
0 answers
Yii2 Kartik Pagination BUG
Need an advice.
It appears that ANY setting of filters on one report -- even something as simple as records per page -- disrupts how other reports appear in a rather buggy looking way.
For example:
Go into my page > some view
Set Page Size to 13…

Lola_Padilya
- 107
- 1
- 7
1
vote
2 answers
Showing video thumbnails in kartik-v/yii2-widget-fileinput
Below is the code I am using for the video and image uploading. Image preview is showing on selction but when i select the video to upload it will upload but not showing any preview.
Any suggestion if i am missing something.
$form->field($model,…

pawansgi92
- 1,065
- 13
- 32
1
vote
2 answers
Yii2 - Set value for Select2 plugin with Ajax Loading
i've some troubles with Select2 kartik plugin for yii2.
I set up my plugin with Ajax Loading and, in my create view works fine, so i can select multiple value and save it on database.
When i show the update view i want to set visible the value that…

Sfili_81
- 2,377
- 8
- 27
- 36
1
vote
2 answers
Yii2 Kartik DateRangePicker.
I'm using Kartiks DateRangePicker with the `presetDropdown' option. This gives some default values to search on, today, yesterday, last 7 days etc.
The code to produce the picker:
echo DateRangePicker::widget([
'model'=>$model,
…

Kyle
- 667
- 6
- 28
1
vote
1 answer
How to highlight a date(Some other date not the today's date) in Kartik Datepicker
I'm able to highlight current date with 'todayHighlight' => true, but I want to highlight some other date.

Ankit Singh
- 922
- 9
- 16
1
vote
1 answer
Yii2 Kartik Select2 Ajax Controller - Result not showing
I have set up a select2 within my yii2 application. I want the select2 to get the result data from the controller action via ajax. So i looked up the documentation here and made some adaption. Unfortunately no result will be shown, even if i return…

Luc
- 365
- 4
- 22
1
vote
1 answer
how to pass values from database to kartik checkbox list
i have passed some values($list) fetched from database to yii2 default checkbox list and it is successfully showing the result
all(),'id','question'); ?>
= $form->field($model,…

Sumith Chalil
- 348
- 3
- 22
1
vote
1 answer
Remove OK button from kartik-v custom dialog
I tried to create a custom dialog using yii2-dialog, one of the kartik-v widgets. I want to create this dialog with a single button: Statistics so, using the documentation provided in the demo, I wrote the code below.
The problem is that the dialog…

ymiraola
- 130
- 10
1
vote
1 answer
How to update multiple images in kartik Upload widget?
Here i can only able preview the images on update the model. I want to load the images properly so user can remove one r more file and update will work accordingly Here is my controller
public function actionUpdate($id)
{
$model =…

rajwa766
- 604
- 13
- 31
1
vote
0 answers
yii2 kartik daterangepicker autoselect end date when start date is clicked
I want to set end date the same as start date :
field($model, 'date_range', [
'options' => ['class' => 'drp-container form-group']
])->widget(DateRangePicker::classname(), [
'id' =>…

masteryoda
- 272
- 2
- 20
1
vote
2 answers
How to change error message text in kartik fileinput
I am using kartik yii2 widget fileinput. I set 'maxFileSize' to 1024. When uploaded file exceeds maximum allowed size, error message shows up, I want to change this error text and show it in Georgian language. How can I achieve this?
Here is my…

Nana gord
- 13
- 5
1
vote
0 answers
Kartik grouping option is not working in pdf
I'm using Kartik gridview for grouping. However, grouping doesn't work while generating/exporting the pdf. ('group'=>true)
How to make the groups in the pdf?
[
'headerOptions' => ['style' => 'color:# ;text-align:center;'],
'attribute' =>…

Deepti
- 31
- 1
- 1
- 2