Welcome Guest Search | Active Topics | Sign In | Register

Clientsite update of AllowedExtension propery Options
Lex
Posted: Monday, August 27, 2007 5:07:00 AM
Rank: Newbie
Groups: Member

Joined: 8/27/2007
Posts: 5
Is there a way to update AllowedExtension propery in the AjaxUpload control ? We are using the control on a webpage with several Infragistics grids, depending on a selected category we need to allow different extensions. If we changed the propery on the server side in one of the grid callback it has no effect. The grid also use ajax calls.

Any suggestions how to solve this ?

Lex
eo_support
Posted: Monday, August 27, 2007 7:18:16 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Lex,

You won't be able to change it directly on client side, but you can put it inside a CallbackPanel and then trigger a callback to the server to use server side code to change it. The net effect will be pretty much the same.

Thanks
Lex
Posted: Tuesday, August 28, 2007 8:04:09 AM
Rank: Newbie
Groups: Member

Joined: 8/27/2007
Posts: 5
Thanks for the suggestion, we have got it working but I am not really happy with the solution. We had to add an invisible button on the panel on which we fire the onclick event. Although it works it all looks a bit clumsy.
Other thing is we had planned to only buy the AJAXUploader as we use Infragistics for our other controls, now with this solution it appear we also have to buy the panel ?

Rgds
Lex
eo_support
Posted: Tuesday, August 28, 2007 8:08:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Lex,

Changing AllowedExtension from client side sounds very reasonable. We will look into it and see if we can implement it soon.

In the mean time, do you use ASP.NET 2.0? If you use ASP.NET 2.0, I believe you can use ASP.NET AJAX UpdatePanel to replace our CallbackPanel. That way you can avoid buying the CallbackPanel.

Thanks
Lex
Posted: Tuesday, August 28, 2007 8:22:26 AM
Rank: Newbie
Groups: Member

Joined: 8/27/2007
Posts: 5
Thanks for the update, w'll check it.

Rgds
Lex
eo_support
Posted: Tuesday, August 28, 2007 6:07:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Lex,

We've posted a new build that supports getAllowedExtensions/setAllowedExtensions on client side. Please see your private message for download location.

Thanks
Lex
Posted: Tuesday, August 28, 2007 10:36:58 PM
Rank: Newbie
Groups: Member

Joined: 8/27/2007
Posts: 5
Wow !
W'll check it out later today and let you know.

Rgds
Lex


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.