User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: January 6, 2011 1:29 AM

Based on my test using the latest nightly build the issue has been fixed, the fix will be release in the next hotfix release.

Posted: January 5, 2011 10:50 PM
I proprose applying a custom attribute during the WebGrid_SetRowBackgroundColor and re-apply the custom style during the AfterExitEditMode if the custom attribute exist.

I also found an alternative if you do not wish to have the modified row style in the Grid at all, you could just disable it in the BatchUpdate settings.
<BatchUpdateSettings HighlightChanges="false" />
This way, you do not have to implement the AfterExitEditMode event handler.

Posted: January 4, 2011 11:52 PM
Try adding a custom attribute in the row element during the WebGrid_SetRowBackgroundColor
rowObject.RowElement.setAttribute("CustomRowColor", "customrowcolor");
And during the AfterExitEditMode only modify the cell color if the custom attribute is applied in the row element
function WebGrid1_OnAfterExitEditMode(controlId, tableName, editObject) {
var grid = ISGetObject(controlId);
var selObj = grid.GetSelectedObject();
var row = selObj.ToRowObject();
var rowCells = row.GetCells();

var columnLength = grid.RootTable.Columns.length;
var rowObject = row;

var rowElement = rowObject.RowElement;

if (rowElement != null && rowElement.getAttribute("CustomRowColor") == "customrowcolor") {
for (var i = 1; i <= columnLength; i++) {
var cell = rowElement.cells[i];
if (cell != null) { cell.style.setAttribute("backgroundColor", "Red", true); }
}
}
}



Posted: January 4, 2011 2:26 AM

Based on my test, unfortunately this issue is still open in ClientUI 4. 

Posted: January 4, 2011 2:23 AM

Using the latest ClientUI, ClientUI 4, commanding has run without any issue in WPF.

Just wish to inform that the taskbar issue has been fixed in the latest ClientUI release, ClientUI 4.

FYI, the GridPresenter has not fully support MVVM. However, it seems this issue is caused by a bug. A bug report has been submitted so the developer could analyze the issue further.

Posted: January 3, 2011 5:07 AM

Thank you for the detail description of the issue. Based on my test, I also encounter the same issue as you described. It seems the issue is caused by a bug, I have submitted a bug report to the developer so the issue could be analysed further. 

Posted: January 3, 2011 1:46 AM

Using the technique discussed in this article, I have create a simple sample of WebCombo and PageStatePersister. In my simple sample, after postback which invoke the save viewstate method the WebCombo still have the data. Attached is the simple sample I created to test this issue.

Do you mind providing a simple runnable sample of your issue so we could analyse the issue further?

Posted: January 2, 2011 11:08 PM

By default in BatchUpdate mode the WebGrid will apply a style for modified row. This style is applied by setting the cell attribute, which will override the style you already applied. My previous post suggestion is to override this default style during the AfterExitEditMode event handler with the style you already defined.

In order to integrate the RowContextMenu and AfterExitEditMode method, you could assign a custom attribute to the row in RowContextMenu, for example CustomColor='CustomColor', in the AfterExitEditMode event handler you only assigned the Red color to the row which has the CustomColor attribute.


All times are GMT -5. The time now is 1:03 AM.
Previous Next