peyotest.blogspot.com
January 2014 - peyotest
http://peyotest.blogspot.com/2014_01_01_archive.html
ASPNET - Handling Form Submit on Enter Key Pressed. Source : http:/ weblog.kevinattard.com/2011/08/aspnet-disable-submit-form-on-enter-key.html. Develop a system that. It is not very. Need to be addressed. The form will be. The steps are as follows:. 1 In my case, I wrapped all the form content into an updatepanel. 2 Set the DefaultButton attribute of updatepanel to a button (it can be visible one, depends on your appplication). 3 Handle the logic. Subscribe to: Posts (Atom). Blog Source Code Formatting.
peyotest.blogspot.com
GXT 3 Date Field Min & Max Date - peyotest
http://peyotest.blogspot.com/2014/12/gxt-3-date-field-min-max-date.html
GXT 3 Date Field Min and Max Date. I want to set min dan max date for datefield and want it disable the selection of dates out of specified range. DateField dateField = new DateField(new DateTimePropertyEditor(DateTimeFormat.getFormat("dd-MMM-yyyy") ); dateField.getDatePicker().setMinDate(mindate); dateField.getDatePicker().setMaxDate(maxdDate);. Subscribe to: Post Comments (Atom). The Prats playing silly sreggub in Malaysia. Android: R does not auto-generate id. Format My Source Code for Blogging.
peyotest.blogspot.com
May 2012 - peyotest
http://peyotest.blogspot.com/2012_05_01_archive.html
GWT - How to show the wait cursor for long tasks. Source : http:/ ui-programming.blogspot.com/2010/01/gwt-how-to-show-wait-cursor-for-long.html. GWT - How to show the wait cursor for long tasks. In case you have a task that takes more than 2 seconds you need to signal to the user that he needs to wait a little longer than usual. This can be done in many ways, here, we are talking about the setting the cursor to a WAIT cursor. Of how to use the functions to change HTML cursor for long task:. Source : http...
peyotest.blogspot.com
GXT Grid Anchor Cell - peyotest
http://peyotest.blogspot.com/2013/10/gxt-grid-cell.html
GXT Grid Anchor Cell. In previous post, I wrote about my solution to render image and link in grid cell. This is the generic class to handle it. 1 Declare column config with bean parameters and set the value as the identity of the bean. ColumnConfig PremiseBean, PremiseBean prm companyColumn = new ColumnConfig PremiseBean, PremiseBean (props.identity(), 150,"Company Name");. 2 This can be done by adding an identity value provider in the property access interface. 4 Do the rest steps for the grid.
peyotest.blogspot.com
October 2013 - peyotest
http://peyotest.blogspot.com/2013_10_01_archive.html
GXT Grid Anchor Cell. In previous post, I wrote about my solution to render image and link in grid cell. This is the generic class to handle it. 1 Declare column config with bean parameters and set the value as the identity of the bean. ColumnConfig PremiseBean, PremiseBean prm companyColumn = new ColumnConfig PremiseBean, PremiseBean (props.identity(), 150,"Company Name");. 2 This can be done by adding an identity value provider in the property access interface. 4 Do the rest steps for the grid. 5Overri...
peyotest.blogspot.com
GXT 3 - DateField date selection in a month - peyotest
http://peyotest.blogspot.com/2014/12/gxt-3-datefield-date-selection-in-month.html
GXT 3 - DateField date selection in a month. I want make the datefield to just allow selection in a month only. DateField dateField = new DateField(new DateTimePropertyEditor(DateTimeFormat.getFormat("dd-MMM-yyyy") ); String sDate=session.getIps year().toString() "-" session.getIps month().toString() "-01"; Date mindate =Application.mysqlDateTimeFormat.parse(sDate); dateField.setMinValue(mindate); dateField.getDatePicker().setMinDate(mindate); Date maxdDate=Calenda...Subscribe to: Post Comments (Atom).
peyotest.blogspot.com
December 2012 - peyotest
http://peyotest.blogspot.com/2012_12_01_archive.html
C# textbox with double value filter. Simply handle KeyPress event. Allow copy, paste, cut and backspace too. Private void txtSpadRef KeyPress(object sender, KeyPressEventArgs e) { Double isNumber = 0; String s = e.KeyChar.ToString(); int[] allowedChar = new int[] {3,8,22,24 }; foreach (int i in allowedChar) { if(e.KeyChar.Equals(Convert.ToChar(i) ){ return; } } if (s = "." & txtSpadRef.Text.IndexOf(".") 0) { s = "0"; } e.Handled =! Double.TryParse(s, out isNumber); }. Subscribe to: Posts (Atom).
peyotest.blogspot.com
ASP.NET - Handling Form Submit on Enter Key Pressed - peyotest
http://peyotest.blogspot.com/2014/01/aspnet-handling-form-submit-on-enter.html
ASPNET - Handling Form Submit on Enter Key Pressed. Source : http:/ weblog.kevinattard.com/2011/08/aspnet-disable-submit-form-on-enter-key.html. Develop a system that. It is not very. Need to be addressed. The form will be. The steps are as follows:. 1 In my case, I wrapped all the form content into an updatepanel. 2 Set the DefaultButton attribute of updatepanel to a button (it can be visible one, depends on your appplication). 3 Handle the logic. Subscribe to: Post Comments (Atom).
peyotest.blogspot.com
September 2012 - peyotest
http://peyotest.blogspot.com/2012_09_01_archive.html
Row Locking With MySQL. Source : http:/ www.xpertdeveloper.com/2011/11/row-locking-with-mysql/. Lock the desired row by using normal select statement and add FOR UPDATE or LOCK IN SHARE MODE in the back. Commit (update) / Rollback (revert). Any lock placed with LOCK IN SHARE MODE. Will allow other transaction to read the locked row but it will not allow other transaction to update or delete the row. Any lock placed with the FOR UPDATE. It's a very simple. Simply add to my.ini and restart MySQL service.