Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1460
Selection not working
posted

I can't seem to get row selection working right. Has anyone else had issues with this?

The following code loads the data, and in IE9 I see the hover effect on rows, but clicking on them does nothing. I added Sorting, and after I sort a column, then selection works perfectly - just not unless it's sorted. A similar effect happens in Chrome, where if I click on any row, the first row becomes selected but no other row can be selected - if I sort, then row selection works.

 

function LoadGrid(pi_idx) {

            PageMethods.LoadResponses(_EventID, _SurveyID, eval('_QuestionID_' + pi_idx), LoadDataSuccess, ActionFail);

        }

 

        function LoadDataSuccess(response) {

            var myReturnPackage = Sys.Serialization.JavaScriptSerializer.deserialize(response);

            var grid = $("#grid_" + curIdx).igGrid({

                autoGenerateColumns: false,

                columns: [

                            { headerText: "OrderID", key: "OrderID", dataType: "string", hidden: true, width: "0" },

                            { headerText: "AttendeeName", key: "AttendeeName", dataType: "string", width: "100" },

                            { headerText: "ResponseEssay", key: "ResponseEssay", dataType: "string", width: "460" }

                        ],

                width: '600px', height: '200px',

                dataSource: myReturnPackage.Data.Responses,

                features: [

                    { name: 'Sorting', type: 'local', columnSettings: [] },

                    { name: 'Selection', mode: 'row', multipleSelection: false, activation: true, rowSelectionChanged: selectionHandler }

                    ]

            });

 

            if (myReturnPackage.Data.AnswerType == 'MULTIPLE_CHOICE') {

                CalculateRating(myReturnPackage.Data, curIdx);

            }

        }

 

 

The following code is in a repeater:

<a href="#" class="ActionLink" onclick="BLOCKED SCRIPTShowField('<%# DataBinder.Eval(Container, "ItemIndex", "")%>');return false;">Show/Hide Responses</a>

<div id="Div_<%# DataBinder.Eval(Container, "ItemIndex", "")%>" style="display:none;">    

    <table id="grid_<%# DataBinder.Eval(Container, "ItemIndex", "")%>"></table><br />

</div>