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

Yii2: Kartik's DetailView and Select2 loading id's not text

So I'm loading Kartik's Select2 widget in Kartik's DetailView using multiple input: [ 'attribute' => 'characters', 'format' => 'raw', 'type' => DetailView::INPUT_SELECT2, 'value' => function($form, $widget) { …
Antonio López
  • 386
  • 6
  • 22
2
votes
2 answers

How to use send the chosen file in Kartik Input File using Ajax?

I want to use drag & drop upload file using Kartik Input File in my Yii2 application. They said this "drag & drop" input file model need AJAX for send the data. I just following the main code for Kartik Input File from here, and the AJAX from here.…
Blackjack
  • 1,016
  • 1
  • 20
  • 51
2
votes
2 answers

Yii2 kartik dependent dropdown not changed the selected value with ajax after loading dropdown values with ajax

Want to change selected value of dependent drop-down. After loading drop-down values with ajax in dependent drop down following code is not working $("#dependentDropDownID").select2("val", data); Above code working fine on first time load of…
priti narang
  • 258
  • 4
  • 18
2
votes
1 answer

Yii2, Custom css style for Kartik export

I'm trying to apply custom css styles to exported files such as pdf. For example how can applying custom css style in pdf export? I changed some font styles in styleOptions but nothing happen.
msoa
  • 1,339
  • 3
  • 14
  • 33
2
votes
2 answers

Hide attribute in Kartik DetailView Yii 2

I want to hide attribute in my DetailView, for example: [ 'attribute' => $attribute, 'format' => 'raw', 'value' => Yii::$app->formatter->asDatetime($model->$attribute).' par '.Yii::$app->myFormatter->asUser($model->visited_by), …
soussou
  • 41
  • 6
2
votes
0 answers

Use kartik-v php-date-formatter with Node Package Manager npm

https://www.npmjs.com/package/php-date-formatter How can I use this plugin using npm with Laravel 5.3 After successful installation. I used const phpDateFormatter = require('php-date-formatter'); console.log(phpDateFormatter); But phpDateFormatter…
Anik Goel
  • 21
  • 2
2
votes
1 answer

Yii2: Display data from Sql which has same value into one column in Kartik gridview

I'm trying to develop system using Yii2 framework. I've data in my database, and I want to display all the data from products table. For example: Products Table --------------------------------------------------------------------- **id** |…
Blackjack
  • 1,016
  • 1
  • 20
  • 51
1
vote
1 answer

Yii2 select2 selected one value 2 and more time

I have select2 return $this->form->field($this->model, 'observers') ->widget(Select2::className(), [ 'data' => Tasks::getAllStaffsGroupOffice(), 'disabled' =>…
1
vote
2 answers

Yii2 kartik-v tabsX after filtering return same tab

I am using Yii2 kartik-v tabsX widget. After klick some of tabs and reloding page it gives me back the same tab and everything works fine. But when i am filtering some of gridView fields, filter works correct but page renders with active first tab.…
Karlis Pokkers
  • 224
  • 5
  • 18
1
vote
1 answer

Yii2 Kartik file input multiple file delete button

I have a problem with kartik file-input and the delete button... i have it working when i use one file. But for the multi files - i can't make the trash button working.. Here is my form and my controller action (delete-files). As my function…
DavidP
  • 53
  • 9
1
vote
2 answers

Yii2 kartik gridview getSelectedRows returning null keys always

I am creating a kartik gridview for my MYSQL View.So there is no primary keys hence it is a view. And my gridview is like 'pending-ads-grid', 'dataProvider' => $dataProvider, // 'filterModel' =>…
Emzyn pvt ltd
  • 45
  • 1
  • 7
1
vote
1 answer

How to post actual primary keys of records from table and not indexes of an array in php Yii2 if I use select2 widget?

My function inside controller is as follows: public function actionProjects($id) { $model = $this->findModel($id); $projects = Project::find()->all(); $projectIds = Yii::$app->request->post('projects'); if…
Dragon14
  • 317
  • 6
  • 18
1
vote
0 answers

Is there a way to set Title for document in kartik ExportMenu?

I'm developing a web application to control the information of some energy groups. I'm using Yii2, with kartik GridView and ExportMenu. The problem is that I need to set the document title to the exported Excel / Pdf file. I've searched other posts…
1
vote
0 answers

How to add images before Header on exporting Data in Kartik Export Menu>

I am trying to add an image on as logo before headers in excel and pdf using ExportMenu by Kartik but unable to do so. I was successful in adding an image by using grid view and added images by passing in the table header and td so when exporting…
Sharklash
  • 31
  • 1
  • 4
1
vote
0 answers

How to insert an image with url in Export Kartik?

I am trying to insert logos on the excel and pdf exports through ExportMenu via Kartik Export Menu by using contentBefore value: string, the value of the merged row styleOptions: array, array of configuration options to set the style. See…
Sharklash
  • 31
  • 1
  • 4
1 2
3
18 19