Thursday, 12 July 2012
How to use the DevExpress combo box with large datasources
ASPX
ASPX Code Behind
NOTE: there are +1's on the begin and end indexes, without this, scrolling does not work when filtered.
Nominal account class (with paging)
Labels:
ASP,
c#,
DevExpress,
SQL
Monday, 21 May 2012
How to Uninstall IE8 from windows XP SP2
To uninstall Internet Explorer 8, follow these steps:
- Carefully select and then copy the following command: %windir%\ie8\spuninst\spuninst.exe
- Click Start, and then click Run.
- In the Open box, type Cmd.exe, and then press Enter.
- Right-click inside the Cmd.exe window, and then click Paste to paste the command that you copied in step 1.
- Press Enter to uninstall Internet Explorer 8.
- After the program is removed, restart your computer.
Labels:
IE8,
Internet Explorer,
Windows XP
Friday, 11 May 2012
How to stop click events firing on child divs
If you have multiple divs stacked on top of each other, and all divs are selectable (ui-selectable)
you can stop the click events bubbling down to the lower level by adding event.stopPropagation() to the click event of the top most div.
eg:
Sunday, 6 May 2012
Deserialize json object with a date time to a c sharp oject
If you want to deserialize and object that has been serialized with the JavaScriptSerializer and it contains a date time object then you may run into a parser / format error for the date time.
this can be fixed by doing a replace on the string before deserializing.
Wednesday, 25 April 2012
jqGrid Ensure last edited cell is saved when save button clicked
I had a jqGRid that is shown in a jQuery dialog. The dialog has a save and cancel button. A problem occured where the last column in the grid was edited, but as the user did not press enter to commit the cell value, the last value entered in the grid was not saved when the 'Save' button was clicked.
To get around this, I saved the current row and column indexes in the afterEditCell Method, then called my custom save cell method (saveCurrentCell) when the OK button is clicked on the jQuery dialog. This ensures that the last cell being edited is saved before the dialog is closed.
Markup:
Javascript:
Tuesday, 13 March 2012
Error: Sys.ParameterCountException: Parameter count mismatch.
I had a gridview inside an update panel with a checkbox set to auto postback but every time it was clicked the parameter count mismatch error was being thrown by the ajax framework.
To get this working it was simply a case of setting the ScriptManager script mode to release so this error did not get thrown.
eg:
To get this working it was simply a case of setting the ScriptManager script mode to release so this error did not get thrown.
eg:
Labels:
ASP,
UpdatePanel
Subscribe to:
Posts (Atom)