PDA

View Full Version : Ext.grid Sorting Issue



Sandeep
7 Sep 2007, 5:18 AM
Hello,

I need a small help regarding the sorting in Ext.Grid.grid.

I have put a dropdown control in one the first column of the grid. The thing is clicking on it does not focus on control, rather the grid's rowclick event is triggered and the row gets selected resulting in the lost focus from the dropdown. To resolve this issue i disabled the the rowclick event:

grid.events = {"rowClick":false};

This solved the problem but now I cannot get the columns sorted. Whenever i click on the Header, it does not sorts the column.

Removing grid.events = {"rowClick":false}; enables sorting but then i face the above mentioned problem of loosing focus from my dropdown control.

I would be grateful if someone could help.

Best Regards,
Sandeep.

Sandeep
12 Sep 2007, 10:25 PM
No Help...!!! :(

Animal
13 Sep 2007, 1:58 AM
Add a click handler to your dropdown and cancel the event.