Monday, 10 December 2012

Devexpress, how to validate page from javascript

If you have a button, and want to call devexpress validation before doing anything else this can be achieved with the below javascript on the click event of the button.

Saturday, 8 December 2012

How to get XNA game studio install working on windows 8

http://blogs.msdn.com/b/astebner/archive/2012/02/29/10274694.aspx

Tuesday, 6 November 2012

ASPxComboBox clear selection on delete or backspace

If you are using a DevExpress ASPxComobobox and you want to be able to unselect an item you can use the below code:

Friday, 2 November 2012

How to close the browser window without a prompt

If you want to close the browser window in asp.net with javascript but dont want to prompt the user you can use the below code:

Thursday, 18 October 2012

Microsoft ReportViewer - Change Subreport at runtime (rdlc)

Its possible to change a subreport at runtime using the below code. Both reports need to be loaded from a Stream in order for this to work, but is easily achievable by adding a method to the reporting library to handle this. The reporting Assembly contains a 'Common' Class with the following static methods: And to call this code from my web application the following code can be used

Friday, 12 October 2012

ASPxGridView Response.Redirect cannot be called in a Page callback.

If you need to redirect from an ASPxGridView you may have seen the message: Response.Redirect cannot be called in a Page callback. In order to get around this, DevExpress have added a method to the base webcontrol to redirect in a callback. For Example:

Thursday, 27 September 2012

Devexpress method to register base scripts

If for some reason devexpress scripts dont get registered there is a method on the base control to register scripts.