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
2
votes
1 answer

How to filter null values with Kartik grid and select2 filter?

I'm trying to add a custom option to my select2 filter (kartik grid). This option is meant to select all rows where something_id=null. It's a simple crud generated grid, modified to use kartik grid and select2 filter instead of yii2 default…
2
votes
1 answer

Yii2 Show/Hide kartik treeview nodes

I am using Kartik Tree Manager. I am able to add, remove, update nodes. There is more requirement, that is to show/hide nodes on the basis of user access. i.e. when a user is given a specific node(s) then only that particular node(s) with all the…
Moeez
  • 494
  • 9
  • 55
  • 147
2
votes
1 answer

How to add order key for DynaGrid?

I have an ActionColumn for each tables. I need to add order => ORDER_FIX_RIGHT per table for ActionColumn. How can i add order key in my DynaGridViewAdvanced? I tried to write: protected function applyColumns() { $columns = []; …
mepihindeveloper
  • 195
  • 1
  • 14
2
votes
2 answers

Yii2 : Add empty row at the top of the table using kartik\gridview

I'm trying to insert an empty row at the top of the table with the yii2-kartik\gridview, so that I can add custom components to each column. I would like the result to be as follows in the print: So far I've only managed to insert this line by…
Saulo Lira
  • 25
  • 4
2
votes
1 answer

Kartik Select 2 - Programatically changing multiple

I have a yii2 activeform where the functionality of the form can change based on other things within the form. So, I have a clubs field, that can be multiple in some instances but not multiple in others. field($model,…
Mike
  • 182
  • 1
  • 3
  • 15
2
votes
2 answers

Yii2 : kartik-v/fileinput trigger upload on selection

I use YII2 + /kartik-v/bootstrap-fileinput plugin. I need to upload file when user just drop it into upload input. Make it by ajax request. When I set "showUpload" option to false, and set "uploadUrl" with ajax action, no request to server happens…
Valik Tralik
  • 69
  • 1
  • 12
2
votes
2 answers

Getting error after updating "kartik-v/yii2-detail-view" from "v1.7.6 to "v1.7.7

I am getting error in Yii2 after updating "kartik-v/yii2-detail-view" from v1.7.6 to v1.7.7 Undefined class constant 'self::BS_PANEL' And unable to find the solution for it. Do someone face the similar issue update above using composer. Composer…
pawansgi92
  • 1,065
  • 13
  • 32
2
votes
1 answer

load more and more data when scroll down in Kartik Select2 widget

I am working on stock management system , with a large number of products and the customer wan to display the products in a Select2 widget exactly like kartik widget, and he want to represent the data more and more when scrolling down ,is it…
2
votes
2 answers

Hide historical dropdown selected value in Yii2 DatePicker widget

How to hide history dropdown list in Yii2 kartik select2? This is my source code:
Yanuar Ihsan
  • 115
  • 11
2
votes
1 answer

How to add confim dialog in Yii2 SideNav widget

How to add delete confirm dialog SideNav::widget([ 'type' => SideNav::TYPE_PRIMARY, 'encodeLabels' => false, 'heading' => ' Operations', 'items' => [ [ 'label' => 'Home', …
Yanuar Ihsan
  • 115
  • 11
2
votes
0 answers

Trying to fit html content in single pdf page in Mpdf

I am trying to fit a div which consists of internal divs and tables in one page pdf. Is there anyway to resize the div elements or scale or zoom so that it can fit inside one page. I have tried adding page-break-inside:avoid in div but it's not…
praveen
  • 46
  • 5
2
votes
0 answers

Yii2 kartik fileinput change value image dynamically

I'm using kartik fileinput extension and i want to put a radio button for each picture so the user can select the necessary photo, my code in view is: field($model, 'imageFiles[]')->widget(FileInput::classname(), [ 'options' =>…
MHF
  • 211
  • 2
  • 14
2
votes
1 answer

Illegal string offset 'class' in Yii2

I want to export my table in Yii2. Here is my table: In Kartik Yii2 Export, While exporting as Excel am getting Illegal string offset 'class'. Here is my code:
r34627673
  • 293
  • 3
  • 18
2
votes
0 answers

How to set $dataProvider after AJAX in kartik yii2-export?

How to set or refresh $dataProvider with AJAX? echo ExportMenu::widget([ 'dataProvider' => $dataProvider, 'columns' => $gridColumns, ]); After AJAX contents of list does not update remains same as i loaded page for the first time.
2
votes
3 answers

yii2 \kartik\grid\CheckboxColumn

I have added a check box column in my yii2 grid and created a button that can delete all selected values. However in my action col i have made it possible that the delete icon only shows dependant as follows. 'delete' => function ($model, $key,…
Richard perris
  • 511
  • 1
  • 6
  • 15
1
2
3
18 19