iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
We are using WebGrid 7 in SharePoint Web Part where we are rendering the grid programatically.
I am unable to invoke any client script using following command, it simply does not hit the javascriopt at all.
interSoftWebUIGridInstance.ClientAction.InvokeScript( "AcceptGridChanges" );
As a work around I have tried following command
this.Page.ClientScript.RegisterStartupScript( this.GetType(), "AcceptAllGridChanges", "AcceptAllGridChanges();", true );
Following is the javascript function written in my JS File.
function AcceptAllGridChanges() { var interSoftWebUIGrid = ISGetObject(interSoftWebUIGridClientID); if(interSoftWebUIGrid != null) { interSoftWebUIGrid.AcceptAllChanges(); } }
Two questions here.
1. Why ClientAction.InvokeScript is not working ?
2. When calling above javascript function using registerstartupscript method, i am getting Operation Aborted error in a javascript popup and the page becomes completely blank. Once i refreshe only after that i get to see data on my screen, what went wrong in calling AcceptAllChanges() from server side ?
Hello,
If I am not mistaken, based on your scenario, it shouldn't be called. Method inside ClientAction properties would not be called if WebGrid doesn't do any FlyPostBack.For testing, you can bind simple WebGrid (design) and place button click (server) to call this method.WebGrid would not call the method.
However, if you refresh WebGrid and call the method in IntializePostBack server side event, it would be called.
For your last issues, could you let me know more details such as in screenshots and simple runable sample which replicates this issue?
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname