I thought the afterrestore function does not get called when cancel is clicked from reading other discussions.
Â
from the example above i see the same results. I want the cell to editable on add and not on edit. when you add code like the original user did the cell works properly except when you click the cancel button.  if you click add it works, if you click edit it works. but if you click edit then cancel then click add, the cell is left in the non-edit state. if you cancel and then click add again it starts working again.
if i put alerts in and display the editable property its correct but its not used.. this tells me that the value of editable is decided before onselectrow is fired to reset it.
if i put alert in the afterrestore it is never called.Â
this issue only seems to happen when cancel is called when it edit mode.Â
I got this working by setting the colprop within the loadcomplete funtion call. I set the editoptions:dataurl for that column and pass in the extr parms i needed to make the dynamic select statement work.
I too have been trying to get around this issue? the cancel button seems to override anything you try to do with this.. seems like a bug.. anyone else got a work around for this issue?
I appreciate any help. I was more wondering if i was chasing a rainbow or if i had a realistic goal. i have only been coding for a few days in this tool so didnt want to be bogged down with something i could never get working
I have a grid with players in it. the players have a record for every week they play. the week drop down is created by a separate process. so after week one the drop down has a 1 in it. after week 2 the drop down has 1,2 and so on. the stats dont get updated every week so sometimes i will go in later say week 3 and the dropdown says 1,2,3. So i choose week 1 and add a record. Now I want to add a new row and the drop down should only allow 2,3 to be selected.   this changes for every player.  The grid knows which player is being modified so the drop down would need to pass that to the ajax that builds the select. in the sql call it looks to see if a week already has a record and knows not to send it back.
Â
so in essence the select is not built on something that happens to a field in a row but by what ID was used to build the grid.Â
I think i understand it could be done if the select was built every time a add event fired, just trying to find an example of how to do that..
thanks
do i take the lack of replies to mean its a dumb question or noone knows how to do it? it seems like a basic feature that many have been looking for answer too.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top