|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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
|
|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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
|
|
Rank: Newbie Groups: Member
Joined: 8/27/2007 Posts: 5
|
Thanks for the update, w'll check it.
Rgds Lex
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Lex,
We've posted a new build that supports getAllowedExtensions/setAllowedExtensions on client side. Please see your private message for download location.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/27/2007 Posts: 5
|
Wow ! W'll check it out later today and let you know.
Rgds Lex
|
|