EasyUI Forum
April 27, 2024, 02:29:18 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  General Category / EasyUI for Vue / single CheckBox getting error when unchecked on: May 14, 2020, 03:29:06 AM
Hi,
when i unchecked the checkbox it logs a error
[Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'matches' of null"

found in

---> <DataGridTable>
       <DataGridBody>
         <DataGridView>
           <DataGrid>
             <LocationComponent> at resources/js/components/master_data/LocationComponent.vue
               <Root>
TypeError: Cannot read property 'matches' of null
    at t.value (app.js:79964)
    at VueComponent.onCellClick (app.js:79964)
    at click (eval at createFunction (app.js:76429), <anonymous>:3:2389)
    at invokeWithErrorHandling (app.js:66643)
    at HTMLTableCellElement.invoker (app.js:66968)
    at HTMLTableCellElement.original._wrapper (app.js:72327)

CODE -------------------------------------

            <DataGrid
                        ref="dg"
                        :data="locations"
                        :pagination="true"
                        :total="total"
                        :pageSize="pageSize"
                        :pagePosition="pagePosition"
                        :clickToEdit="false"
                        :dblclickToEdit="true"
                        selectionMode="row"
                        editMode="row"
                        @editEnd="onEditEnd($event)"
                        @cellClick="onCellClick($event)"
                        style="margin-top:5px"
                    >
                        <GridColumn field="ck" :width="50" align="center">
                            <template slot="header" slot-scope="scope">
                                <CheckBox v-model="allChecked" @checkedChange="onAllCheckedChange($event)"></CheckBox>
                            </template>
                            <template slot="body" slot-scope="scope">
                                <CheckBox v-model="scope.row.selected"
                                          @checkedChange="onCheckedChange($event)"></CheckBox>
                            </template>
                        </GridColumn>
                        <GridColumn field="zone" title="Zone" :editable="true"/>
                        <GridColumn field="latitude" title="Latitude" :editable="true">
                            <template slot="edit" slot-scope="scope">
                                <NumberBox v-model="scope.row.latitude" :precision="7"></NumberBox>
                            </template>
                        </GridColumn>
                        <GridColumn field="longitude" title="Longitude" :editable="true">
                            <template slot="edit" slot-scope="scope">
                                <NumberBox v-model="scope.row.longitude" :precision="7"></NumberBox>
                            </template>
                        </GridColumn>
                        <GridColumn field="version" title="Version" :editable="false">
                            <template slot="edit" slot-scope="scope">
                                <NumberBox v-model="scope.row.version" :precision="0"></NumberBox>
                            </template>
                        </GridColumn>
                    </DataGrid>
                    <Panel :bodyStyle="{padding:'20px'}">
                        <template slot="footer">
                            <Pagination :total="total" :pageSize="pageSize" :pageNumber="pageNumber"
                                        @pageChange="onPageChange($event)"></Pagination>
                        </template>
                    </Panel>


computed: {
            checkedRows() {
                return this.locations.filter(row => row.selected);
            }
        },

methods: {

           onAllCheckedChange(checked) {
                if (this.rowClicked) {
                    return;
                }
                this.locations = this.locations.map(row => {
                    return Object.assign({}, row, {
                        selected: checked
                    });
                });
            },
            onCheckedChange(checked) {
                this.allChecked = this.checkedRows.length === this.locations.length;
                this.rowClicked = true;
                this.$nextTick(() => (this.rowClicked = false));
            },
}

Thank you
2  General Category / EasyUI for Vue / Re: dblclickToEdit ="true" on: May 14, 2020, 02:17:04 AM
thank you work's great
3  General Category / EasyUI for Vue / dblclickToEdit ="true" on: May 13, 2020, 02:06:26 AM
When I set dblclickToEdit to true, I double-click the edit for the first time. When you click on the second line, it becomes clickToEdit.
How can i disable single click to edit after moving to next line
4  General Category / EasyUI for Vue / Re: getting error when trying to edit cell on: May 13, 2020, 01:48:20 AM
is there a option to enable edit on double click instead on single click.
Thank you
5  General Category / EasyUI for Vue / Re: getting error when trying to edit cell on: May 13, 2020, 01:41:39 AM
thank you worked great
6  General Category / EasyUI for Vue / Re: getting error when trying to edit cell on: May 13, 2020, 12:38:33 AM
thanks here is the code

<div class="col col-sm-10" v-if="show_grid">
                    <DataGrid :data="locations"
                              :pagination="true"
                              :total="total"
                              :pageSize="pageSize"
                              :pagePosition="pagePosition"
                              :clickToEdit="true"
                              selectionMode="cell"
                              editMode="row"
                              @editEnd="onEditEnd($event)"

                    >
                        <GridColumn field="zone" title="Zone" :editable="true" />
                        <GridColumn field="latitude" title="Latitude" :editable="true"/>
                        <GridColumn field="longitude" title="Longitude" :editable="true"/>
                        <GridColumn field="version" title="Version" :editable="true"/>
                    </DataGrid>
                    <Panel :bodyStyle="{padding:'20px'}">
                        <template slot="footer">
                            <Pagination :total="total" :pageSize="pageSize" :pageNumber="pageNumber"
                                        @pageChange="onPageChange($event)"></Pagination>
                        </template>
                    </Panel>
                </div>

FUNCTION:

onEditEnd(event) {
                console.log(event);
                let id = event.row.id;
                this.zone = event.row.zone;
                this.latitude = event.row.latitude;
                this.longitude = event.row.longitude;
                this.version = event.row.version;

                swal({
                    title: "Edited ended",
                    text: "done " + this.zone,
                    icon: "error",
                    button: "OK!",
                });
            },

When i try to edit the cell it has error in console
Invalid prop: type check failed for prop "value". Expected String with value "98.9968994", got Number with value 98.9968994.
7  General Category / EasyUI for Vue / getting error when trying to edit cell on: March 11, 2020, 04:06:59 AM
I am getting the error when try to edit the cell how do i set the field as numbers
[Vue warn]: Invalid prop: type check failed for prop "value". Expected String with value "13.6759647", got Number with value 13.6759647.
8  General Category / EasyUI for Vue / Error in data gridview checkbox on: August 20, 2019, 08:46:26 AM
Hi then i a error generated when check box in unchecked data is  index is removed from array but there ia a error
<div class="col-sm-12">
                    <DataGrid :data="consignments"
                              :pagination="true"
                              :total="total"
                              :pageSize="pageSize"
                              :pagePosition="pagePosition"
                              :dblclickToEdit="false" selectionMode="row" editMode="row"
                    >
                        <GridColumn field="ck" :width="50" align="center">
                            <template slot="header" slot-scope="scope">
                                <CheckBox v-model="allChecked" @checkedChange="onAllCheckedChange($event)"></CheckBox>
                            </template>
                            <template slot="body" slot-scope="scope">
                                <CheckBox v-model="scope.row.selected" @checkedChange="onCheckedChange($event)"></CheckBox>
                            </template>
                        </GridColumn>
                        <GridColumn field="consignment_note_number" title="Consignment Number"></GridColumn>
                        <GridColumn field="consignment_note_date" title="Date"></GridColumn>
                        <GridColumn field="from_station" title="Origin"></GridColumn>
                        <GridColumn field="to_station" title="Destination" a></GridColumn>
                        <GridColumn field="consignor_name" title="Consignor" :editable="true"></GridColumn>
                        <GridColumn field="product_description" title="Product Description" align="center"></GridColumn>
                        <GridColumn field="package" title="Package"></GridColumn>
                        <GridColumn field="actual_weight" title="Weight"></GridColumn>
                        <GridColumn field="fright_amount" title="FrightAmount"></GridColumn>
                        <GridColumn field="other_amount" title="OtherAmount"></GridColumn>
                        <GridColumn field="line_amount" title="TotalAmount"></GridColumn>
                    </DataGrid>
                </div>

when i uncheck the check box below error is generated
[Vue warn]: Error in v-on handler: "TypeError: n is null"

found in

---> <DataGridTable>
       <DataGridBody>
         <DataGridView>
           <DataGrid>
             <ManifestComponent> at resources/js/components/manifest/ManifestComponent.vue
               <Root>
9  General Category / EasyUI for Vue / How to save cell edit on vue on: July 08, 2019, 12:28:02 AM
Hi,
Please provide some sample on how to save the cell data after edit cell.

Thank you
10  General Category / General Discussion / Laravel show json response dialog box on: January 25, 2019, 08:49:31 PM
Hi

Is it possible to show the json response. Like when i delete the record i want to show the return json response

$(function(){
            $('#tt').edatagrid({
                url:"sales_invoice",
                saveUrl: '',
                updateUrl: '',
                destroyUrl: 'invoice_destroy',
                onDblClickRow: function (index,row) {                    
                    window.open("invoice_detail/"+row.invoice_id,"_blank")
                }
            });
        });

public function destroy(Request $request)
    {
        $data = InvoiceJournal::where('id', $request->id)->delete();
        if ($data) {

            return response()->json(['message'=>'Deleted Successfully'],200);
        }
        return response()->json(['message'=>'error while delete record'],200);
    }

how can i show this response.

Thank you.
11  General Category / General Discussion / How to add image in grideview in laravel on: November 24, 2018, 08:07:12 AM
Hi
My table data contain a image path is it possible to show image in cell  . cell data is http://192.168.0.100/storage/catalog/test.jpg  i would like to show image in cell with this path.

Thank you
12  General Category / General Discussion / Re: Datagrid add a action button on: November 22, 2018, 04:23:17 AM
thank you
13  General Category / General Discussion / Re: Laravel Row selection not working when cell editing enable on: November 22, 2018, 04:22:43 AM
thank you
14  General Category / General Discussion / Re: How to set default datagrid rows to 20 from default 10 on: November 22, 2018, 04:22:16 AM
thank you
15  General Category / General Discussion / Datagrid add a action button on: November 17, 2018, 07:37:55 AM
Hi
how do i add a action button in datagrid . I would like to add a view action button when user click on it want to load the detail page.

Thank you
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!