Skip to content

Replies

0
vadivel murthy
vadivel murthy answered on Apr 16, 2018 7:22 AM

Hi Alex,

As you said , i added the  script for the checkbox in my ig grid ,

$("#resultGrid").igGrid({
 
                columns: [
                        { headerText: "Ballot Id", key: "BallotId", width: 100 },
                        { headerText: "Account Name", key: "AccountName", width: 300 },
                         { headerText: "Shares to vote", key: "Sharestovote", type: 'number', width: 125 },
                        { headerText: "Vote String", key: "VoteString", width: 125 },
                        { headerText: "Vote String Summary", key: "VoteStringSummary", width: 125 },
                        { headerText: "Voted Date", key: "LastVotedDate", width: 125 },
                        { headerText: "Voted FM User", key: "LastVoteFmUser", width: 125 },
                        { headerText: "Voted User", key: "LastVotedUser", width: 125 },
                        { headerText: "Iss User", key: "IssUser", width: 125 },
                        { headerText: "IS Selected", key: "IsSelected", dataType: "bool",width: 75, format:"checkbox" },
                        { headerText: "Account ID", key: "AccountID", hidden: true },
                        { headerText: "IsShareBlocking", key: "IsShareBlocking", hidden: true },
                        { headerText: "Location ID", key: "LocationID", hidden: true },
                        { headerText: "Meeting ID", key: "MeetingID", hidden: true },
                        { headerText: "pxVote User ID", key: "pxVoteUserID", hidden: true },
                        { headerText: "Vote cutoff Date", key: "Votecutoffdate", hidden: true },
 
 
                ],           
                features: [
                {
                    name: 'RowSelectors'
                },
                {
                    name: 'Selection',
                    mode: "cell",
                    multipleSelection: true
                }
                ],
                dataType: "json",
                width: '100%',  //column resizing
                renderCheckboxes: true,
                dataSource: jQuery.parseJSON(data) //JSON Array
            });
        }


the data source from my view model
[{"AccountID":5845,"AccountName":"Invesco Asia Infrastructure Fund","BallotId":83492125,"IsShareBlocking":false,"LocationID":9590,"MeetingID":1210362,"Sharestovote":17203300.00000,"Votecutoffdate":"2018-04-16T15:00:00","IsSelected":false,"pxVoteUserID":null,"IssUser":null,"VoteString":null,"VoteStringSummary":null,"LastVotedDate":null,"LastVotedUser":null,"LastVoteFmUser":null}]


Can you please suggest me what to do for above ?