EasyUI Forum
May 03, 2024, 11:06:34 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error in data gridview checkbox  (Read 4936 times)
dewan
Newbie
*
Posts: 24


View Profile
« 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>
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: August 20, 2019, 06:56:18 PM »

Please look at this example https://www.jeasyui.com/demo-vue/main/index.php?plugin=DataGrid&theme=material-teal&dir=ltr&pitem=CheckBox%20Selection&sort=asc. It works fine.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!