Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Delete form dont close automaticly
19/08/2009
06:03
Avatar
Buga
Guest
Guests

Hi

I want to add a msg to my grid after I deleted a row. I have this message already for add/edit and it works like expected.

I call in the Navgrid a function with  afterSubmit:commonSubmitServer

This works fine but for the delete function it has the side effect that the confirmation windo for delete dont close anymore.

here is the example code:

$(

“#Account_Verwaltung_Server”).navGrid( “#Account_Verwaltung_Server_Pager”,{edit:true,edittext:m_gridedit,edittitle:m_grideditrow,add:true,addtext:m_gridadd,addtitle:m_gridaddrow,deltext:m_griddelete,del:true,deltitle:m_griddeleterow,search:false,refresh:false},//We will specify custom search/refresh buttons 
{reloadAfterSubmit:true,afterSubmit:commonSubmitServer,closeAfterEdit:true,width:“400″,height:“300″},//Options for the Edit Dialog 
{reloadAfterSubmit:true,afterSubmit:commonSubmitServer,closeAfterAdd:true,width:“400″,height:“300″},//Options for the Add Dialog 
{url:“/includes/components/Account.cfc?method=delServer”,reloadAftersubmit:true,afterSubmit:commonSubmitServer,caption:m_griddeleteserver,msg:m_griddeleteselectedserver,width:“400″}//Options for Del Dialog
)

function commonSubmitServer(data,params){
var
a = eval( “(” + data.responseText + “)” );
//Convert returned string into JSON
$(“#t_Account_Verwaltung_Server”).html(a.SERVERDATA.MSG);
return true;
}

 

 

 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
68 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information