annasgp / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

the property "singleSelect:true"is not working #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. when i select row in the grid

What is the expected output? What do you see instead?
I want to select only ONE row but when i click on other row, the first one 
selection  isn't disabled

What version of the product are you using? On what operating system?

Please provide any additional information below.

How disable  multiple selection on flexigrid? 
I try to add singleSelect:true on the script flexigrid.js and  when i 
call the flexigrid bud it doesnt work! 

Original issue reported on code.google.com by ilham.la...@gmail.com on 3 Jan 2012 at 11:16

GoogleCodeExporter commented 8 years ago
Hello All,

I have also same problem. So, I have download latest version and see the 
difference.

addRowProp: function () {
$('tbody tr', g.bDiv).each(function () {
    $(this).click(function (e) {
        var obj = (e.target || e.srcElement);
        if (obj.href || obj.type) return true;
        $(this).toggleClass('trSelected');
        if (p.singleSelect && ! g.multisel ) {
            $(this).siblings().removeClass('trSelected');
            //$(this).toggleClass('trSelected');
        }
....

this difference i have found. just replace your flexgrid.js part with above 
part and it will working.

Original comment by sanchani...@gmail.com on 25 Jul 2012 at 6:38

GoogleCodeExporter commented 8 years ago
Just replace your with this new version of flexigid it work for me 

Original comment by vuth...@gmail.com on 12 Aug 2012 at 11:06

Attachments: