Problem with sortable columns in a grid
Posted: Wed May 29, 2013 12:13 pm
Hello,
i have a grid which contains labels, textboxes, checkboxes, buttons and a drop down box. Unfortunately the option "sortable columns" doesn't work correctly. When i sort the grid by clicking on a row, the sort order changes correctly. But the values in my textbox and the value in my checkbox changes.
I think, it is hard to explain the effect with words. So i upload two screenshots, where you can see the problem. (Sorry, that the screenshots are not uploaded in the correct order.)
The second screenshot shows the grid before it is sorted by a row click. The first screenshot shows the grid after my click on the row "Bruttobetrag".
You can see, that the two checkbox-columns have exchanged their values. Also the value in the textbox has changed from "202,27" to "202,27,00". And the value of the dropdown-box has changed from *Blank to "Bitte überweisen Sie".
If i click on the row multiple times, the value in the dropdow-box stays "Bitte überweisen Sie". The checkboxes exchange there values on every click. And the amount in the textbox becomes longer and longer with every click.
I thinks the problem might be a initialization problem. On every click the amounts in the textboxes are extended by ",00". After a few clicks the values are "1,695,93,00,00,00,00,00,00,00,00" and "202,27,00,00,00,00,00,00,00,00,00".
The fact that the value of the dropdown box changes, might be okay, because the dropdown box might not be initialized with a correct value.
Dieter
i have a grid which contains labels, textboxes, checkboxes, buttons and a drop down box. Unfortunately the option "sortable columns" doesn't work correctly. When i sort the grid by clicking on a row, the sort order changes correctly. But the values in my textbox and the value in my checkbox changes.
I think, it is hard to explain the effect with words. So i upload two screenshots, where you can see the problem. (Sorry, that the screenshots are not uploaded in the correct order.)
The second screenshot shows the grid before it is sorted by a row click. The first screenshot shows the grid after my click on the row "Bruttobetrag".
You can see, that the two checkbox-columns have exchanged their values. Also the value in the textbox has changed from "202,27" to "202,27,00". And the value of the dropdown-box has changed from *Blank to "Bitte überweisen Sie".
If i click on the row multiple times, the value in the dropdow-box stays "Bitte überweisen Sie". The checkboxes exchange there values on every click. And the amount in the textbox becomes longer and longer with every click.
I thinks the problem might be a initialization problem. On every click the amounts in the textboxes are extended by ",00". After a few clicks the values are "1,695,93,00,00,00,00,00,00,00,00" and "202,27,00,00,00,00,00,00,00,00,00".
The fact that the value of the dropdown box changes, might be okay, because the dropdown box might not be initialized with a correct value.
Dieter