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
2 answers
Yii2: How to change kartik's fileinput widget caption name and browse button size?
I'm using kartik's fileInput widget. What I need to do is to change the size of browse icon and change the caption name (because now it is "Select file").. Im really struggling with that and I cannot find any information for the problem.
Here's my…

HELPME
- 714
- 14
- 35
0
votes
1 answer
Yii2 - Kartik/EditableColumn in GridView does not save the value
I have a problem using the EditableColumn in Yii2, it does not save me the values of the change,
in my GridView index I have the following:
[
'class'=>'kartik\grid\EditableColumn',
'attribute'=>'nombreDestino',
'editableOptions' => [
…

Sergio Sabido
- 5
- 5
0
votes
1 answer
Yii2 Class 'kartik\datetime\DateTimePicker' Not Found on shared hosting server
I have installed Kartik datetimepicker in my local directory via composer. Then I uploaded it to my GoDaddy shared hosting server directory but it's showing me that class not found.
I have even tried dosamigos plugin as well for datetimepicker.…

Sohil
- 291
- 2
- 12
0
votes
1 answer
Yii2: Kartik/PopoverX binding to custom button function
I am using yii2 + kartik gridview + popoverx on each field, want to make a custom button (as a label for example) when clicking on it the textarea fills some comment like Buy only at discount
Where can I place that code (of the button), in which…

Evgeny Gil
- 317
- 5
- 17
0
votes
1 answer
kartik\Select2 in GridView Filter show id instead of name
I have a Gridview and in the dropdown I decide to implement a select2 dropdown using ajax, has the page was taking too long to load, after implementing the ajax the performance improved a lot and works fine the ajax search.
My issue is when I select…

changez
- 77
- 2
- 11
0
votes
1 answer
How to print a string on pdf header in yii2
I am working on yii2 framework. I am printing a pdf file using kartik\mpdf\Pdf. There is a field named subdivision which I want to print on the header of the pdf file.
$sql_r = "SELECT DISTINCT ogph.`id` AS 'OGP_Serial_No',DATE(ogph.`created_at`)…

Moeez
- 494
- 9
- 55
- 147
0
votes
1 answer
How to make loading of several files on Yii2 using kartik-v / yii2-widget-fileinput?
I decided to upload several image files using FileInput Widget
= $form->field($model, 'imageFiles[]')->widget(FileInput::classname(),[
'name' => 'imageFiles[]',
'attribute' => 'imageFiles[]',
'options' => ['multiple' =>…

Иван Иванов
- 11
- 5
0
votes
3 answers
Yii2 kartik switchinput in one view with multiple forms not working
First of all thank you for your attention. I'm trying to handle multiple forms in one view and a have no luck with that.
view.php
use kartik\form\ActiveForm;
use kartik\widgets\SwitchInput;
$this->title = Yii::t('app',…

Stepan Stepanov
- 33
- 10
0
votes
0 answers
How do I make a timepicker value influence another timepickers value?
I have a defaultTime setup that takes the device clock and set it as default for the first timepicker, and for the second it just sets +1 hour from the first one. That is how it works when I load it.
But what I want to achieve is pretty similar to…

stAMy
- 471
- 2
- 6
- 14
0
votes
1 answer
yii2 - Can't search between date in _search.php
can't seem to find what I'm doing wrong.
My search model:
namespace app\models\searches;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Slas;
/**
* SlasSearch represents the model behind the search form about…

RAAPereira
- 49
- 5
0
votes
1 answer
Get selected Values From DepDrop Using Select2 Plugin With jQuery
I am working with Yii2 and Kartik DepDrop which I am using with a Select2 Plugin. What I want is to get all the selected values (since it is a Multi Select) of the select2 Plugin using jQuery or plain JavaScript.
Here is my DepDrop:
echo…

ManuelCash
- 153
- 10
0
votes
2 answers
Add Custom Button in Kartik Yii2 Kartik DetailView
I already search and try every forum and example.
I am using the Kartik\DetailViwew in Yii2 and I can´t manage to put a single custom button in the buttons1 option.
The code I am working on:
echo DetailView::widget([
'model' =>…
0
votes
1 answer
Yii2 Kartik DateTimePicker start date from far future
I'd like to ask you for support. The yii2 Kartik datetimepicker extension is giving strange and random start date. After clicking the calendar the start date might be year 4678 or year 3599. Imagine scrolling this back to 2017 :) Have you ever faced…

LukaB
- 17
- 1
- 6
0
votes
2 answers
Kartik's Yii2 Datepicker resets to default after using method/event
I've been having troubles with Kartik's Datepicker. After listening to an event like this:
$('#participationtype-dates').kvDatepicker()
.on('show', function (e) {
console.log('e');
});
or changing date with a method like this:
'pluginOptions'…

Slay33
- 97
- 9
0
votes
1 answer
yii2 render remaining character in form field
I use jlorente remainingcharacters widget to show remaining character countdown for Inputfield in _form.php:
= $form->field($model, 'char52', ['showLabels'=>true])->widget(\jlorente\remainingcharacters\RemainingCharacters::classname(), [
…

lzak
- 3
- 2