Welcome Guest Search | Active Topics | Sign In | Register

Progressbar, CallbackPanel Triggers for Gridview Template Image button Options
Mehul Panchal
Posted: Tuesday, September 18, 2012 5:30:55 AM
Rank: Member
Groups: Member

Joined: 7/7/2010
Posts: 28
Hello,

I want to use the Progress bar in my project. Progress bar start when user click Image button used in the Gridview Template.

So please tell us what i need to define for Triggers="{ControlID:cbSkin;Parameter:}" If i used the Imagebutton1 then it shows Trigger control 'ImageButton1' for Callback 'cpPB' does not exist. This Imagebutton1 i have added in Template of Gridview.

I also want user can not click any button still Progressbar is running.

Thanks,

Mehul
eo_support
Posted: Tuesday, September 18, 2012 8:38:01 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

The Trigger control and the CallbackPanel must be in the same INamingContainer. In this case the Grid and the CallbackPanel are inside the same INamingContainer, but the ImageButtons are inside their own INamingContainer. You can either use the Grid as the trigger (thus every server event the Grid raised will trigger the CallbackPanel, not just the ImageButton), or use JavaScript to trigger the callback.

Thanks!
Mehul Panchal
Posted: Tuesday, September 18, 2012 11:14:19 PM
Rank: Member
Groups: Member

Joined: 7/7/2010
Posts: 28
Hello,

If i used Grid as trigger then paging effect also called the same, i dont want the same effect for paging event.

I will check with JavaScript, if you have any example for the same then please share with me.

Thanks,

Mehul
eo_support
Posted: Wednesday, September 19, 2012 8:37:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You can take a look of the CallbackPanel documentation and samples. You will find JavaScript samples there.

Thanks!
Mehul Panchal
Posted: Wednesday, September 19, 2012 9:37:29 AM
Rank: Member
Groups: Member

Joined: 7/7/2010
Posts: 28
Hello,

Thanks for the quick reply.

I have used the same way i am getting error message Eo.Web Controls client side debug message. Eo.web control 'ct100_contentplaceHolde1_callbackpanel1' error messag. The callback on has failed because the server did not recognize this callback and processed it as a normal request.

Actually I am creating one file on Imagebutton click event at server side. After process finished i am downloading to client with following code.

Response.Clear()
Response.AddHeader("content-disposition", "inline;attachment; filename=" + FI.Name)
Response.AddHeader("Content-Length", FI.Length.ToString())
Response.ContentType = "application/octect-stream"
Response.WriteFile(FI.FullName)
Response.End()

So i am getting the error message. Can you please guide me how to do the same.
eo_support
Posted: Thursday, September 20, 2012 2:12:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You just can not do that ---- you can not do an attachment download through an AJAX callback. Any AJAX call has to be HTML in and out.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.