Questions tagged [kartik-v]

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

281 questions
0
votes
1 answer

Yii2: Kartik FileInput Widget set id to catch events

I try to set the id for the Kartik FileInput Widget but it seems like it won't set it.. because I'm unable to catch the fileuploaded events after an successfull upload. view.php echo $form->field($ebook, 'imageFile')->widget(FileInput::classname(),…
Phil
  • 107
  • 1
  • 7
0
votes
1 answer

yii2 kartik-v/yii2-widget-typeahead output customization

This widget inputs text and gives search result via drop down list. Question is how can I customize it? Is there any kind of form or some property where I could write some html template to get answers as stylish hyperlinks with images and etc.…
David
  • 4,332
  • 13
  • 54
  • 93
0
votes
1 answer

Yii2 Dynamic form update fail on kartik-Select2

I am using wbraganca dynamic form widget. It works fine for the Create action. Let me thanks for those guys making great tutorial video on youtube!!! I am working on the Update action now. I work it on a purchase order function. the controller of…
0
votes
1 answer

Can we remove minutes selection popup from Kartik datetime picker widget in yii2?

I am working in yii2. I am using kartik datetimepicker widget. I want to remove minutes selection popup from datetimepicker. Here is my code for datetimepicker pugin: field($model,…
user3909204
0
votes
1 answer

How display kartik\Select2 in modal window use renderAjax

I use http://demos.krajee.com/widget-details/select2#usage-tags controller public function actionTagsForm() { $method = Yii::$app->request->isAjax ? 'renderAjax' : 'render'; $model = new UserTagsForm(); return $this->$method('tagsForm',…
0
votes
1 answer

Yii2 kartik file FileInput Multiple

So I am working with Yii2 and am fairly new to it. I am using Kartik File upload and have attempted to convert the code for multiple files. but it only saves the first file. I have removed the validation as this was also failing but will add back in…
abilham
  • 37
  • 7
0
votes
2 answers

yii2 grid filter type not working

I am using kartik grid lib in yii2 This works. [ 'attribute' => 'status', 'filterType' => GridView::FILTER_SELECT2, 'filter' => ['Active' => 'Active', 'In Active' => 'In Active'], 'filterWidgetOptions' => [ 'pluginOptions' => ['allowClear' =>…
Ish
  • 2,085
  • 3
  • 21
  • 38
0
votes
0 answers

Plain textboxes with kartik\slider\Slider. What i did wrong?

field($model, 'input_field')->widget(Slider::className(), [ 'pluginOptions' => [ // 'pluginConflict' => true, 'min' => 0, 'max' => 50, 'step' => 10, …
FeR-S
  • 339
  • 2
  • 15
0
votes
2 answers

yii2 Filtering grid with dropdown list from same model

I am using the following functions in my Contact model public static function getParents() { return $this->hasMany(Contact::className(), ['parent_id' => 'id']); } I want to get the return of this array in the filter attribute of my view: …
open-ecommerce.org
  • 1,763
  • 1
  • 25
  • 41
0
votes
1 answer

Class 'kartik\base\InputWidget' not found

In my Yii2 apps I add extension select2, since composer not successfully downloaded all the needed librarys. So I do it manually but I have still have error. Any help is BIG THANKS. Here is my error.
Dulf
  • 13
  • 7
0
votes
2 answers

yii2 select2 gridview filter searchmodel

I'm trying to filter a yii2 gridview with a select2 In ModelSearch I have ->andFilterWhere(['like', 't_persons.functions', $this->functions ]) Unfortunately string (1) matches 10 and 11 as well How can I filter the integer values from the comma…
user 1007017
  • 391
  • 2
  • 10
0
votes
1 answer

Kartik-v select not populating data in the form

I need help on the select widget for kartik as used in yii2 advanced template. Data is being fetched correctly and i can print it using the print_r function.
Shammir
  • 927
  • 4
  • 17
  • 32
0
votes
1 answer

Class 'mPDF' not found - kartik gridview

i'm using kartik gridview for export to pdf, and i need help to resolve this problem. When I export to pdf yii2 return: "PHP Fatal Error" "Class 'mPDF' not found" public function setApi() { $this->_mpdf = new mPDF( $this->mode, …
Erick Moraes
  • 41
  • 1
  • 4
0
votes
1 answer

Yii2 Kartik widgets do not work after integrated with AdminLTE Theme

FileInput works fine with yii2 default theme. But after change to AdminLTE Theme, almost Kartik-v widget does not work. Anyone know problem and solution ? namespace app\assets; use yii\web\AssetBundle; class AdminLTEAsset extends AssetBundle { …
Sam
  • 265
  • 4
  • 15
0
votes
0 answers

Yii2 Depdrop - TypeError: invalid 'in' operand obj ERROR

I'm using Kartik DepDrop widget for dropdown options. I've successfully show the options. But I got an error in my firebug console like this TypeError: invalid 'in' operand obj Here is my code: View:
Blackjack
  • 1,016
  • 1
  • 20
  • 51